Eclipse 3.x unable to debug tomcat 5.5 with java 1.6.0_14?

佐手、 提交于 2019-12-24 08:03:18

问题


I'm trying to launch and debug tomcat 5.5 with a webapp in java 6.

I have set up JAVA_HOME in the tomcat's eclipse configuration (in "replace environment" mode) but I get the following error:


ERROR: transport error 202: gethostbyname: unknown host

ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)

JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)


If I launch directly the startup.bat, it works fine.

Does anybody managed to solve it?

Thanks!


回答1:


Is this a firewall issue?

Otherwise you need to compare:

  • the command line used by the eclipse launcher and
  • the one generated by the startup.bat

(through a tool like ProcessExplorer for instance)




回答2:


I was facing the same issue

adding

-vm C:\Program Files\Java\jdk1.7.0_71\jre\bin\javaw.exe (path of javaw.exe)

in eclipse.ini file make its work




回答3:


I finally deleted the tomcat configuration and created a new one, with a proper server (tomcat 5.5 + jdk 6) and then everything worked fine.

I suppose the configuration had something wrong...

I mark VonC's answer as the correct for his useful hints.



来源:https://stackoverflow.com/questions/1057376/eclipse-3-x-unable-to-debug-tomcat-5-5-with-java-1-6-0-14

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!