tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neale Rudd" <ne...@metawerx.net>
Subject Re: Problem accessing subdirectories within packed WAR files
Date Sun, 14 Apr 2002 22:48:29 GMT
Hi John,

Thanks for the help, Tomcat is now picking up the files
in the subdirectories of the WAR files successfully.

I have found JAR cvf works, ANT works (very well as
you said, and is a very nice product!) and WinZIP
doesn't work properly, possibly due to the META-INF
file or other information in the zip not being in the
correct format.

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



-----Original Message-----
From: John Burgess <John@riskdecisions.com>
To: Tomcat Users List <tomcat-user@jakarta.apache.org>
Date: Friday, 12 April 2002 22:01
Subject: RE: Problem accessing subdirectories within packed WAR files


>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
>john@riskdecisions.com
>Tel: 01865 718666
>Fax: 01865 718600
>
>
>-----Original Message-----
>From: Neale Rudd [mailto:neale@metawerx.net]
>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 <neale@metawerx.net>
>To: tomcat-user@jakarta.apache.org <tomcat-user@jakarta.apache.org>
>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
>>neale@metawerx.net
>>http://www.metawerx.net
>>
>>
>>
>>--
>>To unsubscribe:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>>For additional commands:
<mailto:tomcat-user-help@jakarta.apache.org>
>>Troubles with the list:
<mailto:tomcat-user-owner@jakarta.apache.org>
>>
>>
>
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>---
>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:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message