Problem running a packagless servlet using Tomcat 4.1.27
843841Jan 30 2004 — edited Jan 30 2004Hi,
I am trying to run a simple servlet (Packageless)using Tomcat 4.1.27. I have tested Tomcat container whether working or not. JSP and HTML applications work fine except servlet. I did not find any compilation error either while I have compiled the servlet. Here, what I did:
1. HelloSerlet.java - compiled and put "HelloServlet.class" into ..install_directory/webapps/ROOT/WEB-INF/classes directory
2. Then I started the Tomcat, I saw some messages in the command window like:
"org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config=' org.apache.struts.action.ActionResources', returnNull=true"
3. URL to access the servlet I used :
"http://localhost/servlet/HelloServlet"
4. Message I got: "The requested resource (/servlet/HelloServlet) is not available."
Can anyone helpme in this issue.? I need it badly. I was following "More Servlets" as a reference book.
sincerely,
Kamrul Anwar