Hi All,

I am very new for Apache Camel. I downloaded the Apache Camel 2.10.3.
I built the Apache Camel 2 example camel-example-cxf-tomcat by using the
command  "mvn clean package". I deployed to Tomcat. It works fine.
However, my server target is WebSphere Application Server version 8.5. I
read the articles mentioned about deploying Apache Camel and CXF in
WebSphere.
Here are the step I have done for WebSphere deployment
1. Change the module class loader order to parent last
2. Modify the pom.xml to add the entry "DisableIBMJAXWSEngine: true" into
the /WEB-INF/MANIFEST.MF

After I deploy the war file to WebSphere Application Server. I got the error
below:


Caused by: java.lang.IncompatibleClassChangeError:
org.apache.neethi.AssertionBuilderFactory
        at java.lang.ClassLoader.defineClassImpl(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:262)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)
        at
com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:852)
        at
com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:762)
        at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:585)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
        at java.lang.ClassLoader.defineClassImpl(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:262)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)
        at
com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:852)
        at
com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:762)
        at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:585)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:627)
        at
org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:169)

It complains about class loader issue. I also try to remove the
geronimo-javamail_1.4_spec-1.7.1 from WEB-INF/lib but I have the same error
message. Anyone has any idea to diagnose or fix this issue.
Thank you in advance.

Best regards,
Duke




--
View this message in context: 
http://camel.465427.n5.nabble.com/camel-example-cxf-tomcat-class-loader-issue-when-deploys-in-WebSphere-tp5726596.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to