I am running an Eclipse java application that makes a call to the
Bootstrap.main function.  I am using Log4J as my logger.
 
I set the catalina.home, catalina.base, java.endorsed.dirs, and
java.io.tempdir before I call Bootstrap.main with
 
Bootstrap.main(new String[] {"start"});
 
I get the error
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
when I make this call.  What is really weird, is that I can do
 
Log log = LogFactory.getFactory().getLog(Logger.class);
log.debug("got log");
 
right before the Bootstrap.main and see 
0 [main] DEBUG org.apache.log4j.Logger  - got log
 
on my command line.  
 
Does anyone have any idea as to what causes this failure?  Do I have to
set some environment variable that I am not aware of?
 
 
 
Thanks,
Zach Calvert

Reply via email to