You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by keith chapman <ke...@gmail.com> on 2008/10/01 03:22:41 UTC

Re: New to axis2, need some help

Which version of Axis2/ The eclipse plugin are you using?

Thanks,
Keith.

2008/9/30 Danny LIU <sw...@gmail.com>

> Hi everyone!
>
> Im a new learner of axis2, and basically Im following a tutorial to study
> it
> right now.
>
> My problem is I got a strange exception when I try to generate Java code
> from WSDL file
> using eclipse's plugin -Axis2 Code Generator .
> The exception is " java.lang.reflect.InvocationTargetException"
> does anyone know how to fix this?
>
> Thx in advance.
>
> Here is my wsdl code:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>     xmlns:tns="http://www.example.org/helloAxis2/"
>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
>     targetNamespace="http://www.example.org/helloAxis2/">
>     <wsdl:types>
>         <xsd:schema
>             targetNamespace="http://www.example.org/helloAxis2/">
>             <xsd:element name="Response" type="xsd:string" />
>             <xsd:element name="Request" type="xsd:string" />
>         </xsd:schema>
>     </wsdl:types>
>     <wsdl:message name="Response">
>         <wsdl:part element="tns:Response"
>             name="Response" />
>     </wsdl:message>
>     <wsdl:message name="Request">
>         <wsdl:part element="tns:Request"
>             name="Request" />
>     </wsdl:message>
>     <wsdl:portType name="helloAxis2">
>         <wsdl:operation name="sayHello">
>             <wsdl:input message="tns:Request" />
>             <wsdl:output message="tns:Response" />
>         </wsdl:operation>
>     </wsdl:portType>
>     <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
>         <soap:binding style="document"
>             transport="http://schemas.xmlsoap.org/soap/http" />
>         <wsdl:operation name="sayHello">
>             <soap:operation
>                 soapAction="
> http://localhost:8080/axis2/services/helloAxis2" />
>             <wsdl:input>
>                 <soap:body use="literal" />
>             </wsdl:input>
>             <wsdl:output>
>                 <soap:body use="literal" />
>             </wsdl:output>
>         </wsdl:operation>
>     </wsdl:binding>
>     <wsdl:service name="helloAxis2">
>         <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
>             <soap:address location="
> http://localhost:8080/axis2/services/helloAxis2" />
>         </wsdl:port>
>     </wsdl:service>
> </wsdl:definitions>
>
> --
>
>   天生万物以养人
>
>                 人无一德以报天
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: New to axis2, need some help

Posted by Yefeng Liu <sw...@gmail.com>.
Thank u Keith!

2008/10/2 keith chapman <ke...@gmail.com>

> This is the thread [1] Saminda is referring to
>
> Thanks,
> Keith,
>
> [1]
> http://www.nabble.com/HELP!!!---Axis-2-1.4-CodeGenerator-Eclipse-Plugin-fails-td19742674.html
>
> 2008/10/2 Yefeng Liu <sw...@gmail.com>
>
>> Hi
>>
>> I'm new to this mailing list also, I dont have that mail in my mailbox..
>> Can u please make a copy��paste ��
>> Thx!
>>
>> 2008/10/2 Saminda Wijeratne <sa...@wso2.com>
>>
>>> Hi,
>>> sorry for the late reply. Since you are subscribed to the mailing list
>>> check for the mail with subject "Re: HELP!!! - Axis 2 1.4 CodeGenerator
>>> Eclipse Plugin fails".
>>> I've mentioned a couple of solutions there.
>>> regards
>>> Saminda
>>>
>>> Yefeng Liu wrote:
>>> > ��..
>>> > Thx a lot!
>>> > Btw what I should do? Should I replace them with older version plugins?
>>> >
>>> >
>>> > 2008/10/1 Saminda Wijeratne <samindaw@wso2.com <mailto:
>>> samindaw@wso2.com>>
>>> >
>>> >     The latest available plugin gives that error because it is giving
>>> >     ClassDefNotFound exception for class
>>> >     javax.xml.stream.XMLStreamException. This class resides in
>>> >     geranimo-stax.
>>> >
>>> >     Yefeng Liu wrote:
>>> >     > Axis2 1.4.1
>>> >     > Axis2 Codegen Wizard 1.3.0
>>> >     > Axis2 Service Archiver 1.3.0
>>> >     >
>>> >     > All are the latest version I think.
>>> >     >
>>> >     > 2008/10/1 keith chapman <keithgchapman@gmail.com
>>> >     <ma...@gmail.com>
>>> >     > <mailto:keithgchapman@gmail.com <mailto:keithgchapman@gmail.com
>>> >>>
>>> >     >
>>> >     > Which version of Axis2/ The eclipse plugin are you using?
>>> >     >
>>> >     > Thanks,
>>> >     > Keith.
>>> >     >
>>> >     > 2008/9/30 Danny LIU <swear812@gmail.com
>>> >     <ma...@gmail.com> <mailto:swear812@gmail.com
>>> >     <ma...@gmail.com>>>
>>> >     >
>>> >     > Hi everyone!
>>> >     >
>>> >     > Im a new learner of axis2, and basically Im following a
>>> >     > tutorial to study it
>>> >     > right now.
>>> >     >
>>> >     > My problem is I got a strange exception when I try to generate
>>> >     > Java code from WSDL file
>>> >     > using eclipse's plugin -Axis2 Code Generator .
>>> >     > The exception is " java.lang.reflect.InvocationTargetException"
>>> >     > does anyone know how to fix this?
>>> >     >
>>> >     > Thx in advance.
>>> >     >
>>> >     > Here is my wsdl code:
>>> >     >
>>> >     > <?xml version="1.0" encoding="UTF-8"?>
>>> >     > <wsdl:definitions
>>> >     > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>> >     > xmlns:tns="http://www.example.org/helloAxis2/"
>>> >     > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>> >     > xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
>>> >     > targetNamespace="http://www.example.org/helloAxis2/">
>>> >     > <wsdl:types>
>>> >     > <xsd:schema
>>> >     > targetNamespace="http://www.example.org/helloAxis2/">
>>> >     > <xsd:element name="Response" type="xsd:string" />
>>> >     > <xsd:element name="Request" type="xsd:string" />
>>> >     > </xsd:schema>
>>> >     > </wsdl:types>
>>> >     > <wsdl:message name="Response">
>>> >     > <wsdl:part element="tns:Response"
>>> >     > name="Response" />
>>> >     > </wsdl:message>
>>> >     > <wsdl:message name="Request">
>>> >     > <wsdl:part element="tns:Request"
>>> >     > name="Request" />
>>> >     > </wsdl:message>
>>> >     > <wsdl:portType name="helloAxis2">
>>> >     > <wsdl:operation name="sayHello">
>>> >     > <wsdl:input message="tns:Request" />
>>> >     > <wsdl:output message="tns:Response" />
>>> >     > </wsdl:operation>
>>> >     > </wsdl:portType>
>>> >     > <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
>>> >     > <soap:binding style="document"
>>> >     > transport="http://schemas.xmlsoap.org/soap/http" />
>>> >     > <wsdl:operation name="sayHello">
>>> >     > <soap:operation
>>> >     > soapAction="http://localhost:8080/axis2/services/helloAxis2" />
>>> >     > <wsdl:input>
>>> >     > <soap:body use="literal" />
>>> >     > </wsdl:input>
>>> >     > <wsdl:output>
>>> >     > <soap:body use="literal" />
>>> >     > </wsdl:output>
>>> >     > </wsdl:operation>
>>> >     > </wsdl:binding>
>>> >     > <wsdl:service name="helloAxis2">
>>> >     > <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
>>> >     > <soap:address
>>> >     > location="http://localhost:8080/axis2/services/helloAxis2" />
>>> >     > </wsdl:port>
>>> >     > </wsdl:service>
>>> >     > </wsdl:definitions>
>>> >     >
>>> >     > --
>>> >     >
>>> >     > ��������������
>>> >     >
>>> >     > ����һ���Ա���
>>> >     >
>>> >     >
>>> >     >
>>> >     >
>>> >     > --
>>> >     > Keith Chapman
>>> >     > Senior Software Engineer
>>> >     > WSO2 Inc.
>>> >     > Oxygenating the Web Service Platform.
>>> >     > http://wso2.org/
>>> >     >
>>> >     > blog: http://www.keith-chapman.org
>>> >     >
>>> >     >
>>> >     >
>>> >     >
>>> >     > --
>>> >     >
>>> >     > ��������������
>>> >     >
>>> >     > ����һ���Ա���
>>> >
>>> >
>>> >
>>> ---------------------------------------------------------------------
>>> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> >     <ma...@ws.apache.org>
>>> >     For additional commands, e-mail: axis-user-help@ws.apache.org
>>> >     <ma...@ws.apache.org>
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > ��������������
>>> >
>>> > ����һ���Ա���
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>
>>
>>
>> --
>>
>>   ��������������
>>
>>                 ����һ���Ա���
>>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>



-- 

  ��������������

                ����һ���Ա���

Re: New to axis2, need some help

Posted by keith chapman <ke...@gmail.com>.
This is the thread [1] Saminda is referring to

Thanks,
Keith,

[1]
http://www.nabble.com/HELP!!!---Axis-2-1.4-CodeGenerator-Eclipse-Plugin-fails-td19742674.html

2008/10/2 Yefeng Liu <sw...@gmail.com>

> Hi
>
> I'm new to this mailing list also, I dont have that mail in my mailbox..
> Can u please make a copy��paste ��
> Thx!
>
> 2008/10/2 Saminda Wijeratne <sa...@wso2.com>
>
> Hi,
>> sorry for the late reply. Since you are subscribed to the mailing list
>> check for the mail with subject "Re: HELP!!! - Axis 2 1.4 CodeGenerator
>> Eclipse Plugin fails".
>> I've mentioned a couple of solutions there.
>> regards
>> Saminda
>>
>> Yefeng Liu wrote:
>> > ��..
>> > Thx a lot!
>> > Btw what I should do? Should I replace them with older version plugins?
>> >
>> >
>> > 2008/10/1 Saminda Wijeratne <samindaw@wso2.com <mailto:
>> samindaw@wso2.com>>
>> >
>> >     The latest available plugin gives that error because it is giving
>> >     ClassDefNotFound exception for class
>> >     javax.xml.stream.XMLStreamException. This class resides in
>> >     geranimo-stax.
>> >
>> >     Yefeng Liu wrote:
>> >     > Axis2 1.4.1
>> >     > Axis2 Codegen Wizard 1.3.0
>> >     > Axis2 Service Archiver 1.3.0
>> >     >
>> >     > All are the latest version I think.
>> >     >
>> >     > 2008/10/1 keith chapman <keithgchapman@gmail.com
>> >     <ma...@gmail.com>
>> >     > <mailto:keithgchapman@gmail.com <mailto:keithgchapman@gmail.com
>> >>>
>> >     >
>> >     > Which version of Axis2/ The eclipse plugin are you using?
>> >     >
>> >     > Thanks,
>> >     > Keith.
>> >     >
>> >     > 2008/9/30 Danny LIU <swear812@gmail.com
>> >     <ma...@gmail.com> <mailto:swear812@gmail.com
>> >     <ma...@gmail.com>>>
>> >     >
>> >     > Hi everyone!
>> >     >
>> >     > Im a new learner of axis2, and basically Im following a
>> >     > tutorial to study it
>> >     > right now.
>> >     >
>> >     > My problem is I got a strange exception when I try to generate
>> >     > Java code from WSDL file
>> >     > using eclipse's plugin -Axis2 Code Generator .
>> >     > The exception is " java.lang.reflect.InvocationTargetException"
>> >     > does anyone know how to fix this?
>> >     >
>> >     > Thx in advance.
>> >     >
>> >     > Here is my wsdl code:
>> >     >
>> >     > <?xml version="1.0" encoding="UTF-8"?>
>> >     > <wsdl:definitions
>> >     > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>> >     > xmlns:tns="http://www.example.org/helloAxis2/"
>> >     > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>> >     > xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
>> >     > targetNamespace="http://www.example.org/helloAxis2/">
>> >     > <wsdl:types>
>> >     > <xsd:schema
>> >     > targetNamespace="http://www.example.org/helloAxis2/">
>> >     > <xsd:element name="Response" type="xsd:string" />
>> >     > <xsd:element name="Request" type="xsd:string" />
>> >     > </xsd:schema>
>> >     > </wsdl:types>
>> >     > <wsdl:message name="Response">
>> >     > <wsdl:part element="tns:Response"
>> >     > name="Response" />
>> >     > </wsdl:message>
>> >     > <wsdl:message name="Request">
>> >     > <wsdl:part element="tns:Request"
>> >     > name="Request" />
>> >     > </wsdl:message>
>> >     > <wsdl:portType name="helloAxis2">
>> >     > <wsdl:operation name="sayHello">
>> >     > <wsdl:input message="tns:Request" />
>> >     > <wsdl:output message="tns:Response" />
>> >     > </wsdl:operation>
>> >     > </wsdl:portType>
>> >     > <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
>> >     > <soap:binding style="document"
>> >     > transport="http://schemas.xmlsoap.org/soap/http" />
>> >     > <wsdl:operation name="sayHello">
>> >     > <soap:operation
>> >     > soapAction="http://localhost:8080/axis2/services/helloAxis2" />
>> >     > <wsdl:input>
>> >     > <soap:body use="literal" />
>> >     > </wsdl:input>
>> >     > <wsdl:output>
>> >     > <soap:body use="literal" />
>> >     > </wsdl:output>
>> >     > </wsdl:operation>
>> >     > </wsdl:binding>
>> >     > <wsdl:service name="helloAxis2">
>> >     > <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
>> >     > <soap:address
>> >     > location="http://localhost:8080/axis2/services/helloAxis2" />
>> >     > </wsdl:port>
>> >     > </wsdl:service>
>> >     > </wsdl:definitions>
>> >     >
>> >     > --
>> >     >
>> >     > ��������������
>> >     >
>> >     > ����һ���Ա���
>> >     >
>> >     >
>> >     >
>> >     >
>> >     > --
>> >     > Keith Chapman
>> >     > Senior Software Engineer
>> >     > WSO2 Inc.
>> >     > Oxygenating the Web Service Platform.
>> >     > http://wso2.org/
>> >     >
>> >     > blog: http://www.keith-chapman.org
>> >     >
>> >     >
>> >     >
>> >     >
>> >     > --
>> >     >
>> >     > ��������������
>> >     >
>> >     > ����һ���Ա���
>> >
>> >
>> >
>> ---------------------------------------------------------------------
>> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> >     <ma...@ws.apache.org>
>> >     For additional commands, e-mail: axis-user-help@ws.apache.org
>> >     <ma...@ws.apache.org>
>> >
>> >
>> >
>> >
>> > --
>> >
>> > ��������������
>> >
>> > ����һ���Ա���
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
>
> --
>
>   ��������������
>
>                 ����һ���Ա���
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Re: New to axis2, need some help

Posted by Yefeng Liu <sw...@gmail.com>.
Hi

I'm new to this mailing list also, I dont have that mail in my mailbox..
Can u please make a copy��paste ��
Thx!

2008/10/2 Saminda Wijeratne <sa...@wso2.com>

> Hi,
> sorry for the late reply. Since you are subscribed to the mailing list
> check for the mail with subject "Re: HELP!!! - Axis 2 1.4 CodeGenerator
> Eclipse Plugin fails".
> I've mentioned a couple of solutions there.
> regards
> Saminda
>
> Yefeng Liu wrote:
> > ��..
> > Thx a lot!
> > Btw what I should do? Should I replace them with older version plugins?
> >
> >
> > 2008/10/1 Saminda Wijeratne <samindaw@wso2.com <mailto:samindaw@wso2.com
> >>
> >
> >     The latest available plugin gives that error because it is giving
> >     ClassDefNotFound exception for class
> >     javax.xml.stream.XMLStreamException. This class resides in
> >     geranimo-stax.
> >
> >     Yefeng Liu wrote:
> >     > Axis2 1.4.1
> >     > Axis2 Codegen Wizard 1.3.0
> >     > Axis2 Service Archiver 1.3.0
> >     >
> >     > All are the latest version I think.
> >     >
> >     > 2008/10/1 keith chapman <keithgchapman@gmail.com
> >     <ma...@gmail.com>
> >     > <mailto:keithgchapman@gmail.com <ma...@gmail.com>>>
> >     >
> >     > Which version of Axis2/ The eclipse plugin are you using?
> >     >
> >     > Thanks,
> >     > Keith.
> >     >
> >     > 2008/9/30 Danny LIU <swear812@gmail.com
> >     <ma...@gmail.com> <mailto:swear812@gmail.com
> >     <ma...@gmail.com>>>
> >     >
> >     > Hi everyone!
> >     >
> >     > Im a new learner of axis2, and basically Im following a
> >     > tutorial to study it
> >     > right now.
> >     >
> >     > My problem is I got a strange exception when I try to generate
> >     > Java code from WSDL file
> >     > using eclipse's plugin -Axis2 Code Generator .
> >     > The exception is " java.lang.reflect.InvocationTargetException"
> >     > does anyone know how to fix this?
> >     >
> >     > Thx in advance.
> >     >
> >     > Here is my wsdl code:
> >     >
> >     > <?xml version="1.0" encoding="UTF-8"?>
> >     > <wsdl:definitions
> >     > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> >     > xmlns:tns="http://www.example.org/helloAxis2/"
> >     > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >     > xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
> >     > targetNamespace="http://www.example.org/helloAxis2/">
> >     > <wsdl:types>
> >     > <xsd:schema
> >     > targetNamespace="http://www.example.org/helloAxis2/">
> >     > <xsd:element name="Response" type="xsd:string" />
> >     > <xsd:element name="Request" type="xsd:string" />
> >     > </xsd:schema>
> >     > </wsdl:types>
> >     > <wsdl:message name="Response">
> >     > <wsdl:part element="tns:Response"
> >     > name="Response" />
> >     > </wsdl:message>
> >     > <wsdl:message name="Request">
> >     > <wsdl:part element="tns:Request"
> >     > name="Request" />
> >     > </wsdl:message>
> >     > <wsdl:portType name="helloAxis2">
> >     > <wsdl:operation name="sayHello">
> >     > <wsdl:input message="tns:Request" />
> >     > <wsdl:output message="tns:Response" />
> >     > </wsdl:operation>
> >     > </wsdl:portType>
> >     > <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
> >     > <soap:binding style="document"
> >     > transport="http://schemas.xmlsoap.org/soap/http" />
> >     > <wsdl:operation name="sayHello">
> >     > <soap:operation
> >     > soapAction="http://localhost:8080/axis2/services/helloAxis2" />
> >     > <wsdl:input>
> >     > <soap:body use="literal" />
> >     > </wsdl:input>
> >     > <wsdl:output>
> >     > <soap:body use="literal" />
> >     > </wsdl:output>
> >     > </wsdl:operation>
> >     > </wsdl:binding>
> >     > <wsdl:service name="helloAxis2">
> >     > <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
> >     > <soap:address
> >     > location="http://localhost:8080/axis2/services/helloAxis2" />
> >     > </wsdl:port>
> >     > </wsdl:service>
> >     > </wsdl:definitions>
> >     >
> >     > --
> >     >
> >     > ��������������
> >     >
> >     > ����һ���Ա���
> >     >
> >     >
> >     >
> >     >
> >     > --
> >     > Keith Chapman
> >     > Senior Software Engineer
> >     > WSO2 Inc.
> >     > Oxygenating the Web Service Platform.
> >     > http://wso2.org/
> >     >
> >     > blog: http://www.keith-chapman.org
> >     >
> >     >
> >     >
> >     >
> >     > --
> >     >
> >     > ��������������
> >     >
> >     > ����һ���Ա���
> >
> >
> >     ---------------------------------------------------------------------
> >     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> >     <ma...@ws.apache.org>
> >     For additional commands, e-mail: axis-user-help@ws.apache.org
> >     <ma...@ws.apache.org>
> >
> >
> >
> >
> > --
> >
> > ��������������
> >
> > ����һ���Ա���
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 

  ��������������

                ����һ���Ա���

Re: New to axis2, need some help

Posted by Saminda Wijeratne <sa...@wso2.com>.
Hi,
sorry for the late reply. Since you are subscribed to the mailing list
check for the mail with subject "Re: HELP!!! - Axis 2 1.4 CodeGenerator
Eclipse Plugin fails".
I've mentioned a couple of solutions there.
regards
Saminda

Yefeng Liu wrote:
> ��..
> Thx a lot!
> Btw what I should do? Should I replace them with older version plugins?
>
>
> 2008/10/1 Saminda Wijeratne <samindaw@wso2.com <ma...@wso2.com>>
>
>     The latest available plugin gives that error because it is giving
>     ClassDefNotFound exception for class
>     javax.xml.stream.XMLStreamException. This class resides in
>     geranimo-stax.
>
>     Yefeng Liu wrote:
>     > Axis2 1.4.1
>     > Axis2 Codegen Wizard 1.3.0
>     > Axis2 Service Archiver 1.3.0
>     >
>     > All are the latest version I think.
>     >
>     > 2008/10/1 keith chapman <keithgchapman@gmail.com
>     <ma...@gmail.com>
>     > <mailto:keithgchapman@gmail.com <ma...@gmail.com>>>
>     >
>     > Which version of Axis2/ The eclipse plugin are you using?
>     >
>     > Thanks,
>     > Keith.
>     >
>     > 2008/9/30 Danny LIU <swear812@gmail.com
>     <ma...@gmail.com> <mailto:swear812@gmail.com
>     <ma...@gmail.com>>>
>     >
>     > Hi everyone!
>     >
>     > Im a new learner of axis2, and basically Im following a
>     > tutorial to study it
>     > right now.
>     >
>     > My problem is I got a strange exception when I try to generate
>     > Java code from WSDL file
>     > using eclipse's plugin -Axis2 Code Generator .
>     > The exception is " java.lang.reflect.InvocationTargetException"
>     > does anyone know how to fix this?
>     >
>     > Thx in advance.
>     >
>     > Here is my wsdl code:
>     >
>     > <?xml version="1.0" encoding="UTF-8"?>
>     > <wsdl:definitions
>     > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>     > xmlns:tns="http://www.example.org/helloAxis2/"
>     > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>     > xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
>     > targetNamespace="http://www.example.org/helloAxis2/">
>     > <wsdl:types>
>     > <xsd:schema
>     > targetNamespace="http://www.example.org/helloAxis2/">
>     > <xsd:element name="Response" type="xsd:string" />
>     > <xsd:element name="Request" type="xsd:string" />
>     > </xsd:schema>
>     > </wsdl:types>
>     > <wsdl:message name="Response">
>     > <wsdl:part element="tns:Response"
>     > name="Response" />
>     > </wsdl:message>
>     > <wsdl:message name="Request">
>     > <wsdl:part element="tns:Request"
>     > name="Request" />
>     > </wsdl:message>
>     > <wsdl:portType name="helloAxis2">
>     > <wsdl:operation name="sayHello">
>     > <wsdl:input message="tns:Request" />
>     > <wsdl:output message="tns:Response" />
>     > </wsdl:operation>
>     > </wsdl:portType>
>     > <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
>     > <soap:binding style="document"
>     > transport="http://schemas.xmlsoap.org/soap/http" />
>     > <wsdl:operation name="sayHello">
>     > <soap:operation
>     > soapAction="http://localhost:8080/axis2/services/helloAxis2" />
>     > <wsdl:input>
>     > <soap:body use="literal" />
>     > </wsdl:input>
>     > <wsdl:output>
>     > <soap:body use="literal" />
>     > </wsdl:output>
>     > </wsdl:operation>
>     > </wsdl:binding>
>     > <wsdl:service name="helloAxis2">
>     > <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
>     > <soap:address
>     > location="http://localhost:8080/axis2/services/helloAxis2" />
>     > </wsdl:port>
>     > </wsdl:service>
>     > </wsdl:definitions>
>     >
>     > --
>     >
>     > ��������������
>     >
>     > ����һ���Ա���
>     >
>     >
>     >
>     >
>     > --
>     > Keith Chapman
>     > Senior Software Engineer
>     > WSO2 Inc.
>     > Oxygenating the Web Service Platform.
>     > http://wso2.org/
>     >
>     > blog: http://www.keith-chapman.org
>     >
>     >
>     >
>     >
>     > --
>     >
>     > ��������������
>     >
>     > ����һ���Ա���
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>     <ma...@ws.apache.org>
>     For additional commands, e-mail: axis-user-help@ws.apache.org
>     <ma...@ws.apache.org>
>
>
>
>
> -- 
>
> ��������������
>
> ����һ���Ա���


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: New to axis2, need some help

Posted by Yefeng Liu <sw...@gmail.com>.
��..
Thx a lot!
Btw what I should do? Should I replace them with older version plugins?


2008/10/1 Saminda Wijeratne <sa...@wso2.com>

> The latest available plugin gives that error because it is giving
> ClassDefNotFound exception for class
> javax.xml.stream.XMLStreamException. This class resides in geranimo-stax.
>
> Yefeng Liu wrote:
> > Axis2 1.4.1
> > Axis2 Codegen Wizard 1.3.0
> > Axis2 Service Archiver 1.3.0
> >
> > All are the latest version I think.
> >
> > 2008/10/1 keith chapman <keithgchapman@gmail.com
> > <ma...@gmail.com>>
> >
> >     Which version of Axis2/ The eclipse plugin are you using?
> >
> >     Thanks,
> >     Keith.
> >
> >     2008/9/30 Danny LIU <swear812@gmail.com <ma...@gmail.com>>
> >
> >         Hi everyone!
> >
> >         Im a new learner of axis2, and basically Im following a
> >         tutorial to study it
> >         right now.
> >
> >         My problem is I got a strange exception when I try to generate
> >         Java code from WSDL file
> >         using eclipse's plugin -Axis2 Code Generator .
> >         The exception is " java.lang.reflect.InvocationTargetException"
> >         does anyone know how to fix this?
> >
> >         Thx in advance.
> >
> >         Here is my wsdl code:
> >
> >         <?xml version="1.0" encoding="UTF-8"?>
> >         <wsdl:definitions
> >         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> >         xmlns:tns="http://www.example.org/helloAxis2/"
> >         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> >         xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
> >         targetNamespace="http://www.example.org/helloAxis2/">
> >         <wsdl:types>
> >         <xsd:schema
> >         targetNamespace="http://www.example.org/helloAxis2/">
> >         <xsd:element name="Response" type="xsd:string" />
> >         <xsd:element name="Request" type="xsd:string" />
> >         </xsd:schema>
> >         </wsdl:types>
> >         <wsdl:message name="Response">
> >         <wsdl:part element="tns:Response"
> >         name="Response" />
> >         </wsdl:message>
> >         <wsdl:message name="Request">
> >         <wsdl:part element="tns:Request"
> >         name="Request" />
> >         </wsdl:message>
> >         <wsdl:portType name="helloAxis2">
> >         <wsdl:operation name="sayHello">
> >         <wsdl:input message="tns:Request" />
> >         <wsdl:output message="tns:Response" />
> >         </wsdl:operation>
> >         </wsdl:portType>
> >         <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
> >         <soap:binding style="document"
> >         transport="http://schemas.xmlsoap.org/soap/http" />
> >         <wsdl:operation name="sayHello">
> >         <soap:operation
> >         soapAction="http://localhost:8080/axis2/services/helloAxis2" />
> >         <wsdl:input>
> >         <soap:body use="literal" />
> >         </wsdl:input>
> >         <wsdl:output>
> >         <soap:body use="literal" />
> >         </wsdl:output>
> >         </wsdl:operation>
> >         </wsdl:binding>
> >         <wsdl:service name="helloAxis2">
> >         <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
> >         <soap:address
> >         location="http://localhost:8080/axis2/services/helloAxis2" />
> >         </wsdl:port>
> >         </wsdl:service>
> >         </wsdl:definitions>
> >
> >         --
> >
> >         ��������������
> >
> >         ����һ���Ա���
> >
> >
> >
> >
> >     --
> >     Keith Chapman
> >     Senior Software Engineer
> >     WSO2 Inc.
> >     Oxygenating the Web Service Platform.
> >     http://wso2.org/
> >
> >     blog: http://www.keith-chapman.org
> >
> >
> >
> >
> > --
> >
> > ��������������
> >
> > ����һ���Ա���
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 

  ��������������

                ����һ���Ա���

Re: New to axis2, need some help

Posted by Saminda Wijeratne <sa...@wso2.com>.
The latest available plugin gives that error because it is giving
ClassDefNotFound exception for class
javax.xml.stream.XMLStreamException. This class resides in geranimo-stax.

Yefeng Liu wrote:
> Axis2 1.4.1
> Axis2 Codegen Wizard 1.3.0
> Axis2 Service Archiver 1.3.0
>
> All are the latest version I think.
>
> 2008/10/1 keith chapman <keithgchapman@gmail.com
> <ma...@gmail.com>>
>
>     Which version of Axis2/ The eclipse plugin are you using?
>
>     Thanks,
>     Keith.
>
>     2008/9/30 Danny LIU <swear812@gmail.com <ma...@gmail.com>>
>
>         Hi everyone!
>
>         Im a new learner of axis2, and basically Im following a
>         tutorial to study it
>         right now.
>
>         My problem is I got a strange exception when I try to generate
>         Java code from WSDL file
>         using eclipse's plugin -Axis2 Code Generator .
>         The exception is " java.lang.reflect.InvocationTargetException"
>         does anyone know how to fix this?
>
>         Thx in advance.
>
>         Here is my wsdl code:
>
>         <?xml version="1.0" encoding="UTF-8"?>
>         <wsdl:definitions
>         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>         xmlns:tns="http://www.example.org/helloAxis2/"
>         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>         xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
>         targetNamespace="http://www.example.org/helloAxis2/">
>         <wsdl:types>
>         <xsd:schema
>         targetNamespace="http://www.example.org/helloAxis2/">
>         <xsd:element name="Response" type="xsd:string" />
>         <xsd:element name="Request" type="xsd:string" />
>         </xsd:schema>
>         </wsdl:types>
>         <wsdl:message name="Response">
>         <wsdl:part element="tns:Response"
>         name="Response" />
>         </wsdl:message>
>         <wsdl:message name="Request">
>         <wsdl:part element="tns:Request"
>         name="Request" />
>         </wsdl:message>
>         <wsdl:portType name="helloAxis2">
>         <wsdl:operation name="sayHello">
>         <wsdl:input message="tns:Request" />
>         <wsdl:output message="tns:Response" />
>         </wsdl:operation>
>         </wsdl:portType>
>         <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
>         <soap:binding style="document"
>         transport="http://schemas.xmlsoap.org/soap/http" />
>         <wsdl:operation name="sayHello">
>         <soap:operation
>         soapAction="http://localhost:8080/axis2/services/helloAxis2" />
>         <wsdl:input>
>         <soap:body use="literal" />
>         </wsdl:input>
>         <wsdl:output>
>         <soap:body use="literal" />
>         </wsdl:output>
>         </wsdl:operation>
>         </wsdl:binding>
>         <wsdl:service name="helloAxis2">
>         <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
>         <soap:address
>         location="http://localhost:8080/axis2/services/helloAxis2" />
>         </wsdl:port>
>         </wsdl:service>
>         </wsdl:definitions>
>
>         -- 
>
>         天生万物以养人
>
>         人无一德以报天
>
>
>
>
>     -- 
>     Keith Chapman
>     Senior Software Engineer
>     WSO2 Inc.
>     Oxygenating the Web Service Platform.
>     http://wso2.org/
>
>     blog: http://www.keith-chapman.org
>
>
>
>
> -- 
>
> 天生万物以养人
>
> 人无一德以报天


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: New to axis2, need some help

Posted by Yefeng Liu <sw...@gmail.com>.
Axis2 1.4.1
Axis2 Codegen Wizard 1.3.0
Axis2 Service Archiver 1.3.0

All are the latest version I think.

2008/10/1 keith chapman <ke...@gmail.com>

> Which version of Axis2/ The eclipse plugin are you using?
>
> Thanks,
> Keith.
>
> 2008/9/30 Danny LIU <sw...@gmail.com>
>
> Hi everyone!
>>
>> Im a new learner of axis2, and basically Im following a tutorial to study
>> it
>> right now.
>>
>> My problem is I got a strange exception when I try to generate Java code
>> from WSDL file
>> using eclipse's plugin -Axis2 Code Generator .
>> The exception is " java.lang.reflect.InvocationTargetException"
>> does anyone know how to fix this?
>>
>> Thx in advance.
>>
>> Here is my wsdl code:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>>     xmlns:tns="http://www.example.org/helloAxis2/"
>>     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
>>     xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloAxis2"
>>     targetNamespace="http://www.example.org/helloAxis2/">
>>     <wsdl:types>
>>         <xsd:schema
>>             targetNamespace="http://www.example.org/helloAxis2/">
>>             <xsd:element name="Response" type="xsd:string" />
>>             <xsd:element name="Request" type="xsd:string" />
>>         </xsd:schema>
>>     </wsdl:types>
>>     <wsdl:message name="Response">
>>         <wsdl:part element="tns:Response"
>>             name="Response" />
>>     </wsdl:message>
>>     <wsdl:message name="Request">
>>         <wsdl:part element="tns:Request"
>>             name="Request" />
>>     </wsdl:message>
>>     <wsdl:portType name="helloAxis2">
>>         <wsdl:operation name="sayHello">
>>             <wsdl:input message="tns:Request" />
>>             <wsdl:output message="tns:Response" />
>>         </wsdl:operation>
>>     </wsdl:portType>
>>     <wsdl:binding name="helloAxis2SOAP" type="tns:helloAxis2">
>>         <soap:binding style="document"
>>             transport="http://schemas.xmlsoap.org/soap/http" />
>>         <wsdl:operation name="sayHello">
>>             <soap:operation
>>                 soapAction="
>> http://localhost:8080/axis2/services/helloAxis2" />
>>             <wsdl:input>
>>                 <soap:body use="literal" />
>>             </wsdl:input>
>>             <wsdl:output>
>>                 <soap:body use="literal" />
>>             </wsdl:output>
>>         </wsdl:operation>
>>     </wsdl:binding>
>>     <wsdl:service name="helloAxis2">
>>         <wsdl:port binding="tns:helloAxis2SOAP" name="helloAxis2SOAP">
>>             <soap:address location="
>> http://localhost:8080/axis2/services/helloAxis2" />
>>         </wsdl:port>
>>     </wsdl:service>
>> </wsdl:definitions>
>>
>> --
>>
>>   天生万物以养人
>>
>>                 人无一德以报天
>>
>
>
>
> --
> Keith Chapman
> Senior Software Engineer
> WSO2 Inc.
> Oxygenating the Web Service Platform.
> http://wso2.org/
>
> blog: http://www.keith-chapman.org
>



-- 

  天生万物以养人

                人无一德以报天