I trying to get into the world of J2EE, building my own Servlet, and it seems not so smooth and easy... I need help.
I working with the Intellij environment , I open New Project -> web service->Apache Axis. Everything was great. But then, I added
my own MyServlet extends HttpServlet , put a breakpoing in "my init()" and "my doGet()" and was expecting, execute the server (apache)
and expected to see the program stop on my breakpoint, but nope.
Can somebody help me? I guess the problem is the definition in web.xml, but I dont know how to change it.
Here is my current xml:
Change? No, the problem is that you don't have a definition in that web.xml file for your MyServlet class. You have to put one in there. Hint: it should look like the other ones which are already there.
You do not need all that web services crap clogging things up and getting in the way. It's just going to make things that much harder to get going.
My recommendation is to grab a copy of the Servlet Specification and read it from cover to cover before proceeding any further. It's a surprisingly easy read and will let you know what's what with regards to servlets.