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 > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > y.instantiateBean(AbstractAutowireCapableBeanFactory.java:883) > ..................................... > 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 -- Daniel Kulp dk...@apache.org http://dankulp.com/blog