Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 47540 invoked from network); 9 Nov 2001 20:31:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 20:31:37 -0000 Received: (qmail 25655 invoked by uid 97); 9 Nov 2001 20:31:05 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 25639 invoked by uid 97); 9 Nov 2001 20:31:04 -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 25628 invoked from network); 9 Nov 2001 20:31:04 -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 15:36:56 -0500 X-Mailer: KMail [version 1.2] References: <20011109114612.L31050-100000@localhost> In-Reply-To: <20011109114612.L31050-100000@localhost> MIME-Version: 1.0 Message-Id: <0111091536560Q.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 Thanks Craig for the info. You do a great job with the TC 4 development = and=20 answering questions on the list! I kind of thought of that after I sent the email but I did the method bel= ow=20 as a fake, fudge, and cheat method in a learn-as-you-go experiment page. = =20 Some time soon I'll have to take the time to learn the class loading sche= me=20 and how to use it right. :-) Back to reading the docs for me..... --David Smith On Friday 09 November 2001 02:47 pm, you wrote: > On Fri, 9 Nov 2001, David Smith wrote: > > Date: Fri, 9 Nov 2001 14:57:59 -0500 > > From: David Smith > > Reply-To: Tomcat Users List > > To: Tomcat Users List > > Subject: Re: class loaded wrong > > > > I've done this in one of my JSP pages and all I did was import the cl= ass. > > Only specified the class name itself (no org.whatever....) and placed= the > > .class file in the WEB-INF/classes directory. You do need to compile > > your 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.jav= a:61 > > >: Class org.apache.jsp.MyBean not found. > > > > > > > > > Must I define all classes inside a package? > > To use a class that is not in a package, you have to specifically impor= t > it in a <%@ page %> directive. However, you should know that this is > likely to cause you portability problems -- you are much better off usi= ng > fully qualified bean names in packages. > > Craig > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: -- To unsubscribe: For additional commands: Troubles with the list: