|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 http://www.drumpellier.com/public_h...EB-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. http://www.drumpellier.com/jserv/se...ller?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: http://www.drumpellier.com/public_h...ontroller.class and the web.xml is in the following folder http://www.drumpellier.com/public_h...WEB-INF/web.xml the web.xml referring to this servlet is as follows ************************************************ <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <servlet> <servlet-name>Controller</servlet-name> <servlet-class>com.golfclub.Controller</servlet-class> </servlet> <servlet-mapping> <servlet-name>Controller</servlet-name> <url-pattern>/com.golfclub.Controller</url-pattern> </servlet-mapping> </web-app> ************************************************** 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 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Problems getting servlets to work on Tomcat 4 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|