Buongiorno,quando tento di effettuare il debug ricevo il seguente errore
Failed to connect to remote VM. Connection refused.
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:136)
at java.lang.Thread.run(Unknown Source)
eclipse.buildId=I20090611-1540
java.version=1.6.0_16
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
alfresco-labs-sdk-3a.1032
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: :!: :?:
grazie1000
Cris