Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem running a packagless servlet using Tomcat 4.1.27

843841Jan 30 2004 — edited Jan 30 2004
Hi,
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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 27 2004
Added on Jan 30 2004
3 comments
122 views