[Logo]
Forums Register Login
servlets
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
Try to create a WAR file (which is a jar file but with extension war) paste the war file in webapps, it should work.
how to make a war file
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.
That's a very big dog. I think I want to go home now and hug this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss


This thread has been viewed 1160 times.

All times above are in ranch (not your local) time.
The current ranch time is
Jul 20, 2018 16:22:32.