- This topic has 3 replies, 2 voices, and was last updated 18 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
Tim McGuireMemberI am working thru the Application Deployment and Server Mgmt Quickstart and started Tomcat5 from within eclipse my project with one jsp file to deploy successfully.
— I have tomcat connector in debug mode —
— I restarted Tomcat —
It seems like we need an extra step ( 7.15 ) to direct how to launch the new application in debug mode, because it seems like I’m missing a step..
Here is what I have tried:
myTestProject –> debug –> debug as… MyEclipse Externally Launched Server = debug button greyed out
myTestProject –> debug –> debug as… MyEclipse Externally Launched Server -> new -> change port to 8080 = failed to connect to remote VM connection timed outas asked, here is my config info:
*** System properties:
awt.toolkit=sun.awt.windows.WToolkit
catalina.base=/c:/eclipse/plugins/org.eclipse.tomcat_4.1.30.1/
catalina.home=/c:/eclipse/plugins/org.eclipse.tomcat_4.1.30.1/
catalina.useNaming=true
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=I20050627-1435
eclipse.commands=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
ac0_58
-vm
C:\j2sdk1.4.2_09\jre\bin\javaw.exe
eclipse.product=org.eclipse.sdk.ide
eclipse.startTime=1147801554718
eclipse.vm=C:\j2sdk1.4.2_09\jre\bin\javaw.exe
eclipse.vmargs=-Xms40m
-Xmx256m
-jar
C:\eclipse\startup.jar
eof=eof*** Current Install Configuration:
Install configuration:
Last changed on May 16, 2006
Location: file:/c:/eclipse/configuration/org.eclipse.update/platform.xmlhere is the error log output:
!ENTRY org.eclipse.jdt.launching 4 113 2006-05-16 15:46:27.921
!MESSAGE Failed to connect to remote VM. Connection timed out.
!STACK 0
org.eclipse.jdi.TimeoutException
at org.eclipse.jdi.internal.connect.SocketTransportService.attach(SocketTransportService.java:149)
at org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:43)
at org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:118)
at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:139)
at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:79)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:590)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:515)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:733)
at org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:931)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
Riyad KallaMemberI think you are making this more complex than it needs to be. If all you are trying to do is debug, just launch tomcat and set break points then access your webpage with your browser to make the break points get hit. When MyEclipse starts your app server for you, it automatically connects the debugger to it.
Tim McGuireMemberthanks. I was making it more complex. It is clear now. Thank you
Riyad KallaMemberNo problem
-
AuthorPosts