Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "HTTP 400 Bad Request" Watch "HTTP 400 Bad Request" New topic
Author

HTTP 400 Bad Request

deepak carter
Ranch Hand

Joined: Feb 19, 2011
Posts: 165
Hi,

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: 15662
    
  15

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: http://aspose.com/file-tools
 
subject: HTTP 400 Bad Request
 
Similar Threads
webserver, 400 response
Exception at run time ....HTTP/1.1 400 Bad Request
Http 400 Bad request error. Please help.
Core Java Client vs WebServer Client
Exception at run time ....HTTP/1.1 400 Bad Request