[jboss-user] [JBoss Web Services] - Jboss Native - EJB based Webservice top down approach
Sagar Sahasrabudhe
do-not-reply at jboss.com
Thu Apr 1 17:54:33 EDT 2010
Sagar Sahasrabudhe [http://community.jboss.org/people/sagarps] created the discussion
"Jboss Native - EJB based Webservice top down approach"
To view the discussion, visit: http://community.jboss.org/message/535292#535292
--------------------------------------------------------------
Hello,
I was trying top down approach for generating EJB based webservice, using Jboss Native stack.
Generated the stubs using wsconsume command.
created EJB and web project in eclipse (copied the stubs and defined HelloServiceImpl) and structure as follows
EAR
- EJB
- src
HelloServiceImpl
HelloServicePort
- META-INF
wsdl
HelloService.wsdl
- WEB
- WebContent
META-INF
wsdl
HelloService.wsdl
WEB-INF
web.xml (defined servlet entry for HelloService)
HelloServiceImpl defined with annotations. Here i have to use the wsdl which i had defined so i am having the wsdlLocation.
@Stateless
@javax.jws.WebService(
name = "HelloServicePortImpl",
endpointInterface="com.mytest.test.businessservice.helloservice.facade.HelloServicePort",
targetNamespace = " http://facade.helloService.businessService.test.mytest.com/ http://facade.helloService.businessService.test.mytest.com/",
portName="HelloServicePort",
serviceName="HelloService",
wsdlLocation="META-INF/wsdl/HelloService.wsdl")
@TransactionManagement(TransactionManagementType.CONTAINER)
When i deploy this ear in jboss with native, it is not able to locate the wsdl in web project, but able to locate in EJB project.
(Note: But same EAR works fine on Jboss with Metro)
17:18:43,396 INFO [WSDLFilePublisher] WSDL published to: file:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/data/wsdl/NewHelloEAR.ear/NewHelloEJB.jar/HelloService.wsdl
17:18:43,443 INFO [SessionSpecContainer] Stopping jboss.j2ee:ear=NewHelloEAR.ear,jar=NewHelloEJB.jar,name=HelloServicePortImpl,service=EJB3
17:18:43,443 INFO [EJBContainer] STOPPED EJB: com.starwood.test.businessservice.helloservice.facade.HelloServicePortImpl ejbName: HelloServicePortImpl
17:18:43,505 ERROR [AbstractKernelController] Error installing to Real: name=vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/ state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/NewHelloWebRouter.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.doInstallParentFirst(DeployersImpl.java:1210)
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(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:146)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:170)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.ws.WSException: Invalid wsdlFile 'vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/NewHelloWebRouter.war/META-INF/wsdl/HelloService.wsdl', expected in: WEB-INF/wsdl/
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.getPublishLocation(WSDLFilePublisher.java:373)
at org.jboss.wsf.stack.jbws.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:103)
at org.jboss.wsf.stack.jbws.PublishContractDeploymentAspect.start(PublishContractDeploymentAspect.java:50)
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)
... 25 more
17:18:43,505 WARN [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** DEPLOYMENTS IN ERROR: Name -> Error
vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/ -> org.jboss.deployers.spi.DeploymentException: Error during deploy: vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/NewHelloWebRouter.war/
DEPLOYMENTS IN ERROR:
Deployment "vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/" is in error due to the following reason(s): org.jboss.ws.WSException: Invalid wsdlFile 'vfszip:/C:/Architecture_POC/jboss-5.1.0.GA/server/default/deploy/NewHelloEAR.ear/NewHelloWebRouter.war/META-INF/wsdl/HelloService.wsdl', expected in: WEB-INF/wsdl/
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:146)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:170)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
at java.lang.Thread.run(Thread.java:595)
Did anyone faced the same problem?
I tried to place the wsdls in WEB-INF directory as mentioned in above exception stack trace, but no success.
How do we put a common wsdl across EJB and Web project (as defined in wsdlLocation)?
Thanks,
Sagar
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/535292#535292]
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/20100401/0bcda378/attachment.html
More information about the jboss-user
mailing list