Details
-
Bug
-
Status: Closed
-
TBD
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Undetermined
-
Description
I'm trying to use OpenMRS 1.9.0 (which uses HAPI version 0.5), and upgrade this to HAPI 2.0 via a module.
For this, i'm introducing the dependency
<dependency>
<groupId>ca.uhn.hapi</groupId>
<artifactId>hapi-base</artifactId>
<version>2.0</version>
to the module pom.xml, so that the newer version of the module will be loaded into OpenMRS. However, when I try to start this module using OpenMRS 190, the following exception is thrown,
org.openmrs.module.ModuleException: Error parsing diff sqldiff.xml file Module: Regenstrief Hl7 Adapter Module
at org.openmrs.module.SqlDiffFileParser.getSqlDiffs(SqlDiffFileParser.java:103)
at org.openmrs.module.ModuleFactory.startModuleInternal(ModuleFactory.java:526)
at org.openmrs.api.context.Daemon$1.run(Daemon.java:57)
Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl cannot be cast to javax.xml.parsers.DocumentBuilderFactory
at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
at org.openmrs.module.SqlDiffFileParser.getSqlDiffs(SqlDiffFileParser.java:90)
... 2 more