• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tomcat running but gives an Invalid HTTP get error

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ....

 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
bosun: didnt work!
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
------------------
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Tomcat forum
 
reply
    Bookmark Topic Watch Topic
  • New Topic