File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes trouble loading servlet class on Tomcat4.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "trouble loading servlet class on Tomcat4.1" Watch "trouble loading servlet class on Tomcat4.1" New topic
Author

trouble loading servlet class on Tomcat4.1

rick collette
Ranch Hand

Joined: Mar 22, 2002
Posts: 208
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
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
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
newworld kingdom
Greenhorn

Joined: Jun 21, 2003
Posts: 10
I have the same question, I found the "invoker" in the TOMCAT-HOME/conf/web.xml file,but how can I turn it on?
newworld kingdom
Greenhorn

Joined: Jun 21, 2003
Posts: 10
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!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
Where did you put the compiled class and how did you try to address it?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trouble loading servlet class on Tomcat4.1