1 Reply Latest reply: Mar 26, 2012 12:57 PM by nicolas duminil RSS

Can't deploy Apache vanila CXF web service on JBoss SOA-P 5.2 with CXF

nicolas duminil Novice

Greetings,

 

I downloaded and installed JBoss SOA-P 5.2.0 and installed the CXF web services stack. The JBoss WS Console shows jbossws-cxf-3.1.2.SP9. Trying to deploy the attached war containing a vanila CXF webservices raises the following exception:

 

13:22:32,997 ERROR [ContextLoader] Context initialization failed

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.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)

    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)

    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)

    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

    at $Proxy38.start(Unknown Source)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

    at org.jboss.system.ServiceController.start(ServiceController.java:460)

    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

    at org.jboss.Main.boot(Main.java:221)

    at org.jboss.Main$1.run(Main.java:556)

    at java.lang.Thread.run(Thread.java:662)

Caused by: 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.BeanUtils.instantiateClass(BeanUtils.java:115)

    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)

    ... 85 more

Caused by: java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType

    at java.lang.Class.asSubclass(Class.java:3018)

    at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:85)

    at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:239)

    at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:218)

    at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:109)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)

    ... 87 more

13:22:33,029 ERROR [[/orderapp]] Exception lors de l'envoi de l'?v?nement contexte initialis? (context initialized) ? l'instance de classe d'?coute (listener) org.springframework.web.context.ContextLoaderListener

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.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

    at java.security.AccessController.doPrivileged(Native Method)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)

    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)

    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)

    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)

    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)

    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)

    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)

    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)

    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3910)

    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4389)

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:321)

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)

    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

    at $Proxy38.start(Unknown Source)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

    at org.jboss.system.ServiceController.start(ServiceController.java:460)

    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

    at org.jboss.Main.boot(Main.java:221)

    at org.jboss.Main$1.run(Main.java:556)

    at java.lang.Thread.run(Thread.java:662)

Caused by: 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.BeanUtils.instantiateClass(BeanUtils.java:115)

    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)

    ... 85 more

Caused by: java.lang.ClassCastException: class org.apache.cxf.transport.jms.ClientBehaviorPolicyType

    at java.lang.Class.asSubclass(Class.java:3018)

    at org.apache.cxf.wsdl.JAXBExtensionHelper.addExtensions(JAXBExtensionHelper.java:85)

    at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:239)

    at org.apache.cxf.wsdl11.WSDLManagerImpl.registerInitialExtensions(WSDLManagerImpl.java:218)

    at org.apache.cxf.wsdl11.WSDLManagerImpl.<init>(WSDLManagerImpl.java:109)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100)

    ... 87 more

13:22:33,030 ERROR [StandardContext] Error listenerStart

13:22:33,030 ERROR [StandardContext] Erreur de d?marrage du contexte [/orderapp] suite aux erreurs pr?c?dentes

13:22:33,030 INFO  [[/orderapp]] Closing Spring root WebApplicationContext

13:22:33,030 ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/orderapp state=Create mode=Manual requiredState=Installed

org.jboss.deployers.spi.DeploymentException: URL file:/D:/jboss-soa-p-5.2.0-cxf/jboss-as/server/default/tmp/5c4o117-pti3ly-h03rspaa-1-h03ruauu-cc/orderapp.war/ deployment failed

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:342)

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)

    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

    at $Proxy38.start(Unknown Source)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

    at org.jboss.system.ServiceController.start(ServiceController.java:460)

    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

    at org.jboss.Main.boot(Main.java:221)

    at org.jboss.Main$1.run(Main.java:556)

    at java.lang.Thread.run(Thread.java:662)

13:22:33,061 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/D:/jboss-soa-p-5.2.0-cxf/jboss-as/server/default/deploy/orderapp.war/ state=PreReal mode=Manual requiredState=Real

org.jboss.deployers.spi.DeploymentException: URL file:/D:/jboss-soa-p-5.2.0-cxf/jboss-as/server/default/tmp/5c4o117-pti3ly-h03rspaa-1-h03ruauu-cc/orderapp.war/ deployment failed

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:342)

    at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:145)

    at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

    at org.jboss.web.deployers.WebModule.startModule(WebModule.java:122)

    at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

    at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

    at $Proxy38.start(Unknown Source)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

    at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

    at org.jboss.system.ServiceController.start(ServiceController.java:460)

    at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)

    at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)

    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)

    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)

    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)

    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)

    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)

    at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

    at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

    at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)

    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)

    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)

    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)

    at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)

    at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)

    at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

    at org.jboss.Main.boot(Main.java:221)

    at org.jboss.Main$1.run(Main.java:556)

    at java.lang.Thread.run(Thread.java:662)

 

What shall I do such that I could deploy this web service, and all the other developed for CXF, on JBoss ?

 

Many thanks in advance for your help.

  • 1. Re: Can't deploy Apache vanila CXF web service on JBoss SOA-P 5.2 with CXF
    nicolas duminil Novice

    I didn't have any answer to my question. I can deploy web services in JBoss with CXF exactly the same as they were JBossWS native web services. I understand this was the goal of providing CXF in JBoss: to leverage Apache CXF such that CXF web services be transparently deployed on JBoss. This is fine. But there are many CXF web services deployable on Tomcat or other containers and which are using vanila Apache CXF and which aren't deployable as it on JBoss. One needs to modify the web.xml deployment descriptor and to rename the spring bean definition files or to remove them completely. This is not convenient and I think that any CXF web service should be deployable on JBoss with CXF without having to touch anything. Is taht possible and, if yes, how ?