Hi,

When using the unpackWars=false tag in the Host configuration,
I am able to deploy new webapps from WAR files using the manager
app or by placing them into the webapps root and restarting tomcat.

However, using this method, none of the subdirectories within the
WAR files seem to work.

>From my understanding of the documentation, WAR files are
meant to be an archive of a site, it's servlets and classes, but I
can only seem to get files in the root of the WAR file to work unless
the WAR is unpacked first.

For example, with the WAR file layout below, the index.htm file
can be accessed, but the file /images/test.gif and /other/other.htm
cannot be accessed and show the error:

404 (The requested resource (/other/other.htm) is not available)

test.war layout:
    index.htm
    test.htm
    WEB-INF
        web.xml
    images
        test.gif
    other
        other.htm

I am deploying the app as follows:

Path: /
War-URL: jar:file:/d:/tomcat/myserver/test.war!/

The manager gives the response that the new path
was successfully mapped, and I can then access
my index.htm file using:

http://servername/index.htm

However, http://servername/images/test.gif fails, as does
/other/other.htm

This also happens when using any other path.  Only files in the root
of
the application seem to be accessable.

When I unpack the WAR file, everything works properly.

What am I doing wrong?  Am I missing something in my understanding
of how WAR files are meant to work?

Going over the archives, it seems other people have had this same
problem accessing servlets within WAR files, but I cannot find a
satisfactory answer.  People have either said "use a JAR file and keep
it unpacked" or "I can access the index.htm file, so therefore the WAR
files are working perfectly".

Please help.

Best Regards,
Neale Rudd
metawerx
[EMAIL PROTECTED]
http://www.metawerx.net



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to