geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hai-Dang Pham <hdp...@gmail.com>
Subject Re: Axis2 example
Date Fri, 10 Apr 2009 05:00:24 GMT

HI Ivan,
   
   I know about the lack of support for aar type archive thus I renamed the
helloAxis2.aar to helloAxis2.war.  That still didn't work....



Ivan Xu wrote:
> 
> From my view, aar is not a standard J2EE archive type. and it is supported
> by G.
> I remember there is a thread about making aar supported in G in the past,
> but it seems no subsequent action is done.
> Maybe you could first try to deploy the Axis2 admin console, then place
> the
> aar to the corresponding folder accroding to the manual of Axis2
> BTW, it is better to set
> JAVA_OPTS="-Dorg.apache.geronimo.jaxws.builder.useSimpleFinder=true" while
> starting the server, or it may be much errors while deploying the Axis2
> Console App.
> Ivan
> 
> 
> 2009/4/9 Hai-Dang Pham <hdpham@gmail.com>
> 
>>
>> Hi Ivan,
>>
>>    Tx you for your help.  geronimo-tomcat-web.xml is my plan file.  I
>> used
>> helloAxis2.wsdl to generate the source file found in /src with AXIS2. 
>> Once
>> I build it I rename helloAxis2.aar to helloAxis2.war.
>>
>> Tx,
>>
>> Hai-Dang
>>
>>
>>
>> Hai-Dang Pham wrote:
>> >
>> > Tx you Ivan for the reply,
>> >
>> >   I basically use an empty web.xml file like so:
>> >
>> > <?xml version="1.0"?>
>> > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
>> >  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
>> >
>> >
>> >  <display-name>Axis2Examples</display-name>
>> >    <!-- This app is cluster-ready -->
>> >  <distributable />
>> > </web-app>
>> >
>> >
>> > Hai-Dang
>> >
>> >
>> > Ivan Xu wrote:
>> >>
>> >> Could you show us your web.xml file ? I suppose that the ?WSDL request
>> >> should be handled by the org.apache.axis2.transport.http.AxisServlet,
>> not
>> >> by
>> >> Geronimo's WSDLQueryHandler.
>> >> Ivan
>> >>
>> >> 2009/4/7 Hai-Dang Pham <hdpham@gmail.com>
>> >>
>> >>>
>> >>> Hi,
>> >>>
>> >>>   I am trying to run a simple Axis2 example, basically from a client
>> >>> pass a
>> >>> string ("name") to a service this in turn return "hello name" but I
>> am
>> >>> trying use a WSDL interface.
>> >>>
>> >>> I was able to deploy my service with a plan file that looks like this
>> >>>
>> >>>    <environment>
>> >>>        <moduleId>
>> >>>            <groupId>org.codehaus.wadi</groupId>
>> >>>            <artifactId>axis2Test</artifactId>
>> >>>            <version>2.2-SNAPSHOT</version>
>> >>>            <type>war</type>
>> >>>        </moduleId>
>> >>>
>> >>>        <dependencies>
>> >>>          <dependency>
>> >>>            <groupId>org.apache.geronimo.modules</groupId>
>> >>>            <artifactId>geronimo-webservices</artifactId>
>> >>>            <version>2.1.3</version>
>> >>>            <type>jar</type>
>> >>>          </dependency>
>> >>>          <dependency>
>> >>>            <groupId>org.apache.geronimo.modules</groupId>
>> >>>            <artifactId>geronimo-axis2</artifactId>
>> >>>            <version>2.1.3</version>
>> >>>            <type>jar</type>
>> >>>          </dependency>
>> >>>        </dependencies>
>> >>>        <hidden-classes>
>> >>>          <filter>org.apache.commons</filter>
>> >>>        </hidden-classes>
>> >>>    </environment>
>> >>>
>> >>>   <context-root>axis2/services/helloAxis2</context-root>
>> >>>
>> >>>
>> >>> and a WSDL file with the following SOAP address:
>> >>>
>> >>>  <wsdl:service name="helloAxis2">
>> >>>    <wsdl:port name="helloAxis2SOAP" binding="tns:helloAxis2SOAP">
>> >>>      <soap:address
>> >>> location="http://localhost:8080/axis2/services/helloAxis2"/>
>> >>>    </wsdl:port>
>> >>>  </wsdl:service>
>> >>>
>> >>> I just want to retrieve the WSDL from a browser like so
>> >>>
>> >>> http://localhost:8080/axis2/services/helloAxis2?wsdl
>> >>>
>> >>> This always return 404 Not Found.
>> >>>
>> >>> Can somebody show me what I am missing to access my WSDL service
>> >>> properly?
>> >>>
>> >>> Tx,
>> >>>
>> >>> Hai-Dang
>> >>>
>> >>> --
>> >>> View this message in context:
>> >>> http://www.nabble.com/Axis2-example-tp22918389s134p22918389.html
>> >>> Sent from the Apache Geronimo - Users mailing list archive at
>> >>> Nabble.com.
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> Ivan
>> >>
>> >>
>> >
>> >
>> http://www.nabble.com/file/p22971650/helloAxis2.zip helloAxis2.zip
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-example-tp22918389s134p22971650.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Ivan
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-example-tp22918389s134p22983137.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message