Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 70865 invoked from network); 4 Jun 2003 15:52:02 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 4 Jun 2003 15:52:02 -0000 Received: (qmail 12774 invoked by uid 97); 4 Jun 2003 15:54:18 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 12767 invoked from network); 4 Jun 2003 15:54:18 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 4 Jun 2003 15:54:18 -0000 Received: (qmail 69414 invoked by uid 500); 4 Jun 2003 15:51:43 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 69395 invoked from network); 4 Jun 2003 15:51:43 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 4 Jun 2003 15:51:43 -0000 Received: from thunderbolt.mpi.com (thunderbolt.mpi.com [199.93.192.55]) by mustang.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h54Fpfh10620 for ; Wed, 4 Jun 2003 11:51:41 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [199.93.195.21]) by thunderbolt.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h54FpJqk020517 for ; Wed, 4 Jun 2003 11:51:43 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: WEB-INF with War Files Date: Wed, 4 Jun 2003 11:51:30 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8A6E5FD@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WEB-INF with War Files Thread-Index: AcMqrUCrssr0KTY7SzmLF42cLFQL6AAA6k9A From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 docBa= se jarred together. If you expand it (jar xvf app.war) and remove it, yo= ur app should run exactly the same. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Tyson Lowery [mailto:tysonlowery@simdynasty.com] >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, an= d >app.properties. > >Can I use a WEB-INF structure when using a war file? I have placed t= he 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 wa= r >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 rea= d 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 >tysonlowery@simdynasty.com >www.simdynasty.com > > > > >---------------------------------------------------------------------= >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org