I am having trouble starting the Tomcat5 server from within Eclipse using MyEclipse to enable debugging of JSPs.
Specifically, I am getting the following stack trace:
Can’t load server.xml
Can’t load server.xml
17/07/2006 11:51:54 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
… 6 more
I have made sure that the $CATALINA_HOME/conf directory and the $CATALINA_HOME/conf/server.xml file are both readable by all so that it should not simply be a permissions issue.
I have set up the Tomcat connector with Tomcat Home Directory as /usr/share/tomcat which is a symbolic link to the actual installation of Tomcat5.
I am running the Sun Java 1.5 SDK.
I have configured the class path to also include the jars in $CATALINA_HOME/bin
Tomcat5 is started as root but runs under the tomcat5 user.
Eclipse runs under my own user, not as root or anything else.
Any additional documentation on these kinds of specifics for Tomcat5 would be a big help in getting the most out of MyEclipse.
Thx
Geoff Shuetrim