Unable to start a tomcat debug session from Eclipse -


i'd start tomcat debug session on remote host eclipse, fails error:

failed connect remote vm com.sun.jdi.connect.spi.closedconnectionexception 

my tomcat is, think, correctly configured received debug session on port 8000:

tomcat   18771     1  1 17:18 ?        00:00:16 /usr/lib/jvm/java/bin/java -xdebug -xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -djava.rmi.server.hostname=10.30.0.17 -dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share/tomcat5/common/lib -djavax.sql.datasource.factory=org.apache.commons.dbcp.basicdatasourcefactory -djava.endorsed.dirs=/usr/share/tomcat5/common/endorsed -classpath /usr/lib/jvm/java/lib/tools.jar:/usr/share/tomcat5/bin/bootstrap.jar:/usr/share/tomcat5/bin/commons-logging-api.jar:/usr/share/java/mx4j/mx4j-impl.jar:/usr/share/java/mx4j/mx4j-jmx.jar -dcatalina.base=/usr/share/tomcat5 -dcatalina.home=/usr/share/tomcat5 -djava.io.tmpdir=/usr/share/tomcat5/temp org.apache.catalina.startup.bootstrap start 

there firewall between pc , remote server, port opened, can see these packets tcpdump on server:

17:41:17.110977 ip x.x.x.x.57010 > y.y.y.y.irdmi: s 868833744:868833744(0) win 8192 <mss 1460,nop,wscale 8,nop,nop,sackok> 17:41:17.111183 ip y.y.y.y.irdmi > x.x.x.x.57010: s 3571247457:3571247457(0) ack 868833745 win 5840 <mss 1460,nop,nop,sackok,nop,wscale 7> 17:41:17.112624 ip x.x.x.x.57010 > y.y.y.y.irdmi: . ack 1 win 256 17:41:19.113216 ip y.y.y.y.irdmi > x.x.x.x.57010: f 1:1(0) ack 1 win 46 17:41:19.114246 ip x.x.x.x.57010 > y.y.y.y.irdmi: p 1:15(14) ack 1 win 256 17:41:19.114279 ip y.y.y.y.irdmi > x.x.x.x.57010: r 3571247458:3571247458(0) win 0 

the message writtent in tomcat logs debugger failed attach: timeout during handshake

i can't figure out what's wrong dispite informations found on web.

can can me?

my server: rhel 5.9, tomcat 5.5, java 1.6

regards, robert

i solved issue : there packet inspection activated on firewall between pc , server. lets tcp packets trough, tcp handshack can occure, block data tcp packet.

as understand, first, tcp connection made, application handshake done java server tcp data packet. data packet filtered firewall, application handshake not been completed, , application close tcp connection sending fin packet.

regards, robert


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -