Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 67514 invoked from network); 27 Aug 2002 12:59:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 27 Aug 2002 12:59:47 -0000 Received: (qmail 21741 invoked by uid 97); 27 Aug 2002 13:00:10 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 21684 invoked by uid 97); 27 Aug 2002 13:00:09 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 21672 invoked by uid 98); 27 Aug 2002 13:00:09 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Modifying Tomcat to have WEB-INF/config in Classpath Date: Tue, 27 Aug 2002 08:59:36 -0400 Message-ID: <8D966D6B75EB7F47AA300241BF2E1D0C09307A@merc17.na.sas.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Modifying Tomcat to have WEB-INF/config in Classpath Thread-Index: AcJNxV4+tS7jRaE+RsCxRSUhnwPPKQAAt9rw From: "Larry Isaacs" To: "Tomcat Developers 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 It is not clear why adding WEB-INF/config to the webapp classpath is necessary or why you would even want to. If you are simply trying to read a properties file: <% java.util.Properties props =3D new java.util.Properties(); props.load(application.getResourceAsStream( "/WEB-INF/config/myprops.properties")); out.println(props); %> works for me as a JSP test case. Cheers, Larry > -----Original Message----- > From: Laurent Michenaud [mailto:lmichenaud@adeuza.fr]=20 > Sent: Tuesday, August 27, 2002 8:29 AM > To: tomcat-dev@jakarta.apache.org > Subject: Modifying Tomcat to have WEB-INF/config in Classpath >=20 >=20 > Hi, >=20 > I want Tomcat 3.3.1 to have WEB-INF/config in the classpath(=20 > like WEB-INF/classes ). >=20 > I have modified the LoaderInteceptor11.java : > In the method addContext, i have added : >=20 > // Add "WEB-INF/config" > File d =3D new File(base + "/WEB-INF/config"); > if( d.exists() ) { > try { > URL url=3Dnew URL( "file", null, > d.getAbsolutePath().replace('\\','/') + "/" ); > context.addClassPath( url ); > } catch( MalformedURLException ex ) { > } > } >=20 >=20 > I have recompiled Tomcat but it doesnot work. > My properties in WEB-INF/config are still not found. >=20 > Can anybody help me ? > Michenaud Laurent > - Adeuza - > [ D=E9veloppeur Web - Administrateur R=E9seau ] >=20 >=20 > -- > To unsubscribe, e-mail: =20 > unsubscribe@jakarta.apache.org> > For=20 > additional commands,=20 > e-mail: >=20 >=20 -- To unsubscribe, e-mail: For additional commands, e-mail: