Problems getting servlets to work on Tomcat 4
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Craig_Angus
Posted On:   Wednesday, March 26, 2003 03:47 AM

I am having problems getting servlets to work on my host server. I am using apache/tomcat 3 as my development server and the host is using apache/tomcat 4. They have setup tomcat to pick up servlets in the following folder   www.drumpellier.com/public_html/jserv I have tried putting a simple HelloWorld servlet in   www.drumpellier.com/public_html/jserv/WEB-INF/classes/ folder which worked fine, but when I upload the my files to the server I cant get any servlets to work. I am hitting a servlet called Controller from the following link.   www.drumpellier.com/jserv/servlet/com.golfclub.Controller?HsMethod=1 Which then produces the following err   More>>

I am having problems getting servlets to work on my host server.

I am using apache/tomcat 3 as my development server and the host is using apache/tomcat
4.


They have setup tomcat to pick up servlets in the following folder


  www.drumpellier.com/public_html/jserv


I have tried putting a simple HelloWorld servlet in


  www.drumpellier.com/public_html/jserv/WEB-INF/classes/


folder which worked fine, but when I upload the my files to the server I cant
get any servlets to work.


I am hitting a servlet called Controller from the following link.


  www.drumpellier.com/jserv/servlet/com.golfclub.Controller?HsMethod=1



Which then produces the following error


************************************************


HTTP Status 404 - /jserv/servlet/com.golfclub.Controller


With the description as:


description The requested resource
(/jserv/servlet/com.golfclub.Controller) is not available


************************************************


The servlet is in the following folder:


  www.drumpellier.com/public_html/jserv/WEB-INF/classes/com/golfclub/Controller.class





************************************************


<?xml version="1.0" encoding="ISO-8859-1"?>


2.3//EN"

"http://java.sun.com/dtd/web-app_2_3.dtd">



 

   Controller

    com.golfclub.Controller

  


  

    Controller

    /com.golfclub.Controller

  


**************************************************


I just want to make sure that everything I have done is correct.


I think the host may not be picking up the com, golfclub, folders, but I'm
not sure.


Would it be better to create a war file and put it in the classes folder?


Any help greatly appreciated as Im totally stuck!


Craig

   <<Less

Re: Problems getting servlets to work on Tomcat 4

Posted By:   vinay_salehithal  
Posted On:   Wednesday, March 26, 2003 10:32 AM

Have u tried accessing the servlet as:

www.drumpellier.com/jserv/com.golfclub.Controller?HsMethod=1
About | Sitemap | Contact