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 Need help in installation of tomcat5.0.28 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Need help in installation of tomcat5.0.28" Watch "Need help in installation of tomcat5.0.28" New topic
Author

Need help in installation of tomcat5.0.28

Rekha Gaikwad
Ranch Hand

Joined: Jul 25, 2005
Posts: 36
I run the tomcat5.0.28.exe on machine ..it installed tomacat ..
I put test directory in webapps folder. whenever i tried to access the http://localhost:8080/test/form.html it gived http status 404 error.

Actually first time when i installed tomcat it used to access the file but it wasn't running servlets so i uninstall it and install it again.

can u tell me whats going wrong?

windows xp is the platform.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12271
    
    1
I put test directory in webapps folder.

Did you also create the rest of the directory structure required for Tomcat to recognize that "test" is a web application?
Look at the examples provided in the Tomcat installation - for a directory placed under webapps to be recognized as a web application, it must contain a WEB-INF directory that holds a web.xml file. Otherwise Tomcat will not serve files or servlets from the directory.
Bill


Java Resources at www.wbrogden.com
Rekha Gaikwad
Ranch Hand

Joined: Jul 25, 2005
Posts: 36
thanks William..It worked. I misspelled the directory name web-inf.

And I would like to thanks u once gain for ur book "Java Cram" for SCJP1.4
I used that book and solve the mock exams,which I find bit difficult in the begining but helped a lot. I scored 91% in SCJP.

Do u have any book published for Web component developer exam or mock exam collection?

Thanks once again,
Rekha
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Need help in installation of tomcat5.0.28
 
Similar Threads
HFSJ example error
accessing html file under tomcat
HTTP status 404
Head First Servlets and JSP - Ch 3
Problem with Tomcat 5