Caldarale, Charles R wrote:
From: Mark Hawkes [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat 5.5.23: Cannot Deploy hello-world.war

The structure looks good.

META-INF/context.xml
WEB-INF/web.xml


What's in the above two files?

$ cat META-INF/context.xml
<Context path="/hello-world" docbase="hello-world.war" reloadable="true"
        debug="0">
  <Loader checkInterval="1"/>
</Context>


$ cat WEB-INF/web.xml
<?xml version="1.0" encoding="ISO-8859-1"?>

<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 web-app_2_4.xsd"
        version="2.4">
  <display-name>Hello World</display-name>
  <description>
    An application that outputs a text/plain response of the string
    "Hello World"
  </description>

  <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>com.markhawkes.misc.HelloWorldServlet</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>HelloWorld</servlet-name>
    <url-pattern>/HelloWorld</url-pattern>
  </servlet-mapping>

</web-app>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to