tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Tomcat 5.5.23: Cannot Deploy hello-world.war
Date Sat, 16 Jun 2007 15:52:49 GMT
I would recommend..Either..

in your Application's ./META-INF/<Context-specific>.xml
specify docBase
docBase is defined as
The Document Base (also known as the Context Root) directory for this web 
application, or the pathname to the web application archive file (if this 
web application is being executed directly from the WAR file). You may 
specify an absolute pathname for this directory or WAR file, or a pathname 
that is relative to the appBase directory of the owning Host.
an example should be located in $CATALINA_HOME/webapps/admin/admin.xml

in $CATALINA_HOMEconf/server.xml for <Host specify..
appBase for the path (to locate the .war and usually set to 'webapps') and
 autoDeploy when autoDeploy="true"


This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Mark Hawkes" <>
To: "Tomcat Users List" <>
Sent: Friday, June 15, 2007 5:48 PM
Subject: Re: Tomcat 5.5.23: Cannot Deploy hello-world.war

> Caldarale, Charles R wrote:
>>>From: Mark Hawkes [] Subject: RE: Tomcat 5.5.23: 
>>>Cannot Deploy hello-world.war
>> The structure looks good.
>> 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=""
>         xmlns:xsi=""
>         xsi:schemaLocation=" 
> 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:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message