eclipse - Failed to connect to remote VM. Connection refused. when trying to debug remote java application in Flash Builder 4.7 -
at 1 point, remote debug used work. life of me, don't seem able figure out broke it.
i have flex/java application. there wrapper starts tomcat server. modified wrapper.conf file include
-xdebug -xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
in flex debug configurations, on left, have remote java application. on right, have standard (socket attach) connection type, 127.0.0.1 (i have tried localhost too) host, , 8000 port.
the following stack trace.
!entry org.eclipse.jdt.launching 4 113 2013-09-03 11:30:49.109 !message failed connect remote vm. connection refused. !stack 0 java.net.connectexception: connection refused: connect @ java.net.plainsocketimpl.socketconnect(native method) @ java.net.plainsocketimpl.doconnect(unknown source) @ java.net.plainsocketimpl.connecttoaddress(unknown source) @ java.net.plainsocketimpl.connect(unknown source) @ java.net.sockssocketimpl.connect(unknown source) @ java.net.socket.connect(unknown source) @ java.net.socket.connect(unknown source) @ java.net.socket.(unknown source) @ java.net.socket.(unknown source) @ org.eclipse.jdi.internal.connect.sockettransportservice$2.run(sockettransportservice.java:136) @ java.lang.thread.run(unknown source)
here screen shot of debug configurations.
each debug argument must placed in line itself, after -vm argument. should trick:
-vmargs -xdebug -xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
Comments
Post a Comment