views:

773

answers:

2

Hi all!

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  A: 

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)

VonC
Hi VonC! It's a normal localhost connection, everything is the same, only it's changed the JAVA_HOME (I checked it out and it's correct).I'll take your second advice and compare the command line (and associated environment) with the ProcessExplorer when I could do it. Thanks!
ATorras
A: 

Hi,

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.

ATorras