AnsweredAssumed Answered

Failed to connect to remote VM. Connection refused

Question asked by cristina on Oct 8, 2009
Latest reply on Apr 30, 2010 by openpj
Buongiorno,quando tento di effettuare il debug ricevo il seguente errore

Failed to connect to remote VM. Connection refused. Connection refused: connect
at Method)
at Source)
at Source)
at Source)
at Source)
at Source)
at Source)
at<init>(Unknown Source)
at<init>(Unknown Source)
at org.eclipse.jdi.internal.connect.SocketTransportService$
at Source)

java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

Questi sono gli steps che ho fatto per configurare Eclipse e Tomcat

1)In the eclipse window, click on the debug icon, select "Remote Java Application" from the list of configurations. Right click on the "Remote Java Application" and create a new configuration for your application.

On the right hand side, there will be three tabs, namely "Connect" ,"Source" and "Common". Click on the "Connect" tab and set the connection properties, host as "localhost" and port as "8000".

2) In the enviornment variables, add an entry jpda_address=8000;This is the default connection port used by eclipse when you try to connect to a remote VM for debug.

3)Open catalina.bat (inside the bin folder of tomcat) and search for "set JPDA_TRANSPORT". Set the value to dt_socket.

4)Open startup.bat(inside the bin folder of tomcat) and search for call "%EXECUTABLE%" start %CMD_LINE_ARGS%. Its at the end of the file. Replace this with call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS% (mind the spaces, better copy and paste).

5)Save the changes and start the tomcat server using its startup.bat file. The first line appearing on the server window should be "Listening for transport dt_socket at address: 8000.

le versioni sono
Alfresco 3.2
Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832

Il firewall non è attivo
Il tutto gira su una Virtal machine con Windows XP installato

Poteste cortesemente aiutarmi  :idea:  :!:  :?: