eclipse中以debug方式启动tomcat报错

在eclipse中debug  Tomcat报错,错误如下:

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

ERROR: transport error 202: connect failed: Operation timed out

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:750]

 

错误原因是本地的host配置中没有加上127.0.0.1 localhost

 

posted @ 2016-01-19 23:16  SonoFelice  阅读(2721)  评论(0编辑  收藏  举报