users@jax-rpc.java.net

Re: web.xml generated by wsdeploy is not deploying

From: Mohan Davuluri <mohan.great_at_gmail.com>
Date: Tue, 12 Dec 2006 13:11:39 -0500

I did not have my web.xml created propertly. I subsituted my web.xml with

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">

<web-app>
  <display-name>FAS Message Service</display-name>
  <description>FAS Message Service Web service.</description>
  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>
</web-app>
The wsdeploy then created the right web.xml which was valid.

Thanks
-- M





On 12/12/06, Mohan Davuluri <mohan.great_at_gmail.com> wrote:
>
> wsdeploy tool generates a WAR file after processing my raw war. I have the
> web.xml as
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app 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
> " version="2.4">
> <servlet>
> <servlet-name>XYZMessageService</servlet-name>
> <servlet-class>abc.dbc.efg.XYZMessageServiceSEI_Impl</servlet-class>
>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <servlet-mapping>
> <servlet-name>abc.dbc.efg.XYZMessageServiceSEI_Impl</servlet-name>
> <url-pattern> abc.dbc.efg.XYZMessageService_Impl</url-pattern>
> </servlet-mapping>
> <session-config>
> <session-timeout>
> 30
> </session-timeout>
> </session-config>
> <welcome-file-list>
> <welcome-file>
> index.jsp
> </welcome-file>
> </welcome-file-list>
> </web-app>
>
> The wsdeploy tool generates another web.xml after processing the raw war.
> The final WAR file is not getting deployed as the web.xml it generates is
> not valid. Here is how the generated web.xml looks like
>
> <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE web-app PUBLIC "-//Sun
> Microsystems, Inc.//DTD Web Application 2.3//EN" "
> http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"><web-app>< listener><
> listener-class>com.sun.xml.rpc.server.http.JAXRPCContextListener </
> listener-class></listener><servlet xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"><servlet-name >
> FASMessageService</servlet-name><servlet-class >
> gov.nsf.eprocurement.webservices.FASMessageServiceSEI_Impl</servlet-class><
> load-on-startup>1</load-on-startup> </servlet><servlet><servlet-name >
> FASMessageService</servlet-name><display-name>FASMessageService </
> display-name><description>JAX-RPC endpoint - FASMessageService </
> description><servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet </
> servlet-class><load-on-startup>1</ load-on-startup></servlet><
> servlet-mapping xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi ="
> http://www.w3.org/2001/XMLSchema-instance"><servlet-name >
> FASMessageService</servlet-name><url-pattern >/FASMessageService</
> url-pattern></ servlet-mapping><servlet-mapping><servlet-name>FASMessageService
> </servlet-name><url-pattern>/FASMessageService </url-pattern></
> servlet-mapping><session-config xmlns="http://java.sun.com/xml/ns/j2ee"xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"> <session-timeout>30</
> session-timeout<http://www.w3.org/2001/XMLSchema-instance%22%3E%3Csession-timeout%3E30%3C/session-timeout>
> > </session-config><welcome-file-list xmlns="http://java.sun.com/xml/ns/j2ee
> " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"><welcome-file>
> index.jsp</ welcome-file<http://www.w3.org/2001/XMLSchema-instance%22%3E%3Cwelcome-file%3Eindex.jsp%3C/welcome-file>
> ></welcome-file-list></ web-app>
>
> Please let me know what i am doing wrong which makes wsdeploy a wrong
> web.xml.
>
> Thanks
>
> -- M
>
>
>
>