|Eclipse fails to monitor embedded tomcat [message #662233]
||Tue, 29 March 2011 15:28
| Eric Chavet
Registered: March 2011
WTP drives me crazy:
I'm using Helios Service release 2 with tomcat 7 on Mac OSX.
I can't start my embedded tomcat server because Eclipse does not monitor it correctly. The server does start-up but Eclipse still waits for it to start-up and then stops it when the timeout occurs.
The server remains usable as far as the timeout does not occur. I have tried with Tomcat 6, with other ports but no success.
|Re: Eclipse fails to monitor embedded tomcat [message #662242 is a reply to message #662234]
||Tue, 29 March 2011 16:09
| Larry Isaacs
Registered: July 2009
On 3/29/2011 3:34 PM, Eric Chavet wrote:|
> I'm so stupid! :lol:
> I had changed the Server Host Name thinking it was a logical name but
> that was its network name! It had to be "localhost".
> Sorry for the message.
It doesn't have to be "localhost", but for whatever is specified for the
host name, then the equivalent of the following Java code has to be
successful in establishing a connection and not throw an exception prior
to the timeout:
URL pingUrl = new URL("http://<host_name>:<port>");
URLConnection conn = pingUrl.openConnection();
In the default configuration for Tomcat, the <Host> element is
configured for "localhost" in the server.xml. I believe this would
imply that the host_name you specify will need to resolve to "localhost"
for this to work. It it can, I would expect that host_name to
successfully detect the Tomcat start up.
Powered by FUDForum
. Page generated in 0.01469 seconds