Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat running but gives an Invalid HTTP get error

 
mansoor iqbal
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this http://localhost:8080/servlet/yourservletclass

Bosun
 
mansoor iqbal
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bosun: didnt work!
 
Ray Smilgius
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic