WAR file is not getting extracted even though server.xml is configured

Hi all,

I'm using tomcat 4.1...

I created thermitunneler.war file which contains one servlet and configured the server.xml as the following:

<Context path="/rmitunneler"

docBase="/opt/uas/rmitunneler"

crossContext="false"

debug="0"

reloadable="true"

allowLinking="true"

caseSensitive="true" />[/b

I also put the war file in /opt/uas/rmitunneler and restarted tomcat, but the war file didn't get extracted. I tried to put the war file one directory above (/opt/uas) - but again with no success.

What could be wrong?

[609 byte] By [Lior_Levya] at [2007-11-27 11:20:25]
# 1

From the Tomcat document :

"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."

I believe you need to put the file name in the docBase:

docBase="/opt/uas/rimtunneler.war"

tolmanka at 2007-7-29 14:42:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for your reply.

I specified the absolute pathname as you recommended, but for some reason the rmitunneler directory was created under tomcat/webapps and not under /opt/uas as I expected.

Do you have any idea why it happened? What should I change in the configuration so the directory would be created in the right place?

Lior_Levya at 2007-7-29 14:42:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...