File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet problem in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet problem in Tomcat" Watch "Servlet problem in Tomcat" New topic

Servlet problem in Tomcat

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
I am having problems accessing a servlet in Tomcat. I have declared the package name of the servlet class to be
Of course, i then have this structure in my WEB-INF/classes directory.
Problem is that whenever I try to access the Servlet online I get an error msg saying that the servlet is currently unavailable. Why is this? It works fine when I'm running it locally in localhost.

In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
what are you writing as URL ?
do you write:
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
yes, I am. However, I've been thinking more about the problem and I think that it's because the server (Tomcat)needs to be restarted by my host in order for my servlets to load up. I have emailed support about this. Remember that this app works ok locally (locahost) but when i move it up the the kattare servers, then it tells me that the servlet is currently unavailable. In fact, none of the servlets which i upload will run online. Thanks.
I agree. Here's the link:
subject: Servlet problem in Tomcat
It's not a secret anymore!