You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bryan Austad <ba...@xtendsoft.com> on 2002/02/13 01:58:09 UTC

Loading property files using ClassLoader.getSystemResource()

I use ClassLoader.getSystemResource() to load property files through out my
application.  I then am able to set the directory of where these property
files are located in the CLASSPATH.  I then can load the property files.
With Tomcat 4.0.2 using the NT/2K service, and cannot specify a directory of
where these property files are, therefore they are not loading.  I tried
putting these resources(property files) in the WEB-INF/classes directory,
the %CATALINA_HOME%/classes directory, or the %CATALINA_HOME%/common/classes
directory.  Still I am unable to load the property files.  I even tried the
lib directories at all levels.  The only way I could get this to work was
modifying the catalina.bat file and appending to the CLASSPATH.  I want it
to work with the NT/2K service though.  Is it possible?  Or am I going to
need to redesign how I load the property files in my application?

Thanks
Bryan


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>