[jboss-user] [JBossWS] - Publishing my own wsdl which imports an xsd file.
john.franklin
do-not-reply at jboss.com
Fri Aug 24 12:03:14 EDT 2007
I am using jboss 4.2.1 and jbossws 2.0.0
I am trying to publish the wsdl I have created by setting the wsdLocation correctly in the @WebService implementation file of the web service.
The wsdl and the xsd files are located in the META-INF directory in the war file. It located the wsdl file, but cannot locate the xsd file which is in the same place. However JBoss throws an exception and fails to deploy. Is this a bug or am I doing something wrong?
2007-08-24 07:35:39,200 ERROR [ServiceEndpointDeployer] Cannot start service endpoint
| org.jboss.ws.WSException: Cannot publish wsdl to: /opt/SYNAPPS100008/jboss-4.2.1.GA/server/default/data/wsdl/synappsccv1.war/Syna
| ppsSessionService.wsdl
| at org.jboss.ws.core.server.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:126)
| at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:134)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy47.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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 $Proxy10.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| 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)
| Caused by: java.io.IOException: Cannot get URL for: WEB-INF/wsdl/SynappsSession.xsd
| at org.jboss.ws.integration.ResourceLoaderAdapter.findChild(ResourceLoaderAdapter.java:105)
| at org.jboss.ws.core.server.UnifiedDeploymentInfo.getMetaDataFileURL(UnifiedDeploymentInfo.java:106)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:202)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:222)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:222)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:113)
| ... 31 more
| 2007-08-24 07:35:39,207 ERROR [MainDeployer] Could not start deployment: file:/opt/SYNAPPS100008/jboss-4.2.1.GA/server/default/de
| ploy/synappsccv1.war
| org.jboss.deployment.DeploymentException: Cannot start service endpoint; - nested throwable: (org.jboss.ws.WSException: Cannot pu
| blish wsdl to: /opt/SYNAPPS100008/jboss-4.2.1.GA/server/default/data/wsdl/synappsccv1.war/SynappsSessionService.wsdl)
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:101)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy47.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| 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 $Proxy10.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| 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)
| Caused by: org.jboss.ws.WSException: Cannot publish wsdl to: /opt/SYNAPPS100008/jboss-4.2.1.GA/server/default/data/wsdl/synappscc
| v1.war/SynappsSessionService.wsdl
| at org.jboss.ws.core.server.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:126)
| at org.jboss.ws.core.server.ServiceEndpointDeployer.start(ServiceEndpointDeployer.java:134)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.startServiceEndpoint(DeployerInterceptor.java:144)
| at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:96)
| ... 28 more
| Caused by: java.io.IOException: Cannot get URL for: WEB-INF/wsdl/SynappsSession.xsd
| at org.jboss.ws.integration.ResourceLoaderAdapter.findChild(ResourceLoaderAdapter.java:105)
| at org.jboss.ws.core.server.UnifiedDeploymentInfo.getMetaDataFileURL(UnifiedDeploymentInfo.java:106)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:202)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:222)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishSchemaImports(WSDLFilePublisher.java:222)
| at org.jboss.ws.core.server.WSDLFilePublisher.publishWsdlFiles(WSDLFilePublisher.java:113)
| ... 31 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077860#4077860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077860
More information about the jboss-user
mailing list