Hi,
When I try to run eclipse debugger, I am getting the error:
Failed to connect to remote VM. Connection refused
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
this are Steps for Debugging from within Eclipse that I made
1)In the eclipse window (Run/Debug configuratio),I selected "Remote Java Application" from the list of configurations and with Right click on the "Remote Java Application" and I created a new configuration as following
On the "Connect" tab I set the connection properties with values host as "localhost" and port as "8000".
2) In the enviornment variables, add an entry jpda_address=8000;
3)In catalina.bat . I wrote " set JPDA_TRANSPORT = dt_socket ".
4)In startup.bat I wrote comand call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
development enviroment:
-Alfresco 3.2 is installed on the Virtual machine with firewall disabled .The OS is WXP
-Eclipse Java EE IDE for Web Developers. Build id: 20090621-0832
:?: :!: :idea:
Thanks a lot in advance