Thank You Chris for your time and help. I understand that I need WebServices Engine like AXIS2 or METRO or Apache CXF.
Here is the deal. Websphere7 uses AXIS2 as the WebServices engine. I have my Webservices class with Annotation of @WebService. This is then compiled to WEB-INF\classes folder. Then the war is built. Remember uptil this point I have not made any web.xml changes. Then I deploy the war file (using ear) to a Websphere7 installation. Once the deployment of war happens, something inside of AXIS2 is processing all the annotation based classes and dynamically generating the web.xml and processing the WebServices. What is the equivalent of that in Tomcat7. Tomcat7 can handle Servlet3 based classes. So I thought it should have the mechanism to process Annotated Webservices as well. -Narahari On Wed, Sep 21, 2011 at 9:53 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Narahari, > > On 9/20/2011 11:15 PM, Narahari 'n' Savitha wrote: > > I have a JAXWS webservice developed in WebSphere 7.0. It is > > working there. The stack in Websphere is Axis2.0 > > > > I wrote a POJO Java class, annotated with the @WebService > > annotation and then I did a wsgen to generate the necessary > > artifacts and created the war file. > > > > The imp thing is that web.xml does NOT have any servlets in it or > > listeners defined. > > Tomcat only implements the servlet specification, so if you want to > deploy web services, you're going to have to find a way to get that > going using a helper library -- like Axis. > > > However when I deploy that war file to Tomcat 6.0.32 and then copy > > the axis2 jars to the WEB-INF\lib folder. > > Axis needs a servlet to be mapped in order to serve requests to your > web services. > > > When I restart Tomcat, the WebService does not work. > > > > What I am curious is, how come Websphere7, deploys the WebService > > on startup without any entires in web.xml but Tomcat refuses to do > > so ? > > Websphere is a J2EE application server while Tomcat is a servlet > container "only". Maybe you want to look into using JBoss or Apache > Geronimo if you need more than servlet-based services. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk557EwACgkQ9CaO5/Lv0PAIZwCeL2Gv2db8XdIoUV8xJdDSKG7T > tx4AoLcoVshb2HK4gXlVtX4TMF+mmSMy > =CsWK > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >