This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes accessing classes save in shared/classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "accessing classes save in shared/classes " Watch "accessing classes save in shared/classes " New topic

accessing classes save in shared/classes

pratibha khamkar

Joined: May 16, 2008
Posts: 1
I am write the class in ..../appl1/classes
public class Ser1 extends HttpServlet
public void doGet(HttpServletRequest rq, HttpServletResponse rs) throws ServletException, IOException
PrintWriter out = rs.getWriter();
"<form method= \"POST\" ACTION= \"Shr\">"+
"<input type = submit value = \"Ok\">"+



the Shr.class is in shared/classes

Error is
HTTP Status 404 - /appl1/Shr

type Status report

message /appl1/Shr

description The requested resource (/appl1/Shr) is not available.
Apache Tomcat/4.1.31
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

From your post, I can't tell where you've actually put your class file.
Classes belong in the WEB-INF/clases directory.


Also post the parts of your web.xml file that hold the servlet entry and the servlet mapping for this servlet as well as the URL you're using when trying to hit it.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: accessing classes save in shared/classes
It's not a secret anymore!