Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet problem in Tomcat

 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having problems accessing a servlet in Tomcat. I have declared the package name of the servlet class to be
com.ernieboy.aoot.rapid_comp;
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.
 
Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are you writing as URL ?
do you write:
http://localhost:8080/YourWebAppName/servlet/com.ernieboy.aoot.rapid_comp
 
ernest fakudze
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 www.kattare.com. 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic