tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
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
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html
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

OR
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"
unpackWARs="true"

M-

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" <mark@morxy.co.uk>
To: "Tomcat Users List" <users@tomcat.apache.org>
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 [mailto:mark@morxy.co.uk] 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


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


Mime
View raw message