facebook

help with launching jsp project from inside eclipse

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #252113 Reply

    Tim McGuire
    Member

    I 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 out

    as 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.xml

    here 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)

    #252142 Reply

    Riyad Kalla
    Member

    I 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.

    #252155 Reply

    Tim McGuire
    Member

    thanks. I was making it more complex. It is clear now. Thank you

    #252159 Reply

    Riyad Kalla
    Member

    No problem

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: help with launching jsp project from inside eclipse

You must be logged in to post in the forum log in