Why do I get a "Bad Gateway Error" in Tomcat 4.0?
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mary_Varughese
Posted On:   Thursday, April 26, 2001 11:52 AM

I am trying to startup a tomcat standalone server version 4.0-b3. After calling startup.sh, if I try, http://host:8080/webdav, I get a 502 Bad Gateway Error. Also, when I call shutdown.sh, I get the following exception: java.lang.NullPointerException at org.apache.catalina.connector.http.HttpConnector.run(Compiled Code) at java.lang.Thread.run(Thread.java:479) Catalina.stop: LifecycleException: Container has not been started LifecycleException: Container has not been started Why is this happening? Could it be that the port is not available? If so why am I not getting a bind error like "port already in use". Thanks.    More>>

I am trying to startup a tomcat standalone server version 4.0-b3.
After calling startup.sh, if I try, http://host:8080/webdav, I get a 502 Bad Gateway Error. Also, when I call shutdown.sh, I get the following exception:
java.lang.NullPointerException
at org.apache.catalina.connector.http.HttpConnector.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Catalina.stop: LifecycleException: Container has not been started
LifecycleException: Container has not been started

Why is this happening? Could it be that the port is not available?
If so why am I not getting a bind error like "port already in use".

Thanks.

   <<Less

Re: Why do I get a &quot;Bad Gateway Error&quot; in Tomcat 4.0?

Posted By:   alan_kang  
Posted On:   Tuesday, October 1, 2002 10:17 PM

If you are using IE, check that the "Automatically detect settings" option for LAN settings (Internet Options) is turned off

Re: Why do I get a &quot;Bad Gateway Error&quot; in Tomcat 4.0?

Posted By:   Alex_Chaffee  
Posted On:   Sunday, May 6, 2001 04:37 PM

Please report the NullPointerExceptio to http://jakarta.apache.org/site/bugs.html as a bug. Include as much detail as you can.


The 502 is odd; you may want to ask on the tomcat-user mailing list.

Re: Why do I get a &quot;Bad Gateway Error&quot; in Tomcat 4.0?

Posted By:   Anonymous  
Posted On:   Friday, May 4, 2001 05:27 PM

The 502 Bad Gateway it's a standard httpd response. It doesn't look like coming from a firewall, but it could be.

What it looks wierd is the second error, the LifecycleException. That message clearly states that the "Container" hasn't been started, and the shutdown listener is not listening.

Your idea of the port not available could be valid. If the port that Tomcat uses for shutting the server down is already in use, then you should get the "port already in use" message, unless the output it's not captured (have you the debug flag set?) or not sent to the console.

Normally if one port is already in use, the entire server cannot start and, then, when you try to shutdown you get a "Connection Refused" exception. But if the port in use is the sutdown port, then the message that you're getting could almost make sense because the shutdown client it's trying to talk with something and it's getting a wrong answer back, so it's assuming that the Container is not there (It's just a theory, don't shoot at me, please).

Maybe, the problem could be just a typo in the server.xml configuration file, have you changed id?

I've never installed Tomcat 4, so I've ran out of ideas.

Regards.

Re: Why do I get a &quot;Bad Gateway Error&quot; in Tomcat 4.0?

Posted By:   Luigi_Viggiano  
Posted On:   Friday, May 4, 2001 03:16 PM

It can happen if there is a firewall blocking to http://host:8080/webdav. Check firewall configuration and let us know.
About | Sitemap | Contact