Howdy,
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 [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, June 04, 2003 11:31 AM
>To: [EMAIL PROTECTED]
>Subject: WEB-INF with War Files
>
>Hi all,
>I have 3 different files for my web deployment - app.jar, app.war, and
>app.properties.
>
>Can I use a WEB-INF structure when using a war file?  I have placed the
war
>file in Tomcat's webapps directory.  I have then created a directory
called
>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
the
>app.properties in the classes directory.  My application requires
>app.properties to be in the classpath.  My application also needs to be
>able
>to read and write to this properties file.
>
>The jar and properties file aren't visible to the JSP pages in the war
>file.
>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
but
>the properties file is not.  I can't place everything in the common
folders
>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
directory?
>Any other helpful hints would be appreciated.
>
>Tyson
>[EMAIL PROTECTED]
>www.simdynasty.com
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to