Rosan, see my comments inline:

On 3/29/07, Rosan Roche <[EMAIL PROTECTED]> wrote:
 Hi,
 I am trying the example in
http://ws.apache.org/axis2/1_1_1/spring.html#23
I put the services and modules directory under WEB-INF/ dir of my
application. Also copied the springExample.aar file under services.

1) Should I include the AxisServlet under web.xml since this is not
mentioned in the above url?  I tried both including/excluding the axis
servlet.

In the custom war case, you want it to act just like the axis2.war
does only with you own name and additional features. Also, for your
own war you'll probably need axis2-web too, so in my tomcat that's :

~/tomcat/webapps/axis2/axis2-web

Or could be:

~/tomcat/webapps/mywar/axis2-web

So to access the axis2 "welcome!" page simply use the url
http://localhost:8080/mywar . That page will give you a "services"
link , and clicking thru that should show the spring service
associated with you war. To get that far, you need the AxisServlet
configured pretty much identically to the way it is configured in the
default axis2.war - and the axis2-web folder.

Lastly, don't forget you'll need /tomcat/webapps/axis2/WEB-INF/conf
directory in your war as in ~/tomcat/webapps/mywar/WEB-INF/conf


2) How can I make spring read the services.xml file. Looks like the service
is not configured.

Spring does _NOT_ read the services.xml file - it simply does not need
it. Its an axis2 detail, and if configured correctly axis2 will
auotmatically read the contents of any aar in the services dir.

3) Should the aar file also contain the wsdl ?

You need a wsdl only if you are using databinding, ie, running
wsdl2java . POJO and RPC based services don't need an wsdl for
example.


I still get the below exception while accessing the url:
http://localhost:8080/mm/services

 ERROR org.apache.axis2.transport.http.AxisServlet -
org.apache.axis2.AxisFault: I can not find a service for this request to be
serviced. Check the WSDL and the request URI

Try just:

http://localhost:8080/mm

To get the axis2 "welcome!" page. Note that the client in the spring
example uses http://localhost:8080/axis2/services/SpringAwareService
as the endpoint.

You may consider using the axis2.war first before attempting to create
your own war. Or perhaps rename the axis2.war to the name of your war,
and place your entire web.xml in the axis2.xml . Then follow the
instructions above to get to the 'welcome!"page.

Let us know if you still get stuck.

HTH,
Robert

Thanks

robert lazarski <[EMAIL PROTECTED]> wrote:
 Jetty should be ok. I assume since you got this far that all the axis2
jars are under WEB-INF/lib. If you look at the expanded axis2.war via
'jar xf axis2.war', you'll see the services dir and also a modules
dir. I suggest simply copying in its entirety the services and modules
directory to your expanded war. Then place your new aar, with the
services.xml configured for spring, under the services dir. From that
point, let us know if you still have problems.

Robert

On 3/27/07, Rosan Roche wrote:
> Where should the aar file be placed. I am using Jetty server from
> eclipse to test. After the server startup, while checking for services, I
> get the exception:
> I can not find a service for this request to be serviced. Check the WSDL
and
> the request URI.
>
> Thanks
>
> robert lazarski wrote:
> http://ws.apache.org/axis2/1_1_1/spring.html#24 points to
> the "without
> a servlet context" section , yet you have a web.xml and are loading
> spring there. That's fine, but you need to have an AAR file with just
> the services.xml file in it. Try
> http://ws.apache.org/axis2/1_1_1/spring.html#23 and see
how
> that goes.
> As shown further down in the same docs, the structure of your AAR in
> this case will be like:
>
> ./springExample.aar
> ./META-INF
> ./META-INF/MANIFEST.MF
> ./META-INF/services.xml
>
> Further hint: look at the "Axis2 Web Application Home Page" section in
> this link where you can see a list of your services:
>
> http://ws.apache.org/axis2/1_1_1/installationguide.html
>
> HTH,
> Robert
>
> On 3/27/07, Rosan Roche wrote:
> > I am trying to integrate the existing Spring application I have with
> axis2.
> > I am following the example from
> > http://ws.apache.org/axis2/1_1_1/spring.html#24.
> > I have added the Axis servlet to my web.xml file along with the existing
> > servlet that is being used by the main application.
> > When I try to access the service at
> > http://localhost:8080/mm/services/SpringAwareService,
> > I get an exception: org.apache.axis2.AxisFault:
> > I can not find a service for this request to be serviced.
> > Check the WSDL and the request URI
> >
> > How does the services.xml get loaded?
> > Should it be explicitly loaded while startup? Should I create
> > a WSDL?
> >
> > web.xml
> >
> >
> > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> >
> > Media Management
> >
> >
> > contextConfigLocation
> > classpath:applicationContext.xml
> >
> >
> >
> > configuration
> > deployment
> >
> >
> >
> >
> >
> > org.springframework.web.context.ContextLoaderListener
> >
> >
> >
> > mm
> >
> > wicket.protocol.http.WicketServlet
> >
> >
> > applicationFactoryClassName
> >
> > wicket.spring.SpringWebApplicationFactory
> >
> > 1
> >
> >
> >
> > axis
> >
> > org.apache.axis2.transport.http.AxisServlet
> > 5
> >
> >
> >
> > axis
> > /services/*
> >
> >
> >
> > Thanks
> >
> >
> >
> > ________________________________
> > Never miss an email again!
> > Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ________________________________
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 ________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to