Nicolas Bielza [
http://community.jboss.org/people/nicolas.bielza] created the discussion
"Error deploying WebServiceProvider when using WS-RM"
To view the discussion, visit:
http://community.jboss.org/message/598902#598902
--------------------------------------------------------------
Hello All,
I'm using JBoss AS 5.1 with ESB 4.8 and JBossWS Metro 3.3.1
I converted an existing web service to a web service provider. When trying to deploy the
web service provider, I get a NPE. If I comment out the RMAssertion from the WSDL, the
service provider deploys fine.
11:32:33,465 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to Real:
name=vfsfile:/E:/ChuckNorris/JBoss/JBoss-AS/server/default/deploy/ByDesign_JBoss5.1.war/
state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error during deploy:
vfsfile:/E:/ChuckNorris/JBoss/JBoss-AS/server/default/deploy/ByDesign_JBoss5.1.war/
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:177)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
at
org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
at
org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:362)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.ws.WebServiceException: Failed to build METRO runtime model
at
org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:135)
at
org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:107)
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
... 24 more
Caused by: java.lang.NullPointerException
at
com.sun.xml.ws.rm.runtime.AbstractRmServerTube.<init>(AbstractRmServerTube.java:102)
at com.sun.xml.ws.rm.runtime.Rm11ServerTube.<init>(Rm11ServerTube.java:74)
at
com.sun.xml.ws.rm.runtime.AbstractRmServerTube.getInstance(AbstractRmServerTube.java:80)
at com.sun.xml.ws.rm.runtime.RmTubeAppender.appendTube(RmTubeAppender.java:86)
at
com.sun.xml.ws.assembler.TubelineAssemblerFactoryImpl$WsitTubelineAssembler.createServer(TubelineAssemblerFactoryImpl.java:101)
at com.sun.xml.ws.server.WSEndpointImpl.<init>(WSEndpointImpl.java:152)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:218)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at
org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parseAdapters(DeploymentDescriptorParserExt.java:295)
at
org.jboss.wsf.stack.metro.DeploymentDescriptorParserExt.parse(DeploymentDescriptorParserExt.java:171)
at
org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect.start(RuntimeModelDeploymentAspect.java:111)
... 27 more
The web service provider looks like this:
@WebServiceProvider(serviceName = "purchaseorderprocessin3",
portName = "SalesOrderProcessingOrderingOutPort",
targetNamespace = "http://sap.com/xi/AP/CRM/Global",
wsdlLocation =
"WEB-INF/wsdl/SalesOrderProcessingOrderingOutWrapper.wsdl")
@ServiceMode(value = Service.Mode.PAYLOAD)
public class SalesOrderProcessingOrderingOutImpl implements Provider<Source>
/*SalesOrderProcessingOrderingOut*/ {
public Source invoke(Source req) { System.out.println("Got order
confirmation !");
return null; }
}
I'd appreciate it very much if someone could tell me whether it is feasible or not to
build a WebServiceProvider using WS-RM (I must use WS-RM 1.1, that's the reason why
I'm using the Metro stack).
Thanks,
Nicolas.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/598902#598902]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]