I am using webappcabaret to learn
servlets and I have created some servlets successfully when I place them directly under my context name in the directory WEB-INF/classes but when I try to put servlets in a directory under classes it won't work.
For example I created a TestServlet that just prints out a message and type this in the address bar:
www.webappcabaret.com/amberw/servlet/Test.TestServlet. The error that I got was this:
Error: 500
Location: /amberw/servlet/Test.TestServlet
Internal Servlet Error:
java.lang.NoClassDefFoundError: Test/TestServlet (wrong name: TestServlet)
...plus a bunch more junk
I don't know what I am doing wrong. I am not sure if I need to put something in web.xml or not.
Any Help is appreciated
Thanks - Amber