Nicola - Read the thread from yesterday with the titles "Can't find servlet" - I had 
the exact same problem, it has to do with the invoker servlet - you need to add 
specific mappings in your web.xml file for each servlet, and disable the mappings for 
the invoker servlet under /conf/web.xml, it is a security fix from 4.1 and up I 
believe...

(with thanks to John turner again....)

Geoff

-----Original Message-----
From: Nicola Galante [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 11:29 AM
To: Tomcat User List
Subject: servlet with Tomcat


I will expose you a problem I found with Tomcat 4.1.18 but first is 
better if I describe to you what's happened. System administrators of my 
department installed J2SDK 1.4.1 and Tomcat 4.1.18 in a local machine. 
After that I have setted the enviroment variables CATALINA_HOME to the 
install_dir of Tomcat and JAVA_HOME to the install_dir of J2SDK1.4.1 
classes. Then I can start Tomcat using the script 
$CATALINA_HOME/bin/startup.sh (it is a Linux machine) and I can see the 
local home page
$CATALINA_HOME/webapp/ROOT/index.html
browsing http://localhost:8080/ .
I can see aslo the example servlets situated at 
$CATALINA_HOME/webapp/examples/WEB-INF/classes/  browsing 
http://localhost:8080/examples/servlet/ServletName
but I cannot see servlets situated in the usual work directory
$CATALINA_HOME/webapp/ROOT/WEB-INF/classes
browsing http://localhost:8080/servlet/ServletName
(I'm just a beginner of JSP technology and this is what I found in a JSP 
manual that I should do). I mean that if I create any my servlet file 
called MyServlet.class and I put it in the directory
$CATALINA_HOME/webapp/examples/WEB-INF/classes/
I can see it, but I canno see it If I put it in the directory
$CATALINA_HOME/webapp/ROOT/WEB-INF/classes.
I can also tell you that I can see any html page situated at
$CATALINA_HOME/webapp/ROOT/MyPage.html
browsing http://localhost:8080/MyPage.html

Do you think this is a problem of configuration of Tomcat? How can I 
have a dedicated directory for my servlet classes?

I send to you this mail because I'm just a beginner of servlets and 
Tomcat, and system administrators of my department told me that they 
never used Tonmcat before now, so they cannot (or they don't want to) 
help me.

I would be very please to you if someone of you could help me.

Thanks

Nicola

-- 
-------------------------------------------
Nicola Galante
Universita' degli studi di Siena -- ITALY
Tel. (PD) (+39) 049 827 7214
e-mail: [EMAIL PROTECTED]
-------------------------------------------



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


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

Reply via email to