Remove bootstrap.jar, tools.jar, and commons-logging-api.jar from the Bootstrap Entries and just add bootstrap.jar to the User Entries. That should get it working.
I'm not sure about the impact of adding your project to the User Entries as I think this is equivalent to adding your project to the CLASSPATH environment variable. It could lead to odd behavior, but may be helpful for setting breakpoints. This is something the Sysdeo and WTP plug-ins would help avoid. Cheers, Larry > -----Original Message----- > From: Zach Calvert [mailto:[EMAIL PROTECTED] > Sent: Friday, August 11, 2006 1:09 PM > To: users@tomcat.apache.org > Subject: Run Tomcat in Eclipse > > 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(Log > FactoryImp > l.java:543) > at > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log > FactoryImp > l.java:235) > at > org.apache.commons.logging.impl.LogFactoryImpl.getInstance(Log > FactoryImp > 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.getLogConstruct > or(LogFact > oryImpl.java:397) > at > org.apache.commons.logging.impl.LogFactoryImpl.newInstance(Log > FactoryImp > l.java:529) > ... 4 more > Caused by: java.lang.NullPointerException > at > org.apache.commons.logging.impl.LogFactoryImpl.getLogConstruct > or(LogFact > oryImpl.java:374) > ... 5 more > > > I assume I am missing something from my classpath. Does > anyone know what it is? > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]