facebook

java.net.ConnectException: Connection refused: connect

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200266 Reply

    willm
    Member

    Windows 2000 Pro Service Pack 4
    Eclipse Platform Version: 2.1.2 Build id: 200311030802
    Installed Eclipse, MyEclipse. Just long enough to start learning IDE

    klomp sftp synchronization plugin
    Tomcat For Eclipse
    Tomcat Plugin

    There are 7 org.eclipse.pde.* directories

    MyEclipse Ver 2.64

    Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_09-b03)

    Apache Tomcat/5.0.14

    I set a breakpoint in the HelloWorld.jsp and HelloWorldServlet.java tutorials. Then I run the jsp and servlets through Internet Explorer. It does not stop on the breakpoints.

    If I press the bug in the toolbar the following is found in the log file:

    !SESSION Nov 22, 2003 23:28:56.125 ———————————————
    java.version=1.3.1_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:F:/Eclipse/eclipse/
    !ENTRY org.eclipse.debug.ui 4 120 Nov 22, 2003 23:28:56.125
    !MESSAGE Error logged from Debug UI:
    !STACK 1
    org.eclipse.core.runtime.CoreException[113]: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    at org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:102)
    at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:732)
    at org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITools.java:550)
    at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:499)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    !ENTRY org.eclipse.jdt.launching 4 113 Nov 22, 2003 23:28:56.125
    !MESSAGE Failed to connect to remote VM. Connection refused.
    !STACK 0
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    at org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:102)
    at org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    at org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:156)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:732)
    at org.eclipse.debug.ui.DebugUITools.buildAndLaunch(DebugUITools.java:550)
    at org.eclipse.debug.ui.DebugUITools$2.run(DebugUITools.java:499)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    Thanks

    #200274 Reply

    Scott Anderson
    Participant

    Willm,

    The problem is that ou’re using JDK 1.3.1. JSP debugging depends on a lot of the features that were added with JDK 1.4. You’ll need to run your Tomcat instance using JDK 1.4.1 or later in order for debugging to work properly. Personally, I use 1.4.1 over 1.4.2 because “bleeding edge” JDK’s have a way of introducing new interaction problems with Eclipse until they can be worked out on one side or the other. 🙂

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: java.net.ConnectException: Connection refused: connect

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