tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: WEB-INF with War Files
Date Wed, 04 Jun 2003 15:51:30 GMT

You need a web.xml in the WEB-INF directory.  You don't have write
permission normally to files on the classpath, including your own
property file.

A .war file is just the congolomeration of everything under your docBase
jarred together.  If you expand it (jar xvf app.war) and remove it, your
app should run exactly the same.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Tyson Lowery []
>Sent: Wednesday, June 04, 2003 11:31 AM
>To: Tomcat-User@Jakarta.Apache.Org
>Subject: WEB-INF with War Files
>Hi all,
>I have 3 different files for my web deployment - app.jar, app.war, and
>Can I use a WEB-INF structure when using a war file?  I have placed the
>file in Tomcat's webapps directory.  I have then created a directory
>apps with a WEB-INF subdirectory, which has two more subdirectories -
>classes and lib.  I have placed the app.jar in the lib directory, and
> in the classes directory.  My application requires
> to be in the classpath.  My application also needs to be
>to read and write to this properties file.
>The jar and properties file aren't visible to the JSP pages in the war
>I get all kinds of class not found errors.  When I move the jar to
>common/lib/, but leave the properties file in classes, the jar is read
>the properties file is not.  I can't place everything in the common
>anyhow, since I ultimately want to run multiple versions of the
software on
>the same Tomcat instance.
>Am I doing something wrong?  Do I need a web.xml in the WEB-INF
>Any other helpful hints would be appreciated.
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message