aspose file tools*
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 Soft Skills 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
Author

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
eived
-----------------------
stuck again ....

Bosun Bello
Ranch Hand

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

Bosun

Bosun (SCJP, SCWCD)
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
------------------

SCJO, SCJD, SCWCD, I-Net+, A+, Network+, MCSD, MCDBA, MCP, MCT
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
    
    6
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 - http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jakarta-tomcat-4.0.1.zip
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
------------------
Simon Brown
Co-author of Professional JSP 2nd Edition
Vincent Hindriksen
Greenhorn

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
Sheriff

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: tomcat running but gives an Invalid HTTP get error