File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat running but gives an Invalid HTTP get error 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 "tomcat running but gives an Invalid HTTP get error" Watch "tomcat running but gives an Invalid HTTP get error" New topic

tomcat running but gives an Invalid HTTP get error

mansoor iqbal
Ranch Hand

Joined: Aug 14, 2000
Posts: 91
my tomcat is finally running..BUT
how do i know this?.....a DOS java screen opens up which shows all the requests being made from the browser to the server.. the output is as follows:
Starting service Tomcat-Apache
Apache Tomcat/4.0
StandardServer.await: Invalid command 'GET / HTTP/1.1' received
in the output above lies yet my problem ...
every request i make, the tomcat gives me the last line as error
the above error is when i just type in : http://localhost:8080
no show ... nada ... i get the error and no page gets displayed.
tomcat says the the folder \webapps is the folder that is mapped as the virtual folder ... and the sub folder .\root has an index.htm file which says that if i can view this page i know tomcat is running...
i have also tried http://localhost:8080/webapps/root/index.htm
nope..nien .. niet ... the error i get is:
StandardServer.await: Invalid command 'GET /webapps/root HTTP/1.1' received
StandardServer.await: Invalid command 'GET /webapps/root/index.htm HTTP/1.1' rec
stuck again ....

Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
Try this http://localhost:8080/servlet/yourservletclass


So much trouble in the world -- Bob Marley
mansoor iqbal
Ranch Hand

Joined: Aug 14, 2000
Posts: 91
bosun: didnt work!
Ray Smilgius
Ranch Hand

Joined: Jan 29, 2001
Posts: 120
Hate to say it, but you should reinstall the tom-cat and you can also check your server.xml and check to see what the paths are. But, to be safe reinstall it and it will probaly resolve itself. Also are you installed on C: or another drive???
Good luck
Ray Smilgius

Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Which version of Tomcat are you using and how are you installing it? I find the easiest way is to get the .ZIP file and simply unextract it.
Here's a link to Tomcat 4.0.1 -
To run, simply set JAVA_HOME (e.g. set JAVA_HOME=c:\jdk1.3) and then run bin\startup.bat in the Tomcat installation directory (e.g. c:\jakarta-tomcat-4.0.1\bin\startup.bat).
All the best
Simon Brown
Co-author of Professional JSP 2nd Edition
Vincent Hindriksen

Joined: Jun 20, 2006
Posts: 1
The answer is easy. you are talking to the wrong port. Probably you have edited the server.xml
There are 2 ports (port="8080" and a port="???") mentioned. Try the other.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Moving to the Tomcat forum

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: tomcat running but gives an Invalid HTTP get error
It's not a secret anymore!