This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes HTTP 400 Bad Request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTP 400 Bad Request" Watch "HTTP 400 Bad Request" New topic

HTTP 400 Bad Request

deepak carter
Ranch Hand

Joined: Feb 19, 2011
Posts: 165

i have just installed tomcat 6.whenever i am trying to run http://localhost:8080/ its giving me HTTP 400 Bad Request error .The services are running.

Do i need to set classpath for tomcat also..If yes then can you please let me know what classpath needs to be set.SInce i am am new in class an detailed answer would be highly apprecaited.

thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950

You haven't given enough details.

If you're attempting to start Tomcat as a Windows Service, it can be difficult to debug. It's easier to try launching it in a command window.

Tomcat sets up its own classpaths. You should set the JAVA_HOME environment variable, however so that Tomcat knows which of your installed JVMs to run under.

When you start up Tomcat in a command window, it will print out a few items to let you know what environment settings you have in effect.

Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: HTTP 400 Bad Request
Similar Threads
Exception at run time ....HTTP/1.1 400 Bad Request
webserver, 400 response
Core Java Client vs WebServer Client
Http 400 Bad request error. Please help.
Exception at run time ....HTTP/1.1 400 Bad Request