facebook

Failed to connect to remote VM. Connection refused.

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #253399 Reply

    viswamv
    Member

    Hi there,

    I am using myeclipse latest version 4.1 and eclipse latest version 3.2. But using Weblogic 7.04 service pack 4(Bea JRE 1.3.08). If i tried connect to debug mode using myeclipse ide (setup what mentioned in myeclipse remote debugger. pdf). I am getting error messages as the below as:

    clipse.buildId=M20060118-1600
    java.version=1.5.0_07
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA
    Command-line arguments: -os win32 -ws win32 -arch x86

    !ENTRY org.eclipse.jdt.launching 4 113 2006-06-12 09:35:35.645
    !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.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:134)
    at java.lang.Thread.run(Unknown Source)

    !ENTRY org.eclipse.jdt.launching 4 113 2006-06-12 09:35:59.219
    !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)

    Please give me solution for this.

    Thanks,
    Viswanathan

    #253461 Reply

    Riyad Kalla
    Member

    I am using myeclipse latest version 4.1 and eclipse latest version 3.2. But using Weblogic 7.04 service pack 4(Bea JRE 1.3.08). If i tried connect to debug mode using myeclipse ide (setup what mentioned in myeclipse remote debugger. pdf). I am getting error messages as the below as:

    This is sort of a worst-case-scenario setup. First, MyEclipse 4.1 is not compatible with Eclipse 3.2, you have to be using Eclipse 3.1 (I’m surprised it’s running to be honest, there were a lot of API changes in 3.2).

    Second, in order to use debugging your VM running both Eclipse and your App Server must be version 1.4 or later, that is because of the requirement for the JSR-45 (Debugging) spec that we support. So you most likely won’t get debugging working with that app server.

    Lastly, debugging in MyEclipse doesn’t work this way when you launch the app server from within MyEclipse. MyEclipse will actually attach the debugger to the server automatically for you. You only need to use remote debugging when you are launching the server externally to MyEclipse. Regardless, due to the JVM being 1.3, debugging will most likely not work or will be flaky if it does.

    #253511 Reply

    viswamv
    Member

    Hi there,

    Thanks for your response.

    Sorry i was mentioned eclipse 3.2. its 3.1.2. Today i was installed weblogic 8.1 service pack 2 ( Bea Jre1.4.5). Again i was did with your procedure as well remote debugger pdf also.

    Server listening port 8000(check with command prompt netstat -a), After it was debugger mode from myeclipse.

    Still i am getting error messages : “Failed to connect to remote Vm. Connection Refused”

    You know any special setup for weblogic 8.1 sp2 to debug mode. Please advice me.

    Thanks
    Viswanathan

    #253519 Reply

    Riyad Kalla
    Member

    Are you launching WebLogic from within MyEclipse? If you are, then you need re-read my last sentence:

    Lastly, debugging in MyEclipse doesn’t work this way when you launch the app server from within MyEclipse. MyEclipse will actually attach the debugger to the server automatically for you. You only need to use remote debugging when you are launching the server externally to MyEclipse.

    #253533 Reply

    viswamv
    Member

    Hi there,

    Thanks for your immd. response. I did launching the server externally to MyEclipse. Not within myeclipse.

    Any special setup is needed for weblogic 8.1 service pack 2 ?

    Thanking you in anticipation,

    Viswanathan

    #253539 Reply

    viswamv
    Member

    Hi there,

    Today again i installed weblogic 8.1 sp 5 with myeclipse 4.1(eclipse 3.1.2). Again i am getting error message “Failed to connect to remove VM. Connection refused.”

    I found one problem in myeclipse id, but i am not sure because of myeclipse or my configuration problem.

    What problem i was found?

    set JAVA_OPTIONS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

    set this environment variables, after start server. I was checked netstat -a , port 8000 is listening. After i was connect to debug in myeclipse id. After getting error message.

    I was check port no : 8000 in command centre. its showing port 8000 establishing. I dont know why? Its bug in myeclipse or my configuration problem? Please let me know.

    I was increased more ms(Time) in debug option : windows-preference-java-debug-Communication also.

    Please help me.

    Thanks
    Viswanathan

    #253568 Reply

    Riyad Kalla
    Member

    Viswanathan,
    Are you runnign Windows XP? Do you by chance have the Windows XP firewall running? You can check it by going to WIndow > Network COnnections, select your connection, right click, go to Properties, then Firewall. Try and turn it off or add a rule for opening port 8000 and see if that works.

    #253694 Reply

    viswamv
    Member

    Hi there,

    Thanks for your support and help. Its working fine.

    I removed all software and tools from my laptop. I was installed once again begining onwards jdk,weblogic, and etc. After that i was tried, its working fine. I dont know why? What i did mistake in before? Anyhave today i am very happy, because its working fine.

    Very soon, i would like to buy License MyEclipse.

    Once again Thanks for your support and help.

    Have a Nice Day!

    With Kind Regards
    Viswanathan

    #253695 Reply

    Riyad Kalla
    Member

    Viswanathan,
    While I am glad to hear it is working now, I too am confused about why it is worknig now and not before. Maybe rerunniing one of the installers reset some default value somewhere that allowed it to work? Either way, thank you for the support.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Failed to connect to remote VM. Connection refused.

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