Hello!
Hope I am not sending a faq.
I run Tomcat 4.1.18, JVM 1.4.1_02-b06. It works, I can view examples servlets.
But I cannot make a hand-made Hello World servlet available via URL!
I created a directory webapps/mytest2/WEB-INF/classes, containing the MyTestServlet2.class (it is this Hello World class) and I have the webapps/mytest2/WEB-INF/web.xml file and an entry in conf/server.xml.
Still this is what I get from the logs:
...
2004-07-29 12:52:54 StandardContext[/mytest2]: Mapping contextPath='/mytest2' with requestURI='/mytest2/MyTestServlet2' and relativeURI='/MyTestServlet2'
2004-07-29 12:52:54 StandardContext[/mytest2]: Trying exact match
2004-07-29 12:52:54 StandardContext[/mytest2]: Trying prefix match
2004-07-29 12:52:54 StandardContext[/mytest2]: Trying extension match
2004-07-29 12:52:54 StandardContext[/mytest2]: Trying default match
2004-07-29 12:52:54 StandardContext[/mytest2]: Mapped to servlet 'default' with servlet path '/MyTestServlet2' and path info 'null' and update=true
...
And a 404-Error.
There is a mystery though.
If I construct an index.jsp with a
<jsp:forward page="/mytest2/MyTestServlet2"/>, I get it working ('extension match' in the log succeeds). But I don't want a JSP, I need a servlet directly-mapped!
Can anyone please suggest what do I do wrong? Something silly perhaps, but it took plenty of time, and I am at a loss.
I'd appreciate any help, good luck, Vlad.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
