[ajug-members] websphere 7.0 JAXWS webservice deployed in tomcat 6.0.32 not working
Summers Pittman ℝ
secondsun at gmail.com
Sun Sep 18 13:06:26 EDT 2011
You need to use Apache cxf to use jaxws with tomcat.
On Sep 18, 2011 1:05 PM, "Sony Antony" <sony.antony at gmail.com> wrote:
> Websphere processed the @webservice annotation at deployment time and
> generates a bunch of classes sp as to make it act as a web service
>
> Tomcat doesn't do this and ence doesn't work
> --Sony
>
> On Sunday, September 18, 2011, Narahari 'n' Savitha <savithari at gmail.com>
> wrote:
>> Friends:
>>
>> 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.
>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>> xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
>>> id="WebApp_ID" version="2.5">
>>> <display-name>CMSExternalWebServices</display-name>
>>>
>>> <servlet>
>>> <servlet-name>Log4JControl</servlet-name>
>>>
>
<servlet-class>it.openutils.log4j.Log4jConfigurationServlet</servlet-class>
>>> </servlet>
>>> <servlet-mapping>
>>> <servlet-name>Log4JControl</servlet-name>
>>> <url-pattern>/Log4JControl/*</url-pattern>
>>> </servlet-mapping>
>>>
>>>
>>> <welcome-file-list>
>>> <welcome-file>index.html</welcome-file>
>>> <welcome-file>index.htm</welcome-file>
>>> <welcome-file>index.jsp</welcome-file>
>>> <welcome-file>default.html</welcome-file>
>>> <welcome-file>default.htm</welcome-file>
>>> <welcome-file>default.jsp</welcome-file>
>>> </welcome-file-list>
>>> </web-app>
>>
>>
>> However when I deploy that war file to Tomcat 6.0.32 and then copy the
> axis2 jars to the WEB-INF\lib folder.
>>
>> 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 ?
>>
>> What am I missing ?
>>
>> -Narahari
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20110918/e19fe7a2/attachment.html
More information about the ajug-members
mailing list