S
stevengarcia
I can run Tomcat from within IDEA with no problem, but setting up
Tomcat within debug mode is way more problematic.
I'm using Tomcat 5.5 (zip version, not Windows executable)
IDEA 5.0
Windows XP
JRE 1.5
First, I created a tomcat server. Simple, I just pointed IDEA to the
\..\apache-tomcat-5.5 directory and it picked it up, jars and all.
Second, I go to "Edit Configurations" and created a Tomcat Server. I
have no web module, all I simply want to do is start tomcat in debug
mode, and have IDEA attach to it. On the server tab, I selected the
Tomcat server from above, and clicked on OK.
When I run Tomcat, everything works fine. My output looks like
cmd /c C:\java\tools\apache-tomcat-5.5.15\bin\catalina.bat run
Using CATALINA_BASE: C:\Documents and
Settings\Steven\.IntelliJIdea50\system\tomcat_Debug_Tomcat_36bcb17a
Using CATALINA_HOME: C:\java\tools\apache-tomcat-5.5.15
Using CATALINA_TMPDIR: C:\java\tools\apache-tomcat-5.5.15\temp
Using CATALINA_OPTS:
Using JAVA_OPTS:
[...]
[snip]
[...]
Mar 14, 2006 4:16:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 687 ms
Mar 14, 2006 4:16:48 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 14, 2006 4:16:48 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Mar 14, 2006 4:16:48 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 14, 2006 4:16:49 PM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 14, 2006 4:16:49 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 14, 2006 4:16:49 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/110 config=null
Mar 14, 2006 4:16:49 PM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
Mar 14, 2006 4:16:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1531 ms
Connected to server
When I run Tomcat in Debug mode, it hangs right after it prints out the
evironment settings, then it says "Failed to connect debugger to port
5005." Isn't IDEA supposed to directly attach a debugger to the Tomcat
VM?
Debug options are set up as "socket" and address = 5005.
Can anyone help me with this?
Tomcat within debug mode is way more problematic.
I'm using Tomcat 5.5 (zip version, not Windows executable)
IDEA 5.0
Windows XP
JRE 1.5
First, I created a tomcat server. Simple, I just pointed IDEA to the
\..\apache-tomcat-5.5 directory and it picked it up, jars and all.
Second, I go to "Edit Configurations" and created a Tomcat Server. I
have no web module, all I simply want to do is start tomcat in debug
mode, and have IDEA attach to it. On the server tab, I selected the
Tomcat server from above, and clicked on OK.
When I run Tomcat, everything works fine. My output looks like
cmd /c C:\java\tools\apache-tomcat-5.5.15\bin\catalina.bat run
Using CATALINA_BASE: C:\Documents and
Settings\Steven\.IntelliJIdea50\system\tomcat_Debug_Tomcat_36bcb17a
Using CATALINA_HOME: C:\java\tools\apache-tomcat-5.5.15
Using CATALINA_TMPDIR: C:\java\tools\apache-tomcat-5.5.15\temp
Using CATALINA_OPTS:
Using JAVA_OPTS:
[...]
[snip]
[...]
Mar 14, 2006 4:16:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 687 ms
Mar 14, 2006 4:16:48 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 14, 2006 4:16:48 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.15
Mar 14, 2006 4:16:48 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Mar 14, 2006 4:16:49 PM org.apache.coyote.http11.Http11BaseProtocol
start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 14, 2006 4:16:49 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 14, 2006 4:16:49 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/110 config=null
Mar 14, 2006 4:16:49 PM org.apache.catalina.storeconfig.StoreLoader
load
INFO: Find registry server-registry.xml at classpath resource
Mar 14, 2006 4:16:49 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1531 ms
Connected to server
When I run Tomcat in Debug mode, it hangs right after it prints out the
evironment settings, then it says "Failed to connect debugger to port
5005." Isn't IDEA supposed to directly attach a debugger to the Tomcat
VM?
Debug options are set up as "socket" and address = 5005.
Can anyone help me with this?