Forums Register Login

First servlet error message

+Pie Number of slices to send: Send
Hi - I am new to dynamic web developement and started my first servlet exactly like taught in video link below.

https://www.youtube.com/watch?v=EOkN5IPoJVs

when I started localhost with path /myapp/hello

I am getting error
HTTP Status 500 - Wrapper cannot find servlet class org.javatrainer.HelloServlet or a class it depends on

Please help resolve this error.









+Pie Number of slices to send: Send
Please check in your web.xml to verify again how do you map you servlet of 'HelloServlet' to context path '/hello', because of it is too much simple, should be very quick to fix.
+Pie Number of slices to send: Send
Thanks for the reply. I checked web.xml and it is like below


It seems like web.xml is correct and still I get the error msg
+Pie Number of slices to send: Send
Is the class file for the servlet in the right place? It needs to be under the proper package hierarchy in WEB=INF/classes.

Do the next thing next. That’s a pretty good rule. Read the tiny ad, that’s a pretty good rule, too.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 616 times.
Similar Threads
HTTP Status 404 error in tomcat
Youtube thread
Need help with Instance Variable and fields
first robotics - a mobius strip award
HTTP Status 404 - /myapps/helloworldservlet
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:01:26.