Nicolas Bielza [
http://community.jboss.org/people/nicolas.bielza] created the discussion
"Deployment exception when injecting WebServiceContext"
To view the discussion, visit:
http://community.jboss.org/message/596378#596378
--------------------------------------------------------------
Hello All,
Using: JBoss AS 6.0.0.Final and JBoss-WS Metro 3.3.1.GA
I'm trying to use the WebServiceContext to access the client SSL certificate that was
used during SSL handshake.
My endpoint looks like this:
@WebService(serviceName = "purchaseorderprocessin3", portName =
"SalesOrderProcessingOrderingOutPort", endpointInterface =
"com.alligacom.bydesign.SalesOrderProcessingOrderingOut", targetNamespace =
"http://sap.com/xi/AP/CRM/Global", wsdlLocation =
"WEB-INF/wsdl/SalesOrderProcessingOrderingOutWrapper.wsdl")
public class SalesOrderProcessingOrderingOutImpl implements
SalesOrderProcessingOrderingOut {
@Resource WebServiceContext webServiceContext;
public void confirmSalesOrder(
PurchaseOrderConfirmationMessage purchaseOrderConfirmation) {
if(purchaseOrderConfirmation == null) {
throw new IllegalArgumentException("purchaseOrderConfirmation is
required");
}
...
When trying to deploy the service I get the following exception:
16:32:37,386 WARN [org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect]
Unable to resolve SPI for type: class com.sun.xml.ws.api.pipe.TubelineAssemblerFactory
16:32:37,391 WARN [org.jboss.wsf.stack.metro.metadata.RuntimeModelDeploymentAspect]
Unable to resolve SPI for type: class com.sun.xml.ws.assembler.ServerPipelineHook
16:32:37,402 INFO [org.jboss.wsf.framework.management.DefaultEndpointRegistry] remove:
jboss.ws:context=sap/bc/srt/scs/srmap,endpoint=SalesOrderProcessingOrderingOut
16:32:37,403 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to Real:
name=vfs:///E:/ChuckNorris/JBoss/jboss-6.0.0.Final/server/default/deploy/POAck.war
state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException:
Failed to create web module
at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:487)
[:6.0.0.Final]
at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:122)
[:6.0.0.Final]
at
org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
[:2.2.0.GA]
at
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491)
[:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
[jboss-dependency.jar:2.2.0.GA]
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
[jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
[jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
[jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
[:2.2.0.GA]
at
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
[:2.2.0.GA]
at
org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
[:6.0.0.Final]
at
org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)
[:0.2.2]
at
org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240)
[:0.2.2]
at
org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192)
[:0.2.2]
at
org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57)
[:0.2.2]
at
org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74)
[:0.2.2]
at
org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95)
[:0.2.2]
at
org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)
[:0.2.2]
at
org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)
[:0.2.2]
at
org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)
[:0.2.2]
at
org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)
[:0.2.2]
at
org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135)
[:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146)
[:0.2.2]
at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90)
[:0.2.2]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [:1.6.0_23]
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) [:1.6.0_23]
at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [:1.6.0_23]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown
Source) [:1.6.0_23]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown
Source) [:1.6.0_23]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
Source) [:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_23]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_23]
at java.lang.Thread.run(Unknown Source) [:1.6.0_23]
Caused by: org.jboss.deployers.spi.DeploymentException: Error creating web module
vfs:///E:/ChuckNorris/JBoss/jboss-6.0.0.Final/server/default/deploy/POAck.war
at
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
[:2.2.0.GA]
at
org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:812)
[:6.0.0.Final]
at org.jboss.web.deployers.AbstractWarDeployer.deploy(AbstractWarDeployer.java:483)
[:6.0.0.Final]
... 41 more
Caused by: java.lang.NullPointerException
at
org.jboss.web.deployers.AbstractWarDeployer.createInjectorBMD(AbstractWarDeployer.java:928)
[:6.0.0.Final]
at
org.jboss.web.deployers.AbstractWarDeployer.deployWebModule(AbstractWarDeployer.java:769)
[:6.0.0.Final]
... 42 more
When I omit the WebServiceContext injection, the service works just fine.
Is there another way to access the WebServiceContext ?
Thanks,
Nicolas.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/596378#596378]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]