I need transmit one java project to the WAR package then put it under the
tomcat.  But I donot know how to write web.xml of this project rightly.   I
had written onem  but error.  Tomcat cannot start this servlet.  Can anyone
teach me how to modify it?

Following is web.xml file.  org.apache.axis2.axis2userguide is the package
name. HelloWorldServiceSkeleton is the class name.
<?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"; xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5">
<filter>
    <filter-name>DebugFilter-In</filter-name>
    <description>Print XMl request, XML response and current
timestamps</description>
    <filter-class>com.vzb.varwebservices.filter.DebugFilter</filter-class>
    <init-param>
       <param-name>input</param-name>
       <param-value>true</param-value>
    </init-param>
</filter>
<servlet>
    <servlet-name>HelloWorldService</servlet-name>
    <display-name>This is Hello World Service.</display-name>

<servlet-class>org.apache.axis2.axis2userguide.HelloWorldServiceSkeleton</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>HelloWorldService</servlet-name>
    <url-pattern>/HelloWorld</url-pattern>
  </servlet-mapping>
</web-app>

Reply via email to