Hi,
I am trying to run the "EmbededTomcat" object in
JBuilder to be able to debug my servlets.
It has a security access problem.
I added in the JVM options the following
:
-Djava.security.manager
-Djava.security.policy="d:/jboss-tomcat-2.2/jakarta-tomcat-3.2.1/conf/tomcat.policy"
-Dtomcat.home="d:/jboss-tomcat-2.2/jakarta-tomcat-3.2.1"
Here is my code :
import
org.apache.tomcat.startup.*;
public class TomcatDebugger {
public TomcatDebugger() {
} public static void main(String[]
args) {
try { EmbededTomcat tomcat = new EmbededTomcat(); tomcat.main(args); System.out.println("TomcatDebugger exited normally"); } catch (Exception e) { System.out.println("TomcatDebugger exception: " + e); e.printStackTrace(); } } }
Did someone tried to do that before ?
Can someone help me out ?
Thanks,
Christophe :o)
|