[jboss-user] [JBoss Web Services] - How can I use JBossWS-Native with JBoss 7.1?

Amit Yadav do-not-reply at jboss.com
Tue Dec 20 07:31:14 EST 2011


Amit Yadav [http://community.jboss.org/people/yadavamit] created the discussion

"How can I use JBossWS-Native with JBoss 7.1?"

To view the discussion, visit: http://community.jboss.org/message/642443#642443

--------------------------------------------------------------
While migrating a web service application from JBoss-4.2.3 to JBoss7.1, it gives below exception:
 
17:49:28,975 DEBUG [org.jboss.modules] (MSC service thread 1-2) Module org.jboss.ws.jaxws-jboss-httpserver-httpspi:main defined by local module loader @1394894 (roots: C:\jboss-7.1.0\modules)
17:49:29,522 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://www.nsn.com/top/schemas}TOPServerService from WSDL: WEB-INF/wsdl/tops
1. erver.wsdl
17:49:29,866 FINE [org.apache.cxf.resource.DefaultResourceManager] (MSC service thread 1-2) resolving resource <WEB-INF/wsdl/topserver.wsdl> as stream
17:49:29,866 FINE [org.apache.cxf.resource.DefaultResourceManager] (MSC service thread 1-2) resolving resource <WEB-INF/wsdl/topserver.wsdl> type <class java.net.URL>
17:49:30,382 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointInfo] (MSC service thread 1-2) Setting new service endpoint address in wsdl: http://webopa.nat.myrio.net:8085/top/topserve
r
17:49:30,679 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC service thread 1-2) remove: jboss.ws:context=top,endpoint=topserver
17:49:30,679 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.deployment.subunit."opa_pia.ear"."opa_pia.war".INSTALL: org.jboss.msc.service.StartExce
ption in service jboss.deployment.subunit."opa_pia.ear"."opa_pia.war".INSTALL: Failed to process phase INSTALL of subdeployment "opa_pia.war" of deployment "opa_pia.ear"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.1.0.Beta1b.jar:]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:]
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]
        at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]
Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
        at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:239)
        at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:509)
        at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
        at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:109)
        at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:132)
        at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:74)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.1.0.Beta1b.jar:]
        ... 5 more
Caused by: java.lang.NullPointerException
        at org.apache.cxf.common.util.ASMHelper.getClassCode(ASMHelper.java:91)
        at org.apache.cxf.jaxws.WrapperClassGenerator.generateMessagePart(WrapperClassGenerator.java:326)
        at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:239)
        at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:142)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:661)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:630)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:394)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:505)
        at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:241)
        at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:202)
        at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
        at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:157)
        at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:202)
        at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:433)
        at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:322)
        ... 13 more
 


It seems JBoss7.1 uses CXF by default.

Can anyone tell me how can I override CXF support by JBossWS-Native?
 
Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/642443#642443]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111220/a38ae481/attachment.html 


More information about the jboss-user mailing list