Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 68073 invoked from network); 9 Nov 2001 19:53:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 19:53:49 -0000 Received: (qmail 26509 invoked by uid 97); 9 Nov 2001 19:52:10 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 26368 invoked by uid 97); 9 Nov 2001 19:52:08 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 26288 invoked from network); 9 Nov 2001 19:52:07 -0000 Content-Type: text/plain; charset="iso-8859-1" From: David Smith Organization: Cornell University To: "Tomcat Users List" Subject: Re: class loaded wrong Date: Fri, 9 Nov 2001 14:57:59 -0500 X-Mailer: KMail [version 1.2] References: In-Reply-To: MIME-Version: 1.0 Message-Id: <0111091457590N.09717@NetOps.ento.cornell.edu> Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I've done this in one of my JSP pages and all I did was import the class.= =20 Only specified the class name itself (no org.whatever....) and placed the= =20 =2Eclass file in the WEB-INF/classes directory. You do need to compile y= our=20 class though with javac or equivalent. I'm using Tomcat 4.0.1. --David Smith On Friday 09 November 2001 02:27 pm, you wrote: > I am moving my 3.2.3 application to 4.0.1, and it > failed to work > > my jsp file uses a bean which is defined under WEB-INF/classes > (without package) > > say that class is MyBean.java, the error log shows > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: 4 in the jsp file: /process.jsp > > Generated servlet error: > D:\henry\jakarta-tomcat-4.0.1\work\localhost\survey\process$jsp.java:61= : > Class org.apache.jsp.MyBean not found. > > > Must I define all classes inside a package? > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: