You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Laurent Michenaud <lm...@adeuza.fr> on 2002/08/27 14:29:20 UTC
Modifying Tomcat to have WEB-INF/config in Classpath
Hi,
I want Tomcat 3.3.1 to have WEB-INF/config in the classpath( like WEB-INF/classes ).
I have modified the LoaderInteceptor11.java :
In the method addContext, i have added :
// Add "WEB-INF/config"
File d = new File(base + "/WEB-INF/config");
if( d.exists() ) {
try {
URL url=new URL( "file", null,
d.getAbsolutePath().replace('\\','/') + "/" );
context.addClassPath( url );
} catch( MalformedURLException ex ) {
}
}
I have recompiled Tomcat but it doesnot work.
My properties in WEB-INF/config are still not found.
Can anybody help me ?
Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>