The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Head First Servlets and JSP -Program not running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply locked New topic

Head First Servlets and JSP -Program not running

Jones Iraland
Ranch Hand

Joined: Sep 15, 2007
Posts: 36
I started studying for SCWCD

I brought the 2nd edition of Head First Servlets and JSP.

Alas..I typed the first program in page 30 sample servlet program called "Ch1Servlet"

I followed each step according to the book but it does not run as book says.

I have to create a new folder inside Tomcat 5.0 folder and save my work.
But if i put my program in servlet example folder which is insatalled with Tomcat and if i change that web.xml ,my program runs.

Have any of you got an idea what's happenning?

Thanks & Regards,


Jones Iraland
Ranch Hand

Joined: Sep 15, 2007
Posts: 36
Sorry i posted in wrong forum.
Bert Bates

Joined: Oct 14, 2002
Posts: 8898
Hey Jones,

No worries, let's slide this over to the SCWCD forum.


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Nabila Mohammad
Ranch Hand

Joined: Nov 05, 2007
Posts: 661
I am not sure what you mean.
CAn you be more clear about it.

Where are you saving your applications.
I guess in HFSJ its mentioned to save your applications in Tomcat5.5/webapps/ch1(created by you) folder and it worked fine...

The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Closing this thread. Continue there. (Bert moved this thread for you, so you didn't have to make a new one.)

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Head First Servlets and JSP -Program not running
It's not a secret anymore!