Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 3557 invoked from network); 31 Aug 2000 10:27:13 -0000 Received: from pinea.xerox.fr (193.49.123.194) by locus.apache.org with SMTP; 31 Aug 2000 10:27:13 -0000 Received: from meije.grenoble.xrce.xerox.com (meije.grenoble.xrce.xerox.com [13.202.220.10]) by pinea.xerox.fr (8.9.3/8.9.3) with ESMTP id MAA09348 for ; Thu, 31 Aug 2000 12:24:56 +0200 (MET DST) Received: from xrce.xerox.com (fenestre.grenoble.xrce.xerox.com [13.202.220.83]) by meije.grenoble.xrce.xerox.com (8.9.1a/8.9.1) with ESMTP id MAA01560 for ; Thu, 31 Aug 2000 12:26:55 +0200 (MET DST) Sender: Michael.Niemaz@xrce.xerox.com Message-ID: <39AE32CA.563E32E3@xrce.xerox.com> Date: Thu, 31 Aug 2000 12:26:18 +0200 From: mike niemaz X-Mailer: Mozilla 4.72 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user Subject: tomcat won't find my servlets ;-((( Content-Type: multipart/alternative; boundary="------------6B2141BC0F5B496F93103573" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N --------------6B2141BC0F5B496F93103573 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all, I'm trying to implement the famous MVC2 controller based on a simple jsp & servlets files. It worked fine until I decided to enhance my servlet & especially until I included it in a new package. Tomcat do not find the class anymore ;-((( No matter what path I use or what ApJServMount I specify in tomcat.conf, it keeps telling me it can't find the class .... My servlet CDController is located in myapp/WEB-INF/classes/test/ My jsp which invoke this servlet is at myapp/jsp/ & looks like this: <%@ page session="true"%> test MVC2 application test

CD:

And the supposed servlet handler lines in tomcat.conf is: ApJServMount /myapp/servlet/ /myapp I've tried to add "test" after "servlet" or "myapp" but in vain ... Has anybody worked with servlets that are packaged so far? Thanx, --mike --------------6B2141BC0F5B496F93103573 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all,
    I'm trying to implement the famous MVC2 controller
    based on a simple jsp & servlets files.
    It worked fine until I decided to enhance my servlet
    & especially until I included it in a new package.
    Tomcat do not find the class anymore ;-(((

    No matter what path I use or what ApJServMount I
    specify in tomcat.conf, it keeps telling me
    it can't find the class ....

    My servlet CDController is located in myapp/WEB-INF/classes/test/
    My jsp which invoke this servlet is at myapp/jsp/ & looks like this:

<%@ page session="true"%>
      <html>
       <head>
   <title>test</title>
 </head>
 <body bgcolor="#33CCFF">
   <font face="Times New Roman,Times" size="+3">
     MVC2 application test
   </font>
   <hr><p>
   <center>
     <form name="MVCForm"
       action="../servlet/CDController"
       method="POST">
       <b>CD:</b>
       <select name=CD>
  <option>Yuan | The Guo Brothers</option>
  <option>Ibuki | Kodo</option>
       </select>
       <input type="hidden" name="action" value="put">
       <input type="submit" name="Submit" value="Add to List">
     </form>
   </center>
   <p>
   <jsp:include page="cdUserList.jsp" flush="true" />
  </body>
</html>
And the supposed servlet handler lines in tomcat.conf is:
    ApJServMount /myapp/servlet/    /myapp
 
I've tried to add "test" after "servlet" or "myapp" but in vain ...

Has anybody worked with servlets that are packaged so far?

Thanx,

--mike --------------6B2141BC0F5B496F93103573--