Hi, I installed Tomcat4.1.24. I could load jsp files in TOMCAT_HOME/webapps/ROOT directory into browser like this: http://localhost:8080/sample.jsp but HTML files in ../ROOT dir cannot be loaded. but I could not load servlets classes from TOMCAT_HOME/webapps/ROOT/WWEB-INF/classes into the brwowser: http://localhost:8080/servlet/myservlet I had no problem to load servlet classes when I was using Tomcat4.0.1. I am wondering what is wrong with it. Thanks, Rick
You should be able to address html files in the ROOT directory with http://localhost:8080/thefile.html (ROOT = "/") The reason you can't use the /servlet/ URL nomenclature is that Tomcat 4.24 has the "invoker" servlet turned off by default - the opposite of most earlier Tomcats. Search for "invoker" in the TOMCAT-HOME/conf/web.xml file for a discussion. Bill
I have the same question, I found the "invoker" in the TOMCAT-HOME/conf/web.xml file,but how can I turn it on?
Joined: Jun 21, 2003
Turn it on ,just like this? <servlet-mapping> <servlet-name>invoker</servlet-name> <url-pattern>/servlet/*</url-pattern> </servlet-mapping> But I still can't load servlet class after restart the server. Anybody can help me? thanks!
Author and all-around good cowpoke
Joined: Mar 22, 2000
Where did you put the compiled class and how did you try to address it? Bill
subject: trouble loading servlet class on Tomcat4.1