JMS SOAP endpoint unable to read WSDL from classpath or URL
nbaliga Dec 14, 2010 5:35 PMI have a <jms:soap-provider> configured with the wsdl property set to:
classpath:HelloWorld.wsdl
I checked that in my SU, the HelloWorld.wsdl file is located right alongside the xbean.xml file i.e. under the root of the SU's ZIP file.
I get the following exception:
+Caused by: javax.jbi.management.DeploymentException: Unable to read WSDL from: class path resource
at org.apache.servicemix.jms.endpoints.JmsSoapProviderEndpoint.validate(JmsSoapProviderEndpoint.java:141)[148:servicemix-jms:2010.02.0.fuse-01-00]
at org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)[90:servicemix-common:2010.02.0.fuse-01-00]
at org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)[90:servicemix-common:2010.02.0.fuse-01-00]
at org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:98)[90:servicemix-common:2010.02.0.fuse-01-00]
at org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)[90:servicemix-common:2010.02.0.fuse-01-00]
at org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)[90:servicemix-common:2010.02.0.fuse-01-00]
at org.apache.servicemix.jbi.deployer.artifacts.ServiceUnitImpl.deploy(ServiceUnitImpl.java:104)[93:org.apache.servicemix.jbi.deployer:1.3.0.fuse-01-00]
at org.apache.servicemix.jbi.deployer.impl.ServiceAssemblyInstaller.deploySUs(ServiceAssemblyInstaller.java:207)[93:org.apache.servicemix.jbi.deployer:1.3.0.fuse-01-00]
... 14 more
Caused by: java.lang.NullPointerException
at org.apache.servicemix.soap.wsdl.Wsdl1Soap11BindingFactory.createInput(Wsdl1Soap11BindingFactory.java:132)[139:servicemix-soap2:2010.02.0.fuse-01-00]
at org.apache.servicemix.soap.wsdl.Wsdl1Soap11BindingFactory.createWsdl1SoapBinding(Wsdl1Soap11BindingFactory.java:100)[139:servicemix-soap2:2010.02.0.fuse-01-00]
at org.apache.servicemix.soap.wsdl.Wsdl1BindingFactory.createBinding(Wsdl1BindingFactory.java:35)[139:servicemix-soap2:2010.02.0.fuse-01-00]
at org.apache.servicemix.soap.wsdl.BindingFactory.createBinding(BindingFactory.java:24)[139:servicemix-soap2:2010.02.0.fuse-01-00]
at org.apache.servicemix.jms.endpoints.JmsSoapProviderEndpoint.validateWsdl1(JmsSoapProviderEndpoint.java:189)[148:servicemix-jms:2010.02.0.fuse-01-00]
at org.apache.servicemix.jms.endpoints.JmsSoapProviderEndpoint.validate(JmsSoapProviderEndpoint.java:129)[148:servicemix-jms:2010.02.0.fuse-01-00]
... 21 more+
I tried changing the WSDL location to be a URL, just for debugging and I get
a similar kind of error:
+javax.jbi.management.DeploymentException: Unable to read WSDL from: URL http://209.42.3.254:9080/Webservices/HelloWorld?wsdl
...+
Any pointers?
Thanks.