aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tomcat problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Tomcat problem" Watch "Tomcat problem" New topic
Author

Tomcat problem

Stan Forest
Greenhorn

Joined: Mar 03, 2003
Posts: 12
I am attempting the first HTML (form.html with the web.xml file) in Chapter 3 of the Head First book. It opens in a browser but not in Tomcat. The example pages downloaded with Tomcat open normally. Is there a Tomcat installation problem? Any idea what I am doing wrong?
Jyothi Pathuri
Ranch Hand

Joined: Jan 29, 2006
Posts: 30
Hi Stan,

Please check whether u have configured the web.xml file properly. check for the correct syntax of <servlet> and <servlet-mapping> tags. also in ur html form check whether the action specified is matching the url-pattern in the web.xml file. The url-pattern in web.xml should start with /
eg: <url-pattern>/SelectColor.do</url-pattern>

Regards,
Jyothi
Jyothi Pathuri
Ranch Hand

Joined: Jan 29, 2006
Posts: 30
If u r able to see the welcome page of tomcat then there are no installation problems.
Saurabh Chaubey
Ranch Hand

Joined: Oct 16, 2005
Posts: 101
Hi Stan,

Just check the directory structure of your application.

Regards,
Saurabh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat problem
 
Similar Threads
web.xml error-page problem
Image problem with JSP
Image problem with JSP
404 error
First servlet... plz help