I wrote a very simple servlet and placed it in folder: tomcat\webapps\ROOT\WEB-INF\classes\
I read there is no need to mention such servlet in web.xml. So, I didn't.
Still, I am unable to invoke my simple servlet What am I missing? Please guide me.
Port etc. are correct. I am able to invoke other servlets.
What is a simple servlet?
What Tomcat version?
What Servlets version?
Where did you read that you don't need to mention it in web.xml? Did you use annotations?
OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD, Spring 3.0 Core Professional.
Nope. That's like saying smoking is a good idea "to learn". Bad habit. Don't even start.
You learn nothing by using the Invoker -- you simply get used to doing things in a way that has been demonstrated to be a bad practice. And in doing so, avoid learning how to map servlets the correct way.
By saying, "Good idea - to learn", I meant:
- learnt that there exists (tomcat v5.5.31.0) something called InvokerServlet
- learnt that there exists a way to invoke servlets through such URL
- learnt how bad such practice is (the curiosity made me read the article here and explore more about InvokerServlet at few other places as well)
I noticed, my replies were abstract! Many thanks for your replies!