upgrade from 2.6.3 to 3.2.1 issue

43 views
Skip to first unread message

Arnold

unread,
May 17, 2017, 7:38:57 AM5/17/17
to ipf-user
Hi !

I'm trying to upgrade my code form 2.6.3 to 3.2.1 and I have 1 issue when deploying it into wildfly:

2017-05-17 13:36:19,611 WARN  [ca.uhn.hl7v2.VersionLogger] (ServerService Thread Pool -- 102) 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.xdsi-service-3.2.1.war:main" from Service Module Loader]
at ca.uhn.hl7v2.util.XMLUtils.getDOMImpl(XMLUtils.java:55)
at ca.uhn.hl7v2.VersionLogger.checkDOMImplementation(VersionLogger.java:44)
at ca.uhn.hl7v2.VersionLogger.init(VersionLogger.java:36)
at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:126)
at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:112)
at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:103)
at org.apache.camel.component.hl7.HL7MLLPConfig.<init>(HL7MLLPConfig.java:38)
at org.apache.camel.component.hl7.HL7MLLPCodec.<init>(HL7MLLPCodec.java:50)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1099)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: java.lang.ClassNotFoundException: com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl from [Module "deployment.xdsi-service-3.2.1.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93)
at org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance(DOMImplementationRegistry.java:182)
at ca.uhn.hl7v2.util.XMLUtils.getDOMImpl(XMLUtils.java:52)
... 46 more


Can someone please tell me what is wrong or which libraries are missing ?

Thanks !

yours

Arnold

Dmytro Rud

unread,
May 17, 2017, 7:46:36 AM5/17/17
to ipf-...@googlegroups.com
Please make sure that you use JDK 1.8.

Best regards
Dmytro

--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arnold Maderthaner

unread,
May 17, 2017, 7:48:48 AM5/17/17
to ipf-...@googlegroups.com
Hi !

Thanks for the quick reply.
I'm using the following java version:

root@archive:/# java -version

openjdk version "1.8.0_111"

OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)

OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
>> email to ipf-user+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ipf-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ipf-user+u...@googlegroups.com.

Dmytro Rud

unread,
May 17, 2017, 8:20:40 AM5/17/17
to ipf-...@googlegroups.com
Class com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl is part of the JDK.
I have no idea why it is missing in your deployment.
Which container do you use?


>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ipf-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+unsubscribe@googlegroups.com.

Arnold Maderthaner

unread,
May 17, 2017, 8:21:50 AM5/17/17
to ipf-...@googlegroups.com
I'm deploying this in wildfly 10 which runs in a docker container. I
tried it on ubuntu and mac os x and get the exception in both of them.
>> >> email to ipf-user+u...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to a topic in the
>> > Google Groups "ipf-user" group.
>> > To unsubscribe from this topic, visit
>> > https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
>> > To unsubscribe from this group and all its topics, send an email to
>> > ipf-user+u...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ipf-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ipf-user+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ipf-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ipf-user+u...@googlegroups.com.

Dmytro Rud

unread,
May 17, 2017, 8:25:21 AM5/17/17
to ipf-...@googlegroups.com


>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to a topic in the
>> > Google Groups "ipf-user" group.
>> > To unsubscribe from this topic, visit
>> > https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
>> > To unsubscribe from this group and all its topics, send an email to

>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ipf-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an

>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ipf-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "ipf-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ipf-user+unsubscribe@googlegroups.com.

Arnold Maderthaner

unread,
May 17, 2017, 8:45:25 AM5/17/17
to ipf-...@googlegroups.com
not sure how I can resolve this now in my project - any hints on where
to start ?
>> >> >> email to ipf-user+u...@googlegroups.com.
>> >> >> For more options, visit https://groups.google.com/d/optout.
>> >> >
>> >> >
>> >> > --
>> >> > You received this message because you are subscribed to a topic in
>> >> > the
>> >> > Google Groups "ipf-user" group.
>> >> > To unsubscribe from this topic, visit
>> >> > https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
>> >> > To unsubscribe from this group and all its topics, send an email to
>> >> > ipf-user+u...@googlegroups.com.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "ipf-user" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to ipf-user+u...@googlegroups.com.
>> >> For more options, visit https://groups.google.com/d/optout.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to a topic in the
>> > Google Groups "ipf-user" group.
>> > To unsubscribe from this topic, visit
>> > https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
>> > To unsubscribe from this group and all its topics, send an email to
>> > ipf-user+u...@googlegroups.com.
>> > For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ipf-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ipf-user+u...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "ipf-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ipf-user/4F9MWOpJVX8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> ipf-user+u...@googlegroups.com.

Sunil BK

unread,
Jun 27, 2017, 11:13:19 AM6/27/17
to ipf-user
I had the same issue today and as able to deploy my application on wildfly 10.1.

What I had to do was to add the following dependecy to my pom.xml

<dependency>
<groupId>com.sun.org.apache</groupId>
<artifactId>jaxp-ri</artifactId>
<version>1.4</version>
</dependency>


Hope this helps.
Cheers
Sunil
Reply all
Reply to author
Forward
0 new messages