Actually, I do have the commons-logging on my classpath. I wouldn't be
able to call
Log log = LogFactory.getFactory().getLog(Logger.class);
log.debug("got log");
if I didn't. I can resolve LogFactory, which is
org.apache.commons.logging.LogFactory, the line above Bootstrap.main
just fine.
There is something a little more to this problem.
Zach
-----Original Message-----
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 23, 2006 5:42 PM
To: Tomcat Users List
Cc: [email protected]
Subject: Re: Running Tomcat from Bootstrap.main
your missing commons-logging from your classpath
Zach Calvert wrote:
> 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
>
>
> ----------------------------------------------------------------------
> --
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.11.5/425 - Release Date:
> 8/22/2006
>
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected] To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]