What is the URL by which you are trying to call up the servlet?

Vladislav Y. Ryabyshkin wrote:

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]


-- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email:[EMAIL PROTECTED] web: www.volume4.co.za

This message contains information that is considered to be sensitive or confidential 
and may not be forwarded or disclosed to any other party without the permission of the 
sender. If you received this message in error, please notify me immediately so that I 
can correct and delete the original email. Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to