File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
Similar Threads
getting 500 error when trying to run a servlet
reading data from jsp page to another jsp page using request.getParameter
404 Error
got stuck in running my first struts example. help
The requested resource () is not available