You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by mrtshezi <mr...@gmail.com> on 2012/06/16 18:09:22 UTC
ERROR org.apache.axis2.deployment.DeploymentException
Hi, Can you please help
I have web service created using wsdl2java maven plugin, Following is its
interface, when i send a request it throws this error
ERROR org.apache.axis2.deployment.DeploymentException:
org.apache.axis2.transport.local.LocalTransportSender in classloader
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@22b7f8
Service interface
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://servicemix.apache.org/examples"xmlns:typens="
http://servicemix.apache.org/examples/types" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="http://www.w3.org/2001/XMLSchema
" name="LoanBroker" targetNamespace="http://servicemix.apache.org/examples">
<wsdl:types>
<xsd:schema xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="
http://servicemix.apache.org/examples"xmlns:typens="
http://servicemix.apache.org/examples/types" xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="http://www.w3.org/2001/XMLSchema
" elementFormDefault="qualified"targetNamespace="
http://servicemix.apache.org/examples/types">
<xsd:element name="getQoute">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getQouteResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="name" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UnknownWordFault">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="word" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="UnknownWordFault">
<wsdl:part element="typens:UnknownWordFault" name="payload"></wsdl:part>
</wsdl:message>
<wsdl:message name="getQouteRequest">
<wsdl:part element="typens:getQoute" name="payload"></wsdl:part>
</wsdl:message>
<wsdl:message name="getQouteResponse">
<wsdl:part element="typens:getQouteResponse" name="payload"></wsdl:part>
</wsdl:message>
<wsdl:portType name="Loan">
<wsdl:operation name="getQoute">
<wsdl:input message="tns:getQouteRequest"></wsdl:input>
<wsdl:output message="tns:getQouteResponse"></wsdl:output>
<wsdl:fault message="tns:UnknownWordFault" name="UnknownWord"></wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="LoanSOAPBinding" type="tns:Loan">
<soap:binding style="document" transport="
http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getQoute">
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="UnknownWord">
<soap:fault name="UnknownWord" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="LoanService">
<wsdl:port binding="tns:LoanSOAPBinding" name="soap">
<soap:address location="http://localhost:8193/LoanService/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
Name : Mr T. Shezi
NickName : Mthimbanator
Student No : 200702908
Level : Computer Sc Research Student
Institution : University of Zululand
Department : Computer Science
Cell No : 078 706 7208
--
View this message in context: http://servicemix.396122.n5.nabble.com/ERROR-org-apache-axis2-deployment-DeploymentException-tp5713712.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
Re: ERROR org.apache.axis2.deployment.DeploymentException
Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,
Where exactly are you seeing this exception? Could you post us the CXF-BC
xbean.xml you are using or perhaps the log with some additional details
about this exception? If you're able to see the wsdl for that service, the
service has probably been deployed correctly - could you give it a go with
a tool like SoapUI to see if it might be a problem with your client code
instead of with the server-side code?
Regards,
Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
On Mon, Jun 18, 2012 at 10:23 AM, Themba Shezi <mr...@gmail.com> wrote:
>
> Thanks for your reply Gert
>
> I'm using ServiceMix 3.4.0. i followed CXF example in
> http://servicemix.apache.org/402-creating-cxf-bc-service-unit.html. and
> my project build successfully, however when i send a soap request the
> following error appear
>
>
> ERROR org.apache.axis2.deployment.DeploymentException: org.apache.axis2.transport.local.LocalTransportSender in classloader org.apache.xbean.spring.context.FileSystemXmlApplicationContext@22b7f8
>
>
>
>
>
>
>
>
> On Sun, Jun 17, 2012 at 10:36 PM, Gert Vanthienen <
> gert.vanthienen@gmail.com> wrote:
>
>> L.S.,
>>
>>
>> (redirecting this question to the users@ mailing list)
>>
>> FIrst of all - do you have a requirement to use Axis? In ServiceMix,
>> we would generally recommend you to use CXF instead. Both in Apache
>> ServiceMix 3.x and 4.x, we have samples available that show you how to
>> build web services starting from the WSDL so perhaps we can help you
>> out using that instead. BTW, what version of Apache ServiceMix are
>> you using, so we might point you to useful examples for your version?
>>
>>
>> Regards,
>>
>> Gert Vanthienen
>> ------------------------
>> FuseSource
>> Web: http://fusesource.com
>> Blog: http://gertvanthienen.blogspot.com/
>>
>>
>> On Sat, Jun 16, 2012 at 6:09 PM, mrtshezi <mr...@gmail.com> wrote:
>> > Hi, Can you please help
>> >
>> > I have web service created using wsdl2java maven plugin, Following is
>> its
>> > interface, when i send a request it throws this error
>> >
>> >
>> > ERROR org.apache.axis2.deployment.DeploymentException:
>> > org.apache.axis2.transport.local.LocalTransportSender in classloader
>> > org.apache.xbean.spring.context.FileSystemXmlApplicationContext@22b7f8
>> >
>> > Service interface
>> >
>> > <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> > xmlns:tns="http://servicemix.apache.org/examples"xmlns:typens="
>> > http://servicemix.apache.org/examples/types" xmlns:wsdl="
>> > http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="
>> http://www.w3.org/2001/XMLSchema
>> > " name="LoanBroker" targetNamespace="
>> http://servicemix.apache.org/examples">
>> > <wsdl:types>
>> > <xsd:schema xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> xmlns:tns="
>> > http://servicemix.apache.org/examples"xmlns:typens="
>> > http://servicemix.apache.org/examples/types" xmlns:wsdl="
>> > http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="
>> http://www.w3.org/2001/XMLSchema
>> > " elementFormDefault="qualified"targetNamespace="
>> > http://servicemix.apache.org/examples/types">
>> > <xsd:element name="getQoute">
>> > <xsd:complexType>
>> > <xsd:sequence>
>> > <xsd:element name="name" type="xsd:string"/>
>> > </xsd:sequence>
>> > </xsd:complexType>
>> > </xsd:element>
>> > <xsd:element name="getQouteResponse">
>> > <xsd:complexType>
>> > <xsd:sequence>
>> > <xsd:element name="name" type="xsd:string"/>
>> > </xsd:sequence>
>> > </xsd:complexType>
>> > </xsd:element>
>> > <xsd:element name="UnknownWordFault">
>> > <xsd:complexType>
>> > <xsd:sequence>
>> > <xsd:element name="word" type="xsd:string"/>
>> > </xsd:sequence>
>> > </xsd:complexType>
>> > </xsd:element>
>> > </xsd:schema>
>> > </wsdl:types>
>> > <wsdl:message name="UnknownWordFault">
>> > <wsdl:part element="typens:UnknownWordFault" name="payload"></wsdl:part>
>> > </wsdl:message>
>> > <wsdl:message name="getQouteRequest">
>> > <wsdl:part element="typens:getQoute" name="payload"></wsdl:part>
>> > </wsdl:message>
>> > <wsdl:message name="getQouteResponse">
>> > <wsdl:part element="typens:getQouteResponse" name="payload"></wsdl:part>
>> > </wsdl:message>
>> > <wsdl:portType name="Loan">
>> > <wsdl:operation name="getQoute">
>> > <wsdl:input message="tns:getQouteRequest"></wsdl:input>
>> > <wsdl:output message="tns:getQouteResponse"></wsdl:output>
>> > <wsdl:fault message="tns:UnknownWordFault"
>> name="UnknownWord"></wsdl:fault>
>> > </wsdl:operation>
>> > </wsdl:portType>
>> > <wsdl:binding name="LoanSOAPBinding" type="tns:Loan">
>> > <soap:binding style="document" transport="
>> > http://schemas.xmlsoap.org/soap/http"/>
>> > <wsdl:operation name="getQoute">
>> > <wsdl:input>
>> > <soap:body use="literal"/>
>> > </wsdl:input>
>> > <wsdl:output>
>> > <soap:body use="literal"/>
>> > </wsdl:output>
>> > <wsdl:fault name="UnknownWord">
>> > <soap:fault name="UnknownWord" use="literal"/>
>> > </wsdl:fault>
>> > </wsdl:operation>
>> > </wsdl:binding>
>> > <wsdl:service name="LoanService">
>> > <wsdl:port binding="tns:LoanSOAPBinding" name="soap">
>> > <soap:address location="http://localhost:8193/LoanService/"/>
>> > </wsdl:port>
>> > </wsdl:service>
>> > </wsdl:definitions>
>> >
>> >
>> > --
>> > Name : Mr T. Shezi
>> > NickName : Mthimbanator
>> > Student No : 200702908
>> > Level : Computer Sc Research Student
>> > Institution : University of Zululand
>> > Department : Computer Science
>> > Cell No : 078 706 7208
>> >
>> >
>> > --
>> > View this message in context:
>> http://servicemix.396122.n5.nabble.com/ERROR-org-apache-axis2-deployment-DeploymentException-tp5713712.html
>> > Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>>
>
>
>
> --
> Name : Mr T. Shezi
> NickName : Mthimbanator
> Student No : 200702908
> Level : Computer Sc Research Student
> Institution : University of Zululand
> Department : Computer Science
> Cell No : 078 706 7208
>
>
>
Re: ERROR org.apache.axis2.deployment.DeploymentException
Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,
(redirecting this question to the users@ mailing list)
FIrst of all - do you have a requirement to use Axis? In ServiceMix,
we would generally recommend you to use CXF instead. Both in Apache
ServiceMix 3.x and 4.x, we have samples available that show you how to
build web services starting from the WSDL so perhaps we can help you
out using that instead. BTW, what version of Apache ServiceMix are
you using, so we might point you to useful examples for your version?
Regards,
Gert Vanthienen
------------------------
FuseSource
Web: http://fusesource.com
Blog: http://gertvanthienen.blogspot.com/
On Sat, Jun 16, 2012 at 6:09 PM, mrtshezi <mr...@gmail.com> wrote:
> Hi, Can you please help
>
> I have web service created using wsdl2java maven plugin, Following is its
> interface, when i send a request it throws this error
>
>
> ERROR org.apache.axis2.deployment.DeploymentException:
> org.apache.axis2.transport.local.LocalTransportSender in classloader
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@22b7f8
>
> Service interface
>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:tns="http://servicemix.apache.org/examples"xmlns:typens="
> http://servicemix.apache.org/examples/types" xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="http://www.w3.org/2001/XMLSchema
> " name="LoanBroker" targetNamespace="http://servicemix.apache.org/examples">
> <wsdl:types>
> <xsd:schema xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="
> http://servicemix.apache.org/examples"xmlns:typens="
> http://servicemix.apache.org/examples/types" xmlns:wsdl="
> http://schemas.xmlsoap.org/wsdl/"xmlns:xsd="http://www.w3.org/2001/XMLSchema
> " elementFormDefault="qualified"targetNamespace="
> http://servicemix.apache.org/examples/types">
> <xsd:element name="getQoute">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="name" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="getQouteResponse">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="name" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="UnknownWordFault">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element name="word" type="xsd:string"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:schema>
> </wsdl:types>
> <wsdl:message name="UnknownWordFault">
> <wsdl:part element="typens:UnknownWordFault" name="payload"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="getQouteRequest">
> <wsdl:part element="typens:getQoute" name="payload"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="getQouteResponse">
> <wsdl:part element="typens:getQouteResponse" name="payload"></wsdl:part>
> </wsdl:message>
> <wsdl:portType name="Loan">
> <wsdl:operation name="getQoute">
> <wsdl:input message="tns:getQouteRequest"></wsdl:input>
> <wsdl:output message="tns:getQouteResponse"></wsdl:output>
> <wsdl:fault message="tns:UnknownWordFault" name="UnknownWord"></wsdl:fault>
> </wsdl:operation>
> </wsdl:portType>
> <wsdl:binding name="LoanSOAPBinding" type="tns:Loan">
> <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="getQoute">
> <wsdl:input>
> <soap:body use="literal"/>
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal"/>
> </wsdl:output>
> <wsdl:fault name="UnknownWord">
> <soap:fault name="UnknownWord" use="literal"/>
> </wsdl:fault>
> </wsdl:operation>
> </wsdl:binding>
> <wsdl:service name="LoanService">
> <wsdl:port binding="tns:LoanSOAPBinding" name="soap">
> <soap:address location="http://localhost:8193/LoanService/"/>
> </wsdl:port>
> </wsdl:service>
> </wsdl:definitions>
>
>
> --
> Name : Mr T. Shezi
> NickName : Mthimbanator
> Student No : 200702908
> Level : Computer Sc Research Student
> Institution : University of Zululand
> Department : Computer Science
> Cell No : 078 706 7208
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ERROR-org-apache-axis2-deployment-DeploymentException-tp5713712.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.