I am trying to configure Eclipse 3.2 with Tomcat 5.5.17 and Java
jdk1.5.0_08.
 
In Tomcat 4.x days, I could set up a run configuration and have it run
using Eclipse's run interface.  I am trying to duplicate the process for
5.5.17, but am having difficulty.  First off, I have tried searching
Google and everything points to the com.sysdeo.eclipse.tomcat_3.0.0
plugin.  I really would rather avoid that plug-in and use my own
configuration.
 
Here are the steps I have taken:
First, JAVA_HOME is set.
Next, I have a project that has the Bootstrap.jar on the classpath.
I open up a debug configuration and set the main class to
org.apache.catalina.startup.Bootstrap
 
In the program arguments, I have
start
 
In the VM Arguments I have 
-Djava.endorsed.dirs="<<Tomcat Root>>\common\endorsed" 
-Dcatalina.home="<<Tomcat Root>>" 
-Dcatalina.base="<<App Dir>>"
-Djava.io.tmpdir="<<Temp Dir>>"
 
On the classpath tab of the debug configuration, I have 
Bootstrap Entries:
    JRE
    bootstrap.jar
    tools.jar
    commons-logging-api.jar
User Entries:
    Project (default classpath)
 
When I run it, I get an exception:
 
java.lang.ExceptionInInitializerError
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by
java.lang.NullPointerException) (Caused by
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by
java.lang.NullPointerException))
   at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:543)
   at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:235)
   at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp
l.java:209)
   at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
   at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:53)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException (Caused by
java.lang.NullPointerException)
   at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:397)
   at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:529)
   ... 4 more
Caused by: java.lang.NullPointerException
   at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact
oryImpl.java:374)
   ... 5 more 
 
 
I assume I am missing something from my classpath.  Does anyone know
what it is?

Reply via email to