Re: Still have log4j and CLASSPATH problems on linux

2007-02-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: - $tomcat_home/lib contains: (I copied the Struts and Hibernate libs over here) Why did you do this? Unless you have a /really/ good reason, all of the libs required for your webapp should be in $YOUR_APP/WEB-INF/lib. Get

Still have log4j and CLASSPATH problems on linux

2007-02-05 Thread Oren Livne
Dear Gaurav and everyone, Thanks so much for your help. The explanations were good and helped me better understand how the tomcat classloader works. However, I still have a problem running my web application. In short, the exception is java.lang.NoClassDefFoundError:

Re: log4j and CLASSPATH problems on linux

2007-02-04 Thread Gaurav Kushwaha
Log4j loads log4j.properties from the classpath of the classloader that loaded itself(log4j classes). In your case, log4j is loaded by tomcat classloader, since it is present in $TOMCAT_HOME/lib. Classes and files under WEB-INF/classes are not visible to that classloader, hence the problem.

log4j and CLASSPATH problems on linux

2007-02-02 Thread Oren Livne
Dear All: I'm running tomcat 6.0.7 beta on a linux redhat 8 system. Here are my questions: 1. I tried to set up some useful libraries in directories outside $tomcat_home/lib but they were not recognized. I did that by setting:

Re: log4j and CLASSPATH problems on linux

2007-02-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: 1. I tried to set up some useful libraries in directories outside $tomcat_home/lib but they were not recognized. This isn't surprising. Tomcat expects to have full control over its own classpath. You're better-off putting