tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rizalino DeVilleres" <>
Subject RE: problems with unpacking ROOT.war
Date Thu, 19 Oct 2006 16:42:20 GMT

I followed the recommendations and certainly fixed the issue, however
doing so, I've created another problem:

Here is the current setup that worked and resolved the issue but it
created issues in serving JSP pages.


<Context docBase="/path/to/public_html" debug="0" swallowOutput="true">


      <Host name="Host" appBase="/path/to/public_html/servlet"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

No Context path defined in it.


If we drop a Hello World JSP script in /path/to/public_html/servlet

(web server has a URL mapping to pass all request that matches servlet
OR .jsp extensions to Tomcat) -works. -doesnt work and generates a
404 error;

The requested resource (/servlet/helloworld.jsp) is not available.

This works if Tomcat is set as follows but it breaks the other setup

<Host name="Host" appBase="/path/to/public_html"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

<Context path="" docBase="" debug="0"/>

and remove $CATALINA_BASE/conf/Engine/Host/ROOT.xml


Is there another work around to get them both working? I believe, this
is the same setup we've had on the previous versions of Tomcat, we
simply want to place all the war/JSPs files in the public_html and
servlets as mentioned above.

Rizalino de Villeres

-----Original Message-----
From: Caldarale, Charles R [] 
Sent: Tuesday, October 17, 2006 9:59 AM
To: Tomcat Users List
Subject: RE: problems with unpacking ROOT.war

> From: Michael Courcy [] 
> Subject: Re: problems with unpacking ROOT.war
> Maybe a stupid clue but instead of
> <Context path="" debug="1">
> </Context>
> What happen if u try
> <Context path="/" debug="1">
> </Context>

Neither one is correct.  You must NOT use the path attribute in a
<Context> element unless the <Context> is defined in server.xml.  The
URI path to the app is determined from the name of the .xml file in the
conf/[engine]/[host] directory.

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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