aRaindogToo
Programmer
Hi!
Anybody has some info about Tomcat and class loading? I have a servlet that uses the logging functionality i java.util.logggin package, but also have a class extending the SimpleFormatter class. To change between these formatters, the "java.util.logging.FileHandler.formatter" key is used. The only way I've found to get java runtime to find my class, is to set the "java.endorsed.dirs" to CATALINA_BASE/common/endorsed (which contains the jar with my class) when I run the tomcat start script (CATALINA_HOME is not the same as CATALINA_BASE).
Is there any other way? Ok, it works, but it doesn't seem like it's the right way to go.
Any info would be greatly appreciated!
BR,
jonas
Anybody has some info about Tomcat and class loading? I have a servlet that uses the logging functionality i java.util.logggin package, but also have a class extending the SimpleFormatter class. To change between these formatters, the "java.util.logging.FileHandler.formatter" key is used. The only way I've found to get java runtime to find my class, is to set the "java.endorsed.dirs" to CATALINA_BASE/common/endorsed (which contains the jar with my class) when I run the tomcat start script (CATALINA_HOME is not the same as CATALINA_BASE).
Is there any other way? Ok, it works, but it doesn't seem like it's the right way to go.
Any info would be greatly appreciated!
BR,
jonas