You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pikos <ad...@gmail.com> on 2007/12/10 19:14:24 UTC

http : soap-consumer error

Hi guys,

I try to use soap-consumer, in a trivial example, but I get a fatal error.
I use 3.2.1 from the tar.gz file.

This is my xbean.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:http="http://servicemix.apache.org/http/1.0" 
xmlns:xxx="http://adrian.org/test4">
        <classpath>
                <location>.</location>
        </classpath>
  <http:soap-consumer service="xxx:stockCon"
                 interfaceName="xxx:stockConInterface"
                 endpoint="StockQuoteServiceSOAP11portCons"
                 targetService="xxx:StockQuoteService"
                 locationURI="http://10.254.251.226:8194/test4/"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
                 wsdl="classpath:StockQuoteService.wsdl" />
</beans>

I try to use
wsdl="http://localhost:8080/axis2/services/StockQuoteService?wsdl" , but
does not work, even if the web service is there.. (if I copy-paste the same
url in the browser, I get the wsdl file).

The same example works if I use http:endpoint and use soap="true".
I have also change the 

The error when I try to deploy the file (by copying it in hotdeploy
directory) is following.


Thanks in advance,
Pikos.

My wsdl file:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:axis2="http://quickstart.samples/" 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns="http://quickstart.samples/xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://quickstart.samples/">
<wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://quickstart.samples/xsd">
<xs:element name="getPrice">
<xs:complexType>
<xs:sequence>
<xs:element name="symbol" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="getPriceResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" nillable="true" type="xs:double" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="update">
<xs:complexType>
<xs:sequence>
<xs:element name="symbol" nillable="true" type="xs:string" />
<xs:element name="price" nillable="true" type="xs:double" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema></wsdl:types>
<wsdl:message name="getPriceMessage">
    <wsdl:part name="part1" element="ns:getPrice" />
</wsdl:message>
<wsdl:message name="getPriceResponseMessage">
    <wsdl:part name="part1" element="ns:getPriceResponse" />
</wsdl:message>
<wsdl:message name="updateMessage">
    <wsdl:part name="part1" element="ns:update" />
</wsdl:message>
<wsdl:portType name="StockQuoteServicePortType">
    <wsdl:operation name="getPrice">
        <wsdl:input message="axis2:getPriceMessage" />
        <wsdl:output message="axis2:getPriceResponseMessage" />
    </wsdl:operation>
    <wsdl:operation name="update">
        <wsdl:input message="axis2:updateMessage" />
    </wsdl:operation>
</wsdl:portType>
<wsdl:binding name="StockQuoteServiceSOAP11Binding"
type="axis2:StockQuoteServicePortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
    <wsdl:operation name="getPrice">
        <soap:operation soapAction="urn:getPrice" style="document" />
        <wsdl:input>
            <soap:body use="literal" namespace="http://quickstart.samples/"
/>
        </wsdl:input>
        <wsdl:output>
            <soap:body use="literal" namespace="http://quickstart.samples/"
/>
        </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="update">
        <soap:operation soapAction="urn:update" style="document" />
        <wsdl:input>
            <soap:body use="literal" namespace="http://quickstart.samples/"
/>
        </wsdl:input>
    </wsdl:operation>
</wsdl:binding>
<wsdl:service name="StockQuoteService">
    <wsdl:port name="StockQuoteServiceSOAP11port"
binding="axis2:StockQuoteServiceSOAP11Binding">
        <soap:address
location="http://localhost:8080/axis2/services/StockQuoteService" />
    </wsdl:port>
</wsdl:service>
</wsdl:definitions>




My ERROR:
INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
changed: processing test4-http-sa-1.0-SNAPSHOT.zip ...
DEBUG - AutoDeploymentService          - Unpacked archive
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/hotdeploy/test4-http-sa-1.0-SNAPSHOT.zip
to
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/tmp/test4-http-sa-1.0-SNAPSHOT.0.tmp
DEBUG - SedaFlow                       - Called Flow suspend
DEBUG - JMSFlow                        - Called Flow suspend
DEBUG - JCAFlow                        - Called Flow suspend
DEBUG - AutoDeploymentService          - SA dependencies: [servicemix-http]
DEBUG - DeploymentService              - Moving
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/tmp/test4-http-sa-1.0-SNAPSHOT.0.tmp
to
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/install
DEBUG - DeploymentService              - Unpack service unit archive
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/install/test4-http-con-su-1.0-SNAPSHOT.zip
to
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su
DEBUG - HttpComponent                  - Deploying service unit
DEBUG - HttpComponent                  - Looking for
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml:
true
INFO  - FileSystemXmlApplicationContext - Refreshing
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
context hierarchy
INFO  - XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from
file
[/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml]
DEBUG - XBeanNamespaceHandlerResolver  - Loaded mappings
[{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler,
http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler,
http://activemq.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://servicemix.apache.org/http/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler,
http://servicemix.apache.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://xbean.apache.org/schemas/server=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler,
http://servicemix.apache.org/audit/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://servicemix.apache.org/soap/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler,
http://jencks.org/2.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://xbean.apache.org/schemas/classloader=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://activemq.org/ra/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler}]
DEBUG - XBeanNamespaceHandlerResolver  - Ignoring namespace handler
[org.springframework.scripting.config.LangNamespaceHandler]: handler class
not found
java.lang.ClassNotFoundException:
org.springframework.scripting.config.LangNamespaceHandler in classloader
org.springframework.scripting.config.LangNamespaceHandler
        at
org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
        at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:117)
        at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96)
        at
org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82)
        at
org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerResolver.<init>(XBeanNamespaceHandlerResolver.java:26)
        at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XBeanXmlBeanDefinitionReader.java:87)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:477)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
        at
org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
        at
org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinitions(FileSystemXmlApplicationContext.java:168)
        at
org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
        at
org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
        at
org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
        at
org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
        at
org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
        at
org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
        at
org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
        at
org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
        at
org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
DEBUG - XBeanBeanDefinitionDocumentReader - Loading bean definitions
DEBUG - XBeanNamespaceHandler          - Could not find resource:
META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/http/1.0/soap-consumerDEBUG
- XBeanBeanDefinitionParserDelegate - Neither XML 'id' nor 'name' specified
- using generated bean name
[org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint]
DEBUG - XBeanXmlBeanDefinitionReader   - Loaded 1 bean definitions from
location pattern
[//home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml]
INFO  - FileSystemXmlApplicationContext - Bean factory for application
context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@feb697
DEBUG - FileSystemXmlApplicationContext - 1 beans defined in
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
context hierarchy
DEBUG - FileSystemXmlApplicationContext - Unable to locate MessageSource
with name 'messageSource': using default
[org.springframework.context.support.DelegatingMessageSource@1ab5fd5]
DEBUG - FileSystemXmlApplicationContext - Unable to locate
ApplicationEventMulticaster with name 'applicationEventMulticaster': using
default
[org.springframework.context.event.SimpleApplicationEventMulticaster@20a82a]
DEBUG - FileSystemXmlApplicationContext - Publishing event in context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
org.springframework.context.event.ContextRefreshedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
context hierarchy]
INFO  - FileSystemXmlApplicationContext - Closing
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
context hierarchy
DEBUG - FileSystemXmlApplicationContext - Publishing event in context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
org.springframework.context.event.ContextClosedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
context hierarchy]
[Fatal Error] :1:1: Content is not allowed in prolog.
ERROR - AutoDeploymentService          - Failed to update Service Assembly:
test4-http-sa
java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-http</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>Unable to read WSDL from: class path resource
[StockQuoteService.wsdl]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: Unable to
read WSDL from: class path resource [StockQuoteService.wsdl]
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:127)
        at
org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
        at
org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
        at
org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:119)
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validateWsdl1(HttpSoapConsumerEndpoint.java:176)
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:115)
        ... 13 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:117)
        ... 15 more
Caused by: java.lang.NullPointerException
        at
org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.checkBindings(WSIBPValidator.java:212)
        ... 20 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
DEBUG - SedaFlow                       - Called Flow resume
DEBUG - JMSFlow                        - Called Flow resume
DEBUG - JCAFlow                        - Called Flow resume
WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
install of
/home/wp31/develop/servicemix/apache-servicemix-3.2.1/hotdeploy/test4-http-sa-1.0-SNAPSHOT.zip
failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly:
test4-http-sa
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:365)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
<jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
version="1.0">
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
<component-task-result>
<component-name>servicemix-http</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Unable to parse result string</loc-message>
</msg-loc-info>
</task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<loc-token/>
<loc-message>Unable to read WSDL from: class path resource
[StockQuoteService.wsdl]</loc-message>
<stack-trace><![CDATA[javax.jbi.management.DeploymentException: Unable to
read WSDL from: class path resource [StockQuoteService.wsdl]
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:127)
        at
org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
        at
org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
        at
org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:119)
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validateWsdl1(HttpSoapConsumerEndpoint.java:176)
        at
org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:115)
        ... 13 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:117)
        ... 15 more
Caused by: java.lang.NullPointerException
        at
org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.checkBindings(WSIBPValidator.java:212)
        ... 20 more
]]></stack-trace>
</exception-info>
</task-result-details>
</component-task-result-details>
</component-task-result>
</jbi-task-result>
</jbi-task>

        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
        ... 6 more

-- 
View this message in context: http://www.nabble.com/http-%3A-soap-consumer-error-tp14258182s12049p14258182.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http : soap-consumer error

Posted by Sriram83 <ss...@gmail.com>.
Hi Tom,

This problem occurs when there is an exception while validating the WSDL. I
was facing the same probllem, when I got the name spaces all messed up. 

My advice would be to start by including a simple wsdl with just the
service, port and binding definitions, once you get that working, start
including the rest of the stuff in.

I found the WSDL plugin shipped with MyEclipse, pretty useful for avoiding
these sort of errors.

If you are still not able to resolve, please post the xbean and the wsdl,
you are using, I will try to validate it.

regards,
Sriram.


Tom Purcell wrote:
> 
> Hello
> 
> Have you been able to resolve this. I'm getting the same "Unable to read
> WSDL from: class path" error using soap-consumer.
> 
> Thanks
> Tom
> 
> 
> pikos wrote:
>> 
>> Hi guys,
>> 
>> I try to use soap-consumer, in a trivial example, but I get a fatal
>> error.
>> I use 3.2.1 from the tar.gz file.
>> 
>> This is my xbean.xml
>> 
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0" 
>> xmlns:xxx="http://adrian.org/test4">
>>         <classpath>
>>                 <location>.</location>
>>         </classpath>
>>   <http:soap-consumer service="xxx:stockCon"
>>                  interfaceName="xxx:stockConInterface"
>>                  endpoint="StockQuoteServiceSOAP11portCons"
>>                  targetService="xxx:StockQuoteService"
>>                  locationURI="http://10.254.251.226:8194/test4/"
>>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
>>                  wsdl="classpath:StockQuoteService.wsdl" />
>> </beans>
>> 
>> I try to use
>> wsdl="http://localhost:8080/axis2/services/StockQuoteService?wsdl" , but
>> does not work, even if the web service is there.. (if I copy-paste the
>> same url in the browser, I get the wsdl file).
>> 
>> The same example works if I use http:endpoint and use soap="true".
>> I have also change the 
>> 
>> The error when I try to deploy the file (by copying it in hotdeploy
>> directory) is following.
>> 
>> 
>> Thanks in advance,
>> Pikos.
>> 
>> My wsdl file:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wsdl:definitions xmlns:axis2="http://quickstart.samples/" 
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
>> xmlns:ns="http://quickstart.samples/xsd"
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>> targetNamespace="http://quickstart.samples/">
>> <wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>> attributeFormDefault="qualified" elementFormDefault="qualified"
>> targetNamespace="http://quickstart.samples/xsd">
>> <xs:element name="getPrice">
>> <xs:complexType>
>> <xs:sequence>
>> <xs:element name="symbol" nillable="true" type="xs:string" />
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>> <xs:element name="getPriceResponse">
>> <xs:complexType>
>> <xs:sequence>
>> <xs:element name="return" nillable="true" type="xs:double" />
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>> <xs:element name="update">
>> <xs:complexType>
>> <xs:sequence>
>> <xs:element name="symbol" nillable="true" type="xs:string" />
>> <xs:element name="price" nillable="true" type="xs:double" />
>> </xs:sequence>
>> </xs:complexType>
>> </xs:element>
>> </xs:schema></wsdl:types>
>> <wsdl:message name="getPriceMessage">
>>     <wsdl:part name="part1" element="ns:getPrice" />
>> </wsdl:message>
>> <wsdl:message name="getPriceResponseMessage">
>>     <wsdl:part name="part1" element="ns:getPriceResponse" />
>> </wsdl:message>
>> <wsdl:message name="updateMessage">
>>     <wsdl:part name="part1" element="ns:update" />
>> </wsdl:message>
>> <wsdl:portType name="StockQuoteServicePortType">
>>     <wsdl:operation name="getPrice">
>>         <wsdl:input message="axis2:getPriceMessage" />
>>         <wsdl:output message="axis2:getPriceResponseMessage" />
>>     </wsdl:operation>
>>     <wsdl:operation name="update">
>>         <wsdl:input message="axis2:updateMessage" />
>>     </wsdl:operation>
>> </wsdl:portType>
>> <wsdl:binding name="StockQuoteServiceSOAP11Binding"
>> type="axis2:StockQuoteServicePortType">
>>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
>> style="document" />
>>     <wsdl:operation name="getPrice">
>>         <soap:operation soapAction="urn:getPrice" style="document" />
>>         <wsdl:input>
>>             <soap:body use="literal"
>> namespace="http://quickstart.samples/" />
>>         </wsdl:input>
>>         <wsdl:output>
>>             <soap:body use="literal"
>> namespace="http://quickstart.samples/" />
>>         </wsdl:output>
>>     </wsdl:operation>
>>     <wsdl:operation name="update">
>>         <soap:operation soapAction="urn:update" style="document" />
>>         <wsdl:input>
>>             <soap:body use="literal"
>> namespace="http://quickstart.samples/" />
>>         </wsdl:input>
>>     </wsdl:operation>
>> </wsdl:binding>
>> <wsdl:service name="StockQuoteService">
>>     <wsdl:port name="StockQuoteServiceSOAP11port"
>> binding="axis2:StockQuoteServiceSOAP11Binding">
>>         <soap:address
>> location="http://localhost:8080/axis2/services/StockQuoteService" />
>>     </wsdl:port>
>> </wsdl:service>
>> </wsdl:definitions>
>> 
>> 
>> 
>> 
>> My ERROR:
>> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
>> changed: processing test4-http-sa-1.0-SNAPSHOT.zip ...
>> DEBUG - AutoDeploymentService          - Unpacked archive
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/hotdeploy/test4-http-sa-1.0-SNAPSHOT.zip
>> to
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/tmp/test4-http-sa-1.0-SNAPSHOT.0.tmp
>> DEBUG - SedaFlow                       - Called Flow suspend
>> DEBUG - JMSFlow                        - Called Flow suspend
>> DEBUG - JCAFlow                        - Called Flow suspend
>> DEBUG - AutoDeploymentService          - SA dependencies:
>> [servicemix-http]
>> DEBUG - DeploymentService              - Moving
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/tmp/test4-http-sa-1.0-SNAPSHOT.0.tmp
>> to
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/install
>> DEBUG - DeploymentService              - Unpack service unit archive
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/install/test4-http-con-su-1.0-SNAPSHOT.zip
>> to
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su
>> DEBUG - HttpComponent                  - Deploying service unit
>> DEBUG - HttpComponent                  - Looking for
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml:
>> true
>> INFO  - FileSystemXmlApplicationContext - Refreshing
>> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
>> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root
>> of context hierarchy
>> INFO  - XBeanXmlBeanDefinitionReader   - Loading XML bean definitions
>> from file
>> [/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml]
>> DEBUG - XBeanNamespaceHandlerResolver  - Loaded mappings
>> [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler,
>> http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler,
>> http://activemq.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://servicemix.apache.org/http/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler,
>> http://servicemix.apache.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://xbean.apache.org/schemas/server=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler,
>> http://servicemix.apache.org/audit/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://servicemix.apache.org/soap/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler,
>> http://jencks.org/2.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://xbean.apache.org/schemas/classloader=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://activemq.org/ra/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
>> http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler}]
>> DEBUG - XBeanNamespaceHandlerResolver  - Ignoring namespace handler
>> [org.springframework.scripting.config.LangNamespaceHandler]: handler
>> class not found
>> java.lang.ClassNotFoundException:
>> org.springframework.scripting.config.LangNamespaceHandler in classloader
>> org.springframework.scripting.config.LangNamespaceHandler
>>         at
>> org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>         at
>> org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
>>         at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:117)
>>         at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96)
>>         at
>> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82)
>>         at
>> org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerResolver.<init>(XBeanNamespaceHandlerResolver.java:26)
>>         at
>> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XBeanXmlBeanDefinitionReader.java:87)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:477)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
>>         at
>> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
>>         at
>> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
>>         at
>> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
>>         at
>> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
>>         at
>> org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinitions(FileSystemXmlApplicationContext.java:168)
>>         at
>> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
>>         at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
>>         at
>> org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
>>         at
>> org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
>>         at
>> org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
>>         at
>> org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
>>         at
>> org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
>>         at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>>         at
>> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
>>         at
>> org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
>>         at
>> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
>>         at
>> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
>>         at
>> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>>         at
>> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> DEBUG - XBeanBeanDefinitionDocumentReader - Loading bean definitions
>> DEBUG - XBeanNamespaceHandler          - Could not find resource:
>> META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/http/1.0/soap-consumerDEBUG
>> - XBeanBeanDefinitionParserDelegate - Neither XML 'id' nor 'name'
>> specified - using generated bean name
>> [org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint]
>> DEBUG - XBeanXmlBeanDefinitionReader   - Loaded 1 bean definitions from
>> location pattern
>> [//home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml]
>> INFO  - FileSystemXmlApplicationContext - Bean factory for application
>> context
>> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
>> org.springframework.beans.factory.support.DefaultListableBeanFactory@feb697
>> DEBUG - FileSystemXmlApplicationContext - 1 beans defined in
>> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
>> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root
>> of context hierarchy
>> DEBUG - FileSystemXmlApplicationContext - Unable to locate MessageSource
>> with name 'messageSource': using default
>> [org.springframework.context.support.DelegatingMessageSource@1ab5fd5]
>> DEBUG - FileSystemXmlApplicationContext - Unable to locate
>> ApplicationEventMulticaster with name 'applicationEventMulticaster':
>> using default
>> [org.springframework.context.event.SimpleApplicationEventMulticaster@20a82a]
>> DEBUG - FileSystemXmlApplicationContext - Publishing event in context
>> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
>> org.springframework.context.event.ContextRefreshedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
>> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root
>> of context hierarchy]
>> INFO  - FileSystemXmlApplicationContext - Closing
>> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
>> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root
>> of context hierarchy
>> DEBUG - FileSystemXmlApplicationContext - Publishing event in context
>> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
>> org.springframework.context.event.ContextClosedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
>> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root
>> of context hierarchy]
>> [Fatal Error] :1:1: Content is not allowed in prolog.
>> ERROR - AutoDeploymentService          - Failed to update Service
>> Assembly: test4-http-sa
>> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> <component-task-result>
>> <component-name>servicemix-http</component-name>
>> <component-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>Unable to parse result string</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>> <exception-info>
>> <nesting-level>1</nesting-level>
>> <loc-token/>
>> <loc-message>Unable to read WSDL from: class path resource
>> [StockQuoteService.wsdl]</loc-message>
>> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: Unable to
>> read WSDL from: class path resource [StockQuoteService.wsdl]
>>         at
>> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:127)
>>         at
>> org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>>         at
>> org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>         at
>> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>>         at
>> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>>         at
>> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> Caused by: java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException
>>         at
>> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:119)
>>         at
>> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validateWsdl1(HttpSoapConsumerEndpoint.java:176)
>>         at
>> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:115)
>>         ... 13 more
>> Caused by: java.lang.reflect.InvocationTargetException
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:117)
>>         ... 15 more
>> Caused by: java.lang.NullPointerException
>>         at
>> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.checkBindings(WSIBPValidator.java:212)
>>         ... 20 more
>> ]]></stack-trace>
>> </exception-info>
>> </task-result-details>
>> </component-task-result-details>
>> </component-task-result>
>> </jbi-task-result>
>> </jbi-task>
>> 
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> DEBUG - SedaFlow                       - Called Flow resume
>> DEBUG - JMSFlow                        - Called Flow resume
>> DEBUG - JCAFlow                        - Called Flow resume
>> WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
>> install of
>> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/hotdeploy/test4-http-sa-1.0-SNAPSHOT.zip
>> failed
>> javax.jbi.management.DeploymentException: Failed to update Service
>> Assembly: test4-http-sa
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:365)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
>> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
>> version="1.0">
>> <jbi-task-result>
>> <frmwk-task-result>
>> <frmwk-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> </task-result-details>
>> </frmwk-task-result-details>
>> </frmwk-task-result>
>> <component-task-result>
>> <component-name>servicemix-http</component-name>
>> <component-task-result-details>
>> <task-result-details>
>> <task-id>deploy</task-id>
>> <task-result>FAILED</task-result>
>> <message-type>ERROR</message-type>
>> <task-status-msg>
>> <msg-loc-info>
>> <loc-token/>
>> <loc-message>Unable to parse result string</loc-message>
>> </msg-loc-info>
>> </task-status-msg>
>> <exception-info>
>> <nesting-level>1</nesting-level>
>> <loc-token/>
>> <loc-message>Unable to read WSDL from: class path resource
>> [StockQuoteService.wsdl]</loc-message>
>> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: Unable to
>> read WSDL from: class path resource [StockQuoteService.wsdl]
>>         at
>> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:127)
>>         at
>> org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>>         at
>> org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>>         at
>> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>>         at
>> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>>         at
>> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>>         at java.util.TimerThread.mainLoop(Timer.java:512)
>>         at java.util.TimerThread.run(Timer.java:462)
>> Caused by: java.lang.RuntimeException:
>> java.lang.reflect.InvocationTargetException
>>         at
>> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:119)
>>         at
>> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validateWsdl1(HttpSoapConsumerEndpoint.java:176)
>>         at
>> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:115)
>>         ... 13 more
>> Caused by: java.lang.reflect.InvocationTargetException
>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>         at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>         at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>         at java.lang.reflect.Method.invoke(Method.java:585)
>>         at
>> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:117)
>>         ... 15 more
>> Caused by: java.lang.NullPointerException
>>         at
>> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.checkBindings(WSIBPValidator.java:212)
>>         ... 20 more
>> ]]></stack-trace>
>> </exception-info>
>> </task-result-details>
>> </component-task-result-details>
>> </component-task-result>
>> </jbi-task-result>
>> </jbi-task>
>> 
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>>         at
>> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>>         at
>> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>>         at
>> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>>         ... 6 more
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/http-%3A-soap-consumer-error-tp14258182p17847824.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: http : soap-consumer error

Posted by Tom Purcell <tp...@chariotsolutions.com>.
Hello

Have you been able to resolve this. I'm getting the same "Unable to read
WSDL from: class path" error using soap-consumer.

Thanks
Tom


pikos wrote:
> 
> Hi guys,
> 
> I try to use soap-consumer, in a trivial example, but I get a fatal error.
> I use 3.2.1 from the tar.gz file.
> 
> This is my xbean.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0" 
> xmlns:xxx="http://adrian.org/test4">
>         <classpath>
>                 <location>.</location>
>         </classpath>
>   <http:soap-consumer service="xxx:stockCon"
>                  interfaceName="xxx:stockConInterface"
>                  endpoint="StockQuoteServiceSOAP11portCons"
>                  targetService="xxx:StockQuoteService"
>                  locationURI="http://10.254.251.226:8194/test4/"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
>                  wsdl="classpath:StockQuoteService.wsdl" />
> </beans>
> 
> I try to use
> wsdl="http://localhost:8080/axis2/services/StockQuoteService?wsdl" , but
> does not work, even if the web service is there.. (if I copy-paste the
> same url in the browser, I get the wsdl file).
> 
> The same example works if I use http:endpoint and use soap="true".
> I have also change the 
> 
> The error when I try to deploy the file (by copying it in hotdeploy
> directory) is following.
> 
> 
> Thanks in advance,
> Pikos.
> 
> My wsdl file:
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:axis2="http://quickstart.samples/" 
> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
> xmlns:ns="http://quickstart.samples/xsd"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> targetNamespace="http://quickstart.samples/">
> <wsdl:types><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://quickstart.samples/xsd">
> <xs:element name="getPrice">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="symbol" nillable="true" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="getPriceResponse">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="return" nillable="true" type="xs:double" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> <xs:element name="update">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="symbol" nillable="true" type="xs:string" />
> <xs:element name="price" nillable="true" type="xs:double" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema></wsdl:types>
> <wsdl:message name="getPriceMessage">
>     <wsdl:part name="part1" element="ns:getPrice" />
> </wsdl:message>
> <wsdl:message name="getPriceResponseMessage">
>     <wsdl:part name="part1" element="ns:getPriceResponse" />
> </wsdl:message>
> <wsdl:message name="updateMessage">
>     <wsdl:part name="part1" element="ns:update" />
> </wsdl:message>
> <wsdl:portType name="StockQuoteServicePortType">
>     <wsdl:operation name="getPrice">
>         <wsdl:input message="axis2:getPriceMessage" />
>         <wsdl:output message="axis2:getPriceResponseMessage" />
>     </wsdl:operation>
>     <wsdl:operation name="update">
>         <wsdl:input message="axis2:updateMessage" />
>     </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="StockQuoteServiceSOAP11Binding"
> type="axis2:StockQuoteServicePortType">
>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http"
> style="document" />
>     <wsdl:operation name="getPrice">
>         <soap:operation soapAction="urn:getPrice" style="document" />
>         <wsdl:input>
>             <soap:body use="literal"
> namespace="http://quickstart.samples/" />
>         </wsdl:input>
>         <wsdl:output>
>             <soap:body use="literal"
> namespace="http://quickstart.samples/" />
>         </wsdl:output>
>     </wsdl:operation>
>     <wsdl:operation name="update">
>         <soap:operation soapAction="urn:update" style="document" />
>         <wsdl:input>
>             <soap:body use="literal"
> namespace="http://quickstart.samples/" />
>         </wsdl:input>
>     </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="StockQuoteService">
>     <wsdl:port name="StockQuoteServiceSOAP11port"
> binding="axis2:StockQuoteServiceSOAP11Binding">
>         <soap:address
> location="http://localhost:8080/axis2/services/StockQuoteService" />
>     </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
> 
> 
> 
> 
> My ERROR:
> INFO  - AutoDeploymentService          - Directory: hotdeploy: Archive
> changed: processing test4-http-sa-1.0-SNAPSHOT.zip ...
> DEBUG - AutoDeploymentService          - Unpacked archive
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/hotdeploy/test4-http-sa-1.0-SNAPSHOT.zip
> to
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/tmp/test4-http-sa-1.0-SNAPSHOT.0.tmp
> DEBUG - SedaFlow                       - Called Flow suspend
> DEBUG - JMSFlow                        - Called Flow suspend
> DEBUG - JCAFlow                        - Called Flow suspend
> DEBUG - AutoDeploymentService          - SA dependencies:
> [servicemix-http]
> DEBUG - DeploymentService              - Moving
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/tmp/test4-http-sa-1.0-SNAPSHOT.0.tmp
> to
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/install
> DEBUG - DeploymentService              - Unpack service unit archive
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/install/test4-http-con-su-1.0-SNAPSHOT.zip
> to
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su
> DEBUG - HttpComponent                  - Deploying service unit
> DEBUG - HttpComponent                  - Looking for
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml:
> true
> INFO  - FileSystemXmlApplicationContext - Refreshing
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
> context hierarchy
> INFO  - XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from
> file
> [/home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml]
> DEBUG - XBeanNamespaceHandlerResolver  - Loaded mappings
> [{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler,
> http://www.springframework.org/schema/util=org.springframework.beans.factory.xml.UtilNamespaceHandler,
> http://activemq.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://servicemix.apache.org/http/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://www.springframework.org/schema/jee=org.springframework.ejb.config.JeeNamespaceHandler,
> http://servicemix.apache.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://xbean.apache.org/schemas/server=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://www.springframework.org/schema/aop=org.springframework.aop.config.AopNamespaceHandler,
> http://servicemix.apache.org/audit/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://servicemix.apache.org/soap/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://www.springframework.org/schema/tx=org.springframework.transaction.config.TxNamespaceHandler,
> http://jencks.org/2.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://xbean.apache.org/schemas/classloader=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://activemq.org/ra/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
> http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler}]
> DEBUG - XBeanNamespaceHandlerResolver  - Ignoring namespace handler
> [org.springframework.scripting.config.LangNamespaceHandler]: handler class
> not found
> java.lang.ClassNotFoundException:
> org.springframework.scripting.config.LangNamespaceHandler in classloader
> org.springframework.scripting.config.LangNamespaceHandler
>         at
> org.apache.xbean.classloader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:206)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at
> org.springframework.util.ClassUtils.forName(ClassUtils.java:201)
>         at
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:117)
>         at
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96)
>         at
> org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:82)
>         at
> org.apache.xbean.spring.context.v2.XBeanNamespaceHandlerResolver.<init>(XBeanNamespaceHandlerResolver.java:26)
>         at
> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XBeanXmlBeanDefinitionReader.java:87)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:477)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:458)
>         at
> org.apache.xbean.spring.context.v2.XBeanXmlBeanDefinitionReader.registerBeanDefinitions(XBeanXmlBeanDefinitionReader.java:79)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:353)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
>         at
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:147)
>         at
> org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:173)
>         at
> org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:112)
>         at
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext.loadBeanDefinitions(FileSystemXmlApplicationContext.java:168)
>         at
> org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101)
>         at
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324)
>         at
> org.apache.xbean.server.spring.configuration.SpringConfiguration.<init>(SpringConfiguration.java:63)
>         at
> org.apache.xbean.server.spring.configuration.SpringConfigurationServiceFactory.createService(SpringConfigurationServiceFactory.java:106)
>         at
> org.apache.xbean.kernel.standard.ServiceManager.start(ServiceManager.java:420)
>         at
> org.apache.xbean.kernel.standard.ServiceManager.initialize(ServiceManager.java:200)
>         at
> org.apache.xbean.kernel.standard.RegistryFutureTask$RegisterCallable.call(RegistryFutureTask.java:110)
>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:123)
>         at
> org.apache.xbean.kernel.standard.ServiceManagerRegistry.registerService(ServiceManagerRegistry.java:409)
>         at
> org.apache.xbean.kernel.standard.StandardKernel.registerService(StandardKernel.java:220)
>         at
> org.apache.xbean.server.spring.loader.SpringLoader.load(SpringLoader.java:152)
>         at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:83)
>         at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>         at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> DEBUG - XBeanBeanDefinitionDocumentReader - Loading bean definitions
> DEBUG - XBeanNamespaceHandler          - Could not find resource:
> META-INF/services/org/apache/xbean/spring/http/servicemix.apache.org/http/1.0/soap-consumerDEBUG
> - XBeanBeanDefinitionParserDelegate - Neither XML 'id' nor 'name'
> specified - using generated bean name
> [org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint]
> DEBUG - XBeanXmlBeanDefinitionReader   - Loaded 1 bean definitions from
> location pattern
> [//home/wp31/develop/servicemix/apache-servicemix-3.2.1/data/smx/service-assemblies/test4-http-sa/version_5/sus/servicemix-http/test4-http-con-su/xbean.xml]
> INFO  - FileSystemXmlApplicationContext - Bean factory for application
> context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@feb697
> DEBUG - FileSystemXmlApplicationContext - 1 beans defined in
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
> context hierarchy
> DEBUG - FileSystemXmlApplicationContext - Unable to locate MessageSource
> with name 'messageSource': using default
> [org.springframework.context.support.DelegatingMessageSource@1ab5fd5]
> DEBUG - FileSystemXmlApplicationContext - Unable to locate
> ApplicationEventMulticaster with name 'applicationEventMulticaster': using
> default
> [org.springframework.context.event.SimpleApplicationEventMulticaster@20a82a]
> DEBUG - FileSystemXmlApplicationContext - Publishing event in context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
> org.springframework.context.event.ContextRefreshedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
> context hierarchy]
> INFO  - FileSystemXmlApplicationContext - Closing
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
> context hierarchy
> DEBUG - FileSystemXmlApplicationContext - Publishing event in context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e]:
> org.springframework.context.event.ContextClosedEvent[source=org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1c3951e:
> display name [xbean]; startup date [Mon Dec 10 20:00:18 EET 2007]; root of
> context hierarchy]
> [Fatal Error] :1:1: Content is not allowed in prolog.
> ERROR - AutoDeploymentService          - Failed to update Service
> Assembly: test4-http-sa
> java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result>
> <component-name>servicemix-http</component-name>
> <component-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Unable to parse result string</loc-message>
> </msg-loc-info>
> </task-status-msg>
> <exception-info>
> <nesting-level>1</nesting-level>
> <loc-token/>
> <loc-message>Unable to read WSDL from: class path resource
> [StockQuoteService.wsdl]</loc-message>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: Unable to
> read WSDL from: class path resource [StockQuoteService.wsdl]
>         at
> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:127)
>         at
> org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>         at
> org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>         at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>         at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>         at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>         at
> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:119)
>         at
> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validateWsdl1(HttpSoapConsumerEndpoint.java:176)
>         at
> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:115)
>         ... 13 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:117)
>         ... 15 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.checkBindings(WSIBPValidator.java:212)
>         ... 20 more
> ]]></stack-trace>
> </exception-info>
> </task-result-details>
> </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
> 
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> DEBUG - SedaFlow                       - Called Flow resume
> DEBUG - JMSFlow                        - Called Flow resume
> DEBUG - JCAFlow                        - Called Flow resume
> WARN  - AutoDeploymentService          - Directory: hotdeploy: Automatic
> install of
> /home/wp31/develop/servicemix/apache-servicemix-3.2.1/hotdeploy/test4-http-sa-1.0-SNAPSHOT.zip
> failed
> javax.jbi.management.DeploymentException: Failed to update Service
> Assembly: test4-http-sa
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:365)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>
> <jbi-task xmlns="http://java.sun.com/xml/ns/jbi/management-message"
> version="1.0">
> <jbi-task-result>
> <frmwk-task-result>
> <frmwk-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> </task-result-details>
> </frmwk-task-result-details>
> </frmwk-task-result>
> <component-task-result>
> <component-name>servicemix-http</component-name>
> <component-task-result-details>
> <task-result-details>
> <task-id>deploy</task-id>
> <task-result>FAILED</task-result>
> <message-type>ERROR</message-type>
> <task-status-msg>
> <msg-loc-info>
> <loc-token/>
> <loc-message>Unable to parse result string</loc-message>
> </msg-loc-info>
> </task-status-msg>
> <exception-info>
> <nesting-level>1</nesting-level>
> <loc-token/>
> <loc-message>Unable to read WSDL from: class path resource
> [StockQuoteService.wsdl]</loc-message>
> <stack-trace><![CDATA[javax.jbi.management.DeploymentException: Unable to
> read WSDL from: class path resource [StockQuoteService.wsdl]
>         at
> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:127)
>         at
> org.apache.servicemix.common.AbstractDeployer.validate(AbstractDeployer.java:58)
>         at
> org.apache.servicemix.common.xbean.BaseXBeanDeployer.validate(BaseXBeanDeployer.java:55)
>         at
> org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:96)
>         at
> org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
>         at
> org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:508)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:253)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.monitorDirectory(AutoDeploymentService.java:647)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.access$800(AutoDeploymentService.java:60)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService$1.run(AutoDeploymentService.java:611)
>         at java.util.TimerThread.mainLoop(Timer.java:512)
>         at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
>         at
> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:119)
>         at
> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validateWsdl1(HttpSoapConsumerEndpoint.java:176)
>         at
> org.apache.servicemix.http.endpoints.HttpSoapConsumerEndpoint.validate(HttpSoapConsumerEndpoint.java:115)
>         ... 13 more
> Caused by: java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.isValid(WSIBPValidator.java:117)
>         ... 15 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.servicemix.soap.wsdl.validator.WSIBPValidator.checkBindings(WSIBPValidator.java:212)
>         ... 20 more
> ]]></stack-trace>
> </exception-info>
> </task-result-details>
> </component-task-result-details>
> </component-task-result>
> </jbi-task-result>
> </jbi-task>
> 
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:125)
>         at
> org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:111)
>         at
> org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:543)
>         at
> org.apache.servicemix.jbi.framework.AutoDeploymentService.updateServiceAssembly(AutoDeploymentService.java:350)
>         ... 6 more
> 
> 

-- 
View this message in context: http://www.nabble.com/http-%3A-soap-consumer-error-tp14258182s12049p15902130.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.