camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhanu <bhanuprakas...@gmail.com>
Subject Help need on exception java.lang.IncompatibleClassChangeError: org.apache.neethi.AssertionBuilderFactory
Date Mon, 16 Dec 2013 13:19:52 GMT
Hi All, 

I am trying to access the remote web services call using the CXF component
by referring CXF examples..

While deploying the code in the WAS8.5 server I am getting the Error :
IncompatibleClassChangeError: org.apache.neethi.AssertionBuilderFactory
version. 

I am  using camel-cxf-2.12.2.jar’s  and cxf-api-2.7.7.jar’s .I have tried
below steps to resolve this but issue still persist. 

Step 1:  In Server changed "Class loader order" to be "(parent last)".

Step 2:  Tried using different versions of neethi.jar (3.0.0/3.0.1/3.0.2).

Step 3:  Tried using old version of camel-cxf-2.12.2.jar’s and
cxf-api-2.6.6.jar’s in WAS7.0 server. 

Step 4. Deleted following jar’s form the lib stax2-api.XXXX.jar and
geronimo-javamail_1.4_spec_XXX.jar (as suggested in stackoverflow.com)


Following are the jar’s list which I am using now. 
---------------------------------------------------------
aopalliance-1.0.jar
asm-3.3.1.jar
camel-core-2.12.2.jar
camel-cxf-2.12.2.jar
camel-cxf-transport-2.12.2.jar
camel-http-2.12.2.jar
camel-servlet-2.12.2.jar
camel-spring-2.12.2.jar
commons-codec-1.8.jar
commons-httpclient-3.1.jar
commons-logging-1.1.3.jar
cxf-api-2.7.7.jar
cxf-rt-bindings-soap-2.7.7.jar
cxf-rt-bindings-xml-2.7.7.jar
cxf-rt-core-2.7.7.jar
cxf-rt-databinding-jaxb-2.7.7.jar
cxf-rt-features-clustering-2.7.7.jar
cxf-rt-frontend-jaxrs-2.7.7.jar
cxf-rt-frontend-jaxws-2.7.7.jar
cxf-rt-frontend-simple-2.7.7.jar
cxf-rt-transports-http-2.7.7.jar
cxf-rt-ws-addr-2.7.7.jar
cxf-rt-ws-policy-2.7.7.jar
javax.ws.rs-api-2.0-m10.jar
jaxb-impl-2.1.13.jar
log4j-1.2.17.jar
neethi-3.0.2.jar
slf4j-api-1.6.6.jar
slf4j-log4j12-1.7.5.jar
spring-aop-3.2.4.RELEASE.jar
spring-beans-3.2.4.RELEASE.jar
spring-context-3.2.4.RELEASE.jar
spring-core-3.2.4.RELEASE.jar
spring-expression-3.2.4.RELEASE.jar
spring-tx-3.2.4.RELEASE.jar
spring-web-3.2.4.RELEASE.jar
woodstox-core-asl-4.2.0.jar
wsdl4j-1.6.3.jar
xml-resolver-1.2.jar
xmlschema-core-2.0.3.jar


Error Log
---------------------
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class [org.apache.cxf.bus.spring.SpringBus]: Constructor
threw exception; nested exception is
org.apache.cxf.bus.extension.ExtensionException: Could not load extension
class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
	at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1000)
	... 78 more
Caused by: org.apache.cxf.bus.extension.ExtensionException: Could not load
extension class org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl.
	at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:182)
	at
org.apache.cxf.bus.extension.Extension.getClassObject(Extension.java:194)
	at
org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:141)
	at
org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:126)
	at
org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:138)
	at org.apache.cxf.bus.spring.SpringBus.<init>(SpringBus.java:47)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:45)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:515)
	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
	... 80 more
Caused by: java.lang.IncompatibleClassChangeError:
org.apache.neethi.AssertionBuilderFactory
	at java.lang.ClassLoader.defineClassImpl(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at
com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:726)
	at
com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:645)
	at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:468)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
	at java.lang.ClassLoader.defineClassImpl(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:265)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at
com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:726)
	at
com.ibm.ws.classloader.CompoundClassLoader.localFindClass(CompoundClassLoader.java:645)
	at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:468)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
	at org.apache.cxf.bus.extension.Extension.tryClass(Extension.java:163)



--
View this message in context: http://camel.465427.n5.nabble.com/Help-need-on-exception-java-lang-IncompatibleClassChangeError-org-apache-neethi-AssertionBuilderFacty-tp5744851.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message