Hi. I know this has been hashed over already, but I am having trouble
setting tomcat.home from jbuilder, and therefore debugging servlets.
When I attempt to set a breakpoint and step into a servlet, jbuilder
gives me this message:
/var/local/jbuilder4/jdk1.3/bin/java -classpath
"/var/local/jbuilder4/tomcat/lib/webserver.jar:/var/local/jbuilder4/tomcat/lib/jasper.jar:/var/local/jbuilder4/tomcat/lib/xml.jar:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/lib/webserverglue.jar:/var/local/jbuilder4/jbproject/okapi_servlets/classes:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/jdk1.3/jre/lib/javaplugin.jar:/var/local/jbuilder4/jdk1.3/jre/lib/i18n.jar:/var/local/jbuilder4/jdk1.3/jre/lib/ext/indicim.jar:/var/local/jbuilder4/jdk1.3/jre/lib/rt.jar:/var/local/jbuilder4/jdk1.3/lib/tools.jar:/var/local/jbuilder4/jdk1.3/lib/dt.jar:/var/local/jbuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar"
-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=myhost@mydomain:1498,suspend=y
org.apache.tomcat.startup.Tomcat -config /conf/server8080.xml
FATAL: configuration error
java.lang.Exception: Can't open config file: /conf/server8080.xml due
to: java.io.FileNotFoundException: /conf/server8080.xml (No such file or
directory)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
it looks for server8080.xml in "/". I guess this is because TOMCAT_HOME
is not set.
So, I go into Project Properties - Run - JSP/Servlet - VM Parameters,
and do:
-Dtomcat.home=/var/local/jbuilder4/tomcat
Then I try to step through again and get this:
/var/local/jbuilder4/jdk1.3/bin/java -classpath
"/var/local/jbuilder4/tomcat/lib/webserver.jar:/var/local/jbuilder4/tomcat/lib/jasper.jar:/var/local/jbuilder4/tomcat/lib/xml.jar:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/lib/webserverglue.jar:/var/local/jbuilder4/jbproject/okapi_servlets/classes:/var/local/jbuilder4/lib/servlet.jar:/var/local/jbuilder4/jdk1.3/jre/lib/javaplugin.jar:/var/local/jbuilder4/jdk1.3/jre/lib/i18n.jar:/var/local/jbuilder4/jdk1.3/jre/lib/ext/indicim.jar:/var/local/jbuilder4/jdk1.3/jre/lib/rt.jar:/var/local/jbuilder4/jdk1.3/lib/tools.jar:/var/local/jbuilder4/jdk1.3/lib/dt.jar:/var/local/jbuilder4/jdk1.3/demo/jfc/Java2D/Java2Demo.jar"
-Dtomcat.home=/var/local/jbuilder4/tomcat -Xdebug -Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=myhost@mydomain:1543,suspend=y
org.apache.tomcat.startup.Tomcat -config /conf/server8080.xml
FATAL: configuration error
java.lang.Exception: Can't open config file: /conf/server8080.xml due
to: java.io.FileNotFoundException: /conf/server8080.xml (No such file or
directory)
at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:214)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
it just put -Dtomcat.home in as another java parameter, but it looks
like org.apache.tomcat.startup.Tomcat still can't see it because it
still looks for server8080.xml in "/". Has anyone had this problem? Is
there a remedy?
Thanks!
Heather Buch