You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by nareshcgi <na...@cgifederal.com> on 2014/10/15 23:54:23 UTC
Could not load extension class
org.apache.cxf.ws.policy.AssertionBuilderRegistryImpl
I'm running into a CXF problem that has been asked and answered many times,
but I've had no luck with any of the provided solutions. Here is the
abridged stack trace (I can provided full stacks / logs if needed):
org.springframework.web.context.ContextLoader initWebApplicationContext
Context initialization failed
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'cxf' defined in class path resource
[META-INF/cxf/cxf.xml]:
Instantiation of bean failed; nested exception is
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.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:964)
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:141)
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:173)
Caused by: java.lang.IncompatibleClassChangeError:
org.apache.neethi.AssertionBuilderFactory
at java.lang.ClassLoader.defineClassImpl(Native Method)
I followed the information from CXF App Server-specific config, and the IBM
Thaker PDF, but to list a few specifically:
- WebSphere's JAX-WS Engine has been disabed (tried first via JVM
properties, then through the WAR's manifest)
- Set local classloader first (parent last) for the module
- Included org.apache.servicemix.bundles.saaj-impl-1.3.18_1.jar
As a side note: there is another WAR module for my project that has the
exact same problem, but if it's wrapped in an EAR, everything works
perfectly. Unfortunately, because of ANOTHER WebSphere-specific issue, we
cannot bundle the module in question in an EAR.
Do you have any thoughts on what could be preventing this from working when
deployed as a standalone WAR?
For reference, here are the jars included the WAR's lib folder:
antlr-2.7.7
aopalliance-1.0
asm-3.3.1
aspectjrt-1.7.0
aspectjweaver-1.7.0
bootstrap-1.0.10
cglib-nodep-2.2
commons-beanutils-1.8.3
commons-codec-1.7
commons-collections-3.2.1
commons-digester-1.8
commons-fileupload-1.2.2
commons-io-1.3.2
commons-lang-2.6
commons-logging-1.1.1
commons-validator-1.4.0
cxf-bundle-2.7.3
dom4j-1.6.1
ehcache-core-2.5.1
el-api-2.2
el-impl-2.2
guava-13.0.1
hibernate-3.2.5.ga
hibernate-annotations-3.3.1.GA
hibernate-commons-annotations-3.0.0.ga
hibernate-jpa-2.0-api-1.0.1.Final
httpasyncclient-4.0-beta3
httpclient-4.2.1
httpcore-4.2.1
httpcore-nio-4.2.2
javax.ws.rs-api-2.0-m10
jaxb-impl-2.2.7-b41
jaxb-xjc-2.2.7-b41
jcl-over-slf4j-1.7.0
joda-time-1.6.2
js-1.7R2
json-20090211
jta-1.0.1B
log4j-1.2.17
mina-core-2.0.5
myfaces-bundle-2.1.15
neethi-3.0.2
oauth-20100527
oauth-provider-20100527
opensaml-2.5.1-1
openws-1.4.2-1
org.apache.servicemix.bundles.saaj-impl-1.3.18_1
org.apache.servicemix.specs.saaj-api-1.3-1.9.0
primefaces-4.0
slf4j-api-1.7.0
spring-aop-3.0.7.RELEASE
spring-asm-3.0.7.RELEASE
spring-beans-3.0.7.RELEASE
spring-context-3.0.7.RELEASE
spring-core-3.0.7.RELEASE
spring-expression-3.0.7.RELEASE
spring-jdbc-3.0.7.RELEASE
spring-jms-3.0.7.RELEASE
spring-orm-3.0.7.RELEASE
spring-tx-3.0.7.RELEASE
spring-web-3.0.7.RELEASE
stax2-api-3.1.1
woodstox-core-asl-4.1.4
wsdl4j-1.6.2
wss4j-1.6.9
xml-resolver-1.2
xmlbeans-2.6.0
xmlpull-1.1.3.1
xmlschema-core-2.0.3
xmlsec-1.5.5
xmltooling-1.3.2-1
xpp3_min-1.1.4c
xstream-1.4.3
Thanks,
Naresh
--
View this message in context: http://cxf.547215.n5.nabble.com/Could-not-load-extension-class-org-apache-cxf-ws-policy-AssertionBuilderRegistryImpl-tp5749942.html
Sent from the cxf-user mailing list archive at Nabble.com.