[jbossws-users] [JBossWS] - Re: Problem deploying a simple web service
sigitm
do-not-reply at jboss.com
Mon Jan 8 12:49:58 EST 2007
Sorry, it was my fault in the wstools config file. I had to write WebService instead of WebServiceBean.
Now I can see my web service in http://localhost:8080/jbossws/services
I have another problem: if I deploy only the .jar file (containing also other EJBs), all works. But if I deploy the ear file (containing the .jar file and also a .war file with jsps, servlets, etc.), JBoss says:
18:39:28,390 INFO [EjbModule] Deploying WebService
| 18:39:28,984 INFO [TomcatDeployer] deploy, ctxPath=/PublishingSystem, warUrl=.../tmp/deploy/PublishingSystem.DipartimentoApp.ear-PublishingSystem.DipartimentoEJB.jar-ws47226.war/
| 18:39:29,578 ERROR [MainDeployer] Could not create deployment: file:/C:/Programmi/jboss-4.0.5.GA/server/default/tmp/deploy/tmp47225PublishingSystem.DipartimentoApp.ear-contents/PublishingSystem.DipartimentoWeb.war
| java.lang.IllegalArgumentException: Cannot find wsdl in deployment: META-INF/wsdl/WebService.wsdl
| at org.jboss.ws.metadata.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:270)
| at org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JSR109ServerMetaDataBuilder.java:94)
| at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:78)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
| at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| 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:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy39.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 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:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
|
Why? I tried to insert the 3 wstools-generated files (webservices.xml, jaxrpc-mapping.xml, WebService.wsdl) even inside the .war and inside the .ear, but it doesn't work.
In which package should I put these 3 files? How can I do to use the web service deploying the entire .ear?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999124#3999124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999124
More information about the jbossws-users
mailing list