Server Starting... Tomcat 6 on 127.0.0.2 [message #230953] |
Fri, 01 May 2009 17:05  |
Eclipse User |
|
|
|
I have an interesting problem with WTP Servers. I setup localhost aliases
in my hosts file as follows:
127.0.0.2 www.domain.jf
I then set my server.xml connector node to address 127.0.0.2 on port 80
and saved it. I have included the relevant parts of server.xml here.
<Connector connectionTimeout="20000" address="127.0.0.2" port="80"
protocol="HTTP/1.1" redirectPort="8443"/>
<Engine defaultHost="www.domain.jf" name="Catalina">
<Host appBase="webapps" autoDeploy="true" name="www.domain.jf" ...
I started the server through eclipse WTP, it starts as expected, and
responds perfectly in a browser.
INFO: Starting Coyote HTTP/1.1 on http-127.0.0.2-80
May 1, 2009 1:58:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 76949 ms
However it never leaves the server starting state. At the end of the
startup timeout which is really really high, it kills the server.
I assume it is because it doesn't properly attempt a connection to the
correct server, but I don't know how else to tell it, "hit 127.0.0.2:80".
My WST server core is version 3.0.4.v20090115-20Am8s733J3_4F1256
- Joshua
|
|
|
|
|
Re: Server Starting... Tomcat 6 on 127.0.0.2 [message #231012 is a reply to message #231004] |
Mon, 04 May 2009 09:20  |
Eclipse User |
|
|
|
Mauro Molinari wrote:
> jfrank ha scritto:
>> I am beginning to think that localhost is just assumed. Could someone
>> confirm this? I tried installing a virtual adapter and registered
>> 192.168.0.1, again tomcat doesn't care but WTP Servers won't detect
>> the started server. Loads up great in a browser, until it times out
>> and gets killed.
>
> What can I say is that I had a similar problem in the past when trying
> to completely disable the HTTP connector to keep only the HTTPS
> connector: Eclipse wouldn't ever realize that the server had been
> properly started. At last I gave up and enabled back the HTTP connector.
>
> Mauro.
The problem is that TomcatServerBehavior is currently hard coded to ping
"http://localhost". Feel free to open a bug against the WTP Server
Tools jst.server component.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 0.05421 seconds