Posted in Java, Tomcat on July 22, 2009 | Leave a Comment »
Solr is a great piece of software but its logging is bloody annoying. Defaultwise on my Tomcat, it will write all its log messages to the system out log, which is a pain in the but to say the least.
To make it log to its own log file, this is what I did to tomcat/conf/logging.properties
# [...]
Read Full Post »
Posted in Tomcat on October 8, 2008 | 1 Comment »
I don’t know if this is “works as specified”, but it seems a wee bit odd to me:
MyClient in tomcat/webapps/myapp/WEB-INF/lib/myjar.jar uses MyClass
MyClass resides in tomcat/lib/my-other-jar.jar
MyClient finds MyClass, which resides in the other (shared) classloader.
However, MyClass extends a class in tomcat/webapps/myapp/WEB-INF/lib/myjar.jar – which then cannot be found.
So, maybe this is obvious? Classes in a webapps classloader [...]
Read Full Post »
Posted in Apache, Java, Tomcat on October 26, 2007 | Leave a Comment »
I love Tomcat, but it really gives me the creeps sometimes. Using the latest 6.0.14 release, I’ve been linking my log4j configuration from $CATALINA_HOME/lib/trace.properties to whereever it actually resides.
The symlinking of both JAR libraries and trace.properties has always been fine. Now, all of a sudden, my logging config didn’t work anymore. I had been [...]
Read Full Post »
Posted in Apache, Java, Tomcat on October 8, 2007 | 2 Comments »
Tomcat kept throwing annoying NoClassDefFoundErrors at me although the class was in a jar that resided in webapp classpath (a jar in mywebapp/WEB-INF/lib). Also, it didn’t happen all the time, just “often”. Restarting the server sometimes helped, sometimes not. Testing the same webapp on the Resin app server gave no such errors.
To my (so far) [...]
Read Full Post »