- This topic has 3 replies, 2 voices, and was last updated 18 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
ryphoenixMemberHi,
I currently use a batch file to start an embedded Tomcat 5 server for my web project.
I’m wondering if there is any way to configure the application server connector to hook up with my embedded Tomcat?
More importantly is my desire to utilize the JSP debugging features like breakpoints and such. Even if I have to start Tomcat externally, is there a way to start it in debug mode so that the breakpoints will still kick in and show up in the console?
Thanks in advance.
Riyad KallaMemberI’m wondering if there is any way to configure the application server connector to hook up with my embedded Tomcat?
Not if you want to keep using a batch file, but you can hook the debugger up to it for debugging by following our remote debugging guide here:
http://www.myeclipseide.com/images/tutorials/quickstarts/remotedebugging/
ryphoenixMemberThanks for the tip.
This looks like what I am looking for, except that I don’t use catalina.bat to start my embedded server, and I do not have Tomcat installed on my machine.The demo project I am working does not want to require installation of Tomcat onto the demo computer, and neither can we access a Tomcat server using the internet. Thus we have a portable embedded Tomcat server that can be launched using a customized batch file. Basically the tomcat folder has a bunch of tomcat and axis jar files along with the deployed jsp and html files. The batch file sets classpaths and other properties, and then does a “java -cp %CP% package.Main”. So I’m not sure how, if possible, to get the JPDA going.
Any help?
Riyad KallaMemberWell all catalina.bat does in a normal install of Tomcat is setup the execution environment, like your script does, then fire up the Catalina class file from the Tomcat JARs, no magic, just normal Java. Sounds like your batch file is doing exactly the same thing. So just figure out what environment variable settings you need to set to tell Tomcat to open up debugging ports so you can connect a debugger to it. Try looking through the Tomcat docs or just download Tomcat 5.5.17 zip and unzip it and check the startup .bat files and see if they do anything fancy you can duplicate in your script.
-
AuthorPosts