Two Laptop Bag*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "servlets" Watch "servlets" New topic
Author

servlets

Sabber bhatia
Ranch Hand

Joined: Jun 27, 2006
Posts: 59
Hello there,
i am having a problem in deploying srvlets.
My problem is when i am creating a folder name ch1 in

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ch1

And then in ch1 i copied web-inf folder from
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\servlets-examples\WEB-INF
and paste in my folder and then put my class file in classes folder and then edit web.xml
but when i am deploying its giving not finding servlet 404 error

Please tell me every step how to do

Thanks
Sabeer Bhatia
Musab Al-Rawi
Ranch Hand

Joined: Aug 06, 2007
Posts: 231
Try to create a WAR file (which is a jar file but with extension war) paste the war file in webapps, it should work.


SCBCD - SCWCD - SCJD - SCJP - OCA
Sabber bhatia
Ranch Hand

Joined: Jun 27, 2006
Posts: 59
how to make a war file
Musab Al-Rawi
Ranch Hand

Joined: Aug 06, 2007
Posts: 231
using the Jar command.
or if you are using an IDE such as Eclipse then right click on the project and choose export and follow the procedure.
 
Consider Paul's rocket mass heater.
 
subject: servlets
 
Similar Threads
HTTP Status 404 - /ch1/Serv1/
Request Resource not available.
HTTP Status 404 - /Ch1/Serv1
404 error
Compiling java file