I'm afraid I don't know what you need to do to the jar, but I have had
success making wars using the War  task in ant.  It is well worth
investigating ant just for its jar and war tasks alone, though all the rest
is good too!

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-----Original Message-----
From: Neale Rudd [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 8:08 AM
To: Tomcat Users List
Subject: Re: Problem accessing subdirectories within packed WAR files


Hi Again,

Since writing this message we have discovered that some
WAR files do in fact work (files from subfolders in the WAR
can be accessed).  Is there an error in the way we are
compiling our own WAR file?

We are assuming it needs to be JAR'd the same as a
JAR file then renamed as .WAR.

Any help would be greatly appreciated, we are trying
to deploy a tomcat app for one of our customers and
having a lot of problems with this one issue.

Thanks again,
Best Regards,
Neale Rudd
metawerx
http://www.metawerx.net



-----Original Message-----
From: Neale Rudd <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, 12 April 2002 14:32
Subject: Problem accessing subdirectories within packed WAR files


>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]>
>
>


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.346 / Virus Database: 194 - Release Date: 10/04/02
 

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

Reply via email to