aspose file tools*
The moose likes Tomcat and the fly likes Problems getting servlets to work with inovoker servlet disabled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problems getting servlets to work with inovoker servlet disabled" Watch "Problems getting servlets to work with inovoker servlet disabled" New topic
Author

Problems getting servlets to work with inovoker servlet disabled

Craig Angus
Greenhorn

Joined: Mar 26, 2003
Posts: 8
I have a servlet in the following directory
D:\ApacheGroup\jakarta-tomcat\webapps\golf_club_dev\WEB-INF\classes\com\golfclub\Controller.class
My web.xml is

and I am calling the servlet as follows
http://localhost/golf_club_dev/Controller?HsMethod=1
when I call the servlet I get the http 404 file not found error.
I cannot figure out why this is happening?
Any idea anyone?
Thanks,
Craig
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Do you have any System.out.println or other indication that the init method of the servlet is being called? How about the doGet method?
Bill
Craig Angus
Greenhorn

Joined: Mar 26, 2003
Posts: 8
the only line I that appears in tomcat when calling the servlet is the following line
2003-04-04 05:02:59 - Ctx( /golf_club_dev ): 404 R( /golf_club_dev + /Controller
+ null) null

so I dont think it is hitting the servlet at all,
there is no init method in my servlet. the servlet is used for redirecting pages, it uses the HsMethod for switch statement to redirect to the correct page.
It was working fine when I had the Invoker Servlet defined in the server.xml, but since I have commented out the invoker servlet line
[code]
<RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/servlet/"/>
[code]
I have a lot of system,out.println's in the doGet method within the switch statement, but they dont appear.
I think it is more a set up problem, because if you mispell the HsMethod (HSMETHOD) no error occours, which happened when the when I had the Invoker Servlet defined in the server.xml
It seems that tomcat is unaware of the presence of the actual servlet
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems getting servlets to work with inovoker servlet disabled