File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 17423

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: HTTP 400 Bad Request
It's not a secret anymore!