If you want to load a file that is under WEB-INF, you don't need to involve the
class loader at all. Simply use:
InputStream is =
getServletContext().getResourceAsStream("/WEB-INF/myprops.properties");
Cool. That works (missed the part about relative to the context
directory
in
I'm trying to load a properties file at startup in a servlet by doing a
ClassLoader loader = Thread.currentThread().getContextClassLoader();
InputStream is = null;
is = getServletContext().getResourceAsStream( propFileName );
while(loader != null is == null) {
is =
I'm attempting to migrate from jserv to tomcat and everything appears to
be working well, except for testing the status of the servers in my load
balancing set. The status page appears
(/jserv/status?module=xxx.domain) and I see the correct load balancing
definitions. But if I poke the Test