cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessio Soldano <>
Subject Re: Unable to deploy CXF WS package on JBoss
Date Tue, 09 Nov 2010 20:47:22 GMT
  Yes, this might be a classloading issue, however it's not that clear 
to me the relationship with WSS4J here (sorry Dan ;-)
Anyway, which webservice stack is being used on the mentioned JBoss 
5.1.0? (btw I assume it's the community AS version..?)
If the JBossWS-CXF stack is installed, you might want to simply avoid 
bundling the cxf libs in your application, as they are already there in 
the appserver. Alternatively you can probably try to isolate the 
deployment classloader from the server, but that's not going to be a 
trivial task at all.
If JBossWS-Native is being used, instead, you might be facing a 
thirdparty library clash as Dan mentioned, so you might want to first 
isolate the culprit lib and decide what to do once you've understood 
what's actually happening.


On 11/09/2010 08:23 PM, Daniel Kulp wrote:
> It's likely a classloader issue as JBoss likely already has some of the
> libraries we use in the classloader provided for the webapp.   I would assume
> things like WSS4J (which would be the cause of the ClassCastException) are
> already there or similar.    I would start removing some of the libs that
> JBoss already contains and seeing if that helps at all.
> Dan
> On Tuesday 09 November 2010 4:02:31 am doviche wrote:
>> Hello guys,
>> I am going through painful times as I have not been able to deploy my CXF
>> Webservice app onto jboss-5.1.0.
>> Well, I have a webservice architecture based on CXF WS and I've used Maven
>> to generate my webservices and they have been created properly by using
>> "wsdl2java".
>> I've deployed the webservice on tomcat they are working perfectly. The
>> problem is that when I try to deploy on JBoss and getting the following
>> errors:
>> Caused by: org.springframework.beans.factory.BeanCreationException:
>> Error creating bean with name 'org.apache.cxf.wsdl.WSDLManager' 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.wsdl11.WSDLManagerImpl]:
>> Constructor threw exception; nested exception is
>> java.lang.ClassCastException:
>> class org.apache.cxf.transport.jms.ClientBehaviorPolicyType
>> at
>> y.instantiateBean(
>> .....................................
>> more stacktraces
>> .........................
>> and finally the last line of error below...
>> javax.inject.DefinitionException: Could not find 'endpoint'
>> Does any one of you has a clue of this issue?
>> Best regards to all the pals.
>> Thanks in advace guys.
>> Douglas

Alessio Soldano
Web Service Lead, JBoss

View raw message