HAPI和ClassNotFoundException:com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl

时间:2015-02-04 14:31:37

标签: java cxf xerces hl7 hapi

我有一个独立的批处理应用程序,它运行HAPI来创建HL7文件。我将系统的入口点更改为CXF Web服务,它实际上正在运行。但是当它启动时,我会得到以下结果:

15:40:42,859 INFO  [ca.uhn.hl7v2.VersionLogger] (ServerService Thread Pool -- 52) HAPI version is: 2.2
15:40:42,860 INFO  [ca.uhn.hl7v2.VersionLogger] (ServerService Thread Pool -- 52) Default Structure libraries found for HL7 versions 2.5, 
15:40:42,861 WARN  [ca.uhn.hl7v2.VersionLogger] (ServerService Thread Pool -- 52) Error occured while trying to retrieve a DOMImplementation.: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl from [Module "deployment.fileMonitor-1.0-SNAPSHOT.war:main" from Service Module Loader]
    at ca.uhn.hl7v2.util.XMLUtils.getDOMImpl(XMLUtils.java:55) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.VersionLogger.checkDOMImplementation(VersionLogger.java:44) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.VersionLogger.init(VersionLogger.java:36) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:126) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:112) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:103) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.parser.Parser.<init>(Parser.java:71) [hapi-base-2.2.jar:]
    at ca.uhn.hl7v2.parser.PipeParser.<init>(PipeParser.java:92) [hapi-base-2.2.jar:]
    at org.apache.camel.component.hl7.HL7MLLPConfig.<init>(HL7MLLPConfig.java:38) [camel-hl7-2.12.0.redhat-610379.jar:2.12.0.redhat-610379]
...
    at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:182) [rt.jar:1.7.0_45]
    at ca.uhn.hl7v2.util.XMLUtils.getDOMImpl(XMLUtils.java:52) [hapi-base-2.2.jar:]
    ... 40 more

16:24:32,180 WARN  [ca.uhn.hl7v2.VersionLogger] (ServerService Thread Pool -- 51) XML parsing and encoding as well as working with Conformance Profiles will fail.

这是HAPI的XML和CXF的XML库之间的某种冲突,但我尝试了一些事情,没有任何东西可以摆脱这个错误。有人见过这个吗?

0 个答案:

没有答案