- This topic has 1 reply, 2 voices, and was last updated 18 years, 4 months ago by Riyad Kalla.
-
AuthorPosts
-
shuetrimParticipantI 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 moreI 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
Riyad KallaMemberGeoff,
For development I would highly suggest that you use a local copy of Tomcat under your user dir and not your system install of Tomcat. Get that working first, then try and expand those settings to your server-wide install. Just download Tomcat 5.5.17 from Tomcat’s site as a zip and unzip it under your home dir somewhere, then point MyEclipse at it (change the Home dir). You should not have any entries under your Paths settings, all those boxes should be blank for now, MyEclipse will pickup all the default libraries. -
AuthorPosts