Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 76113 invoked from network); 9 Nov 2001 20:01:42 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 20:01:42 -0000 Received: (qmail 17365 invoked by uid 97); 9 Nov 2001 19:59:29 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 17332 invoked by uid 97); 9 Nov 2001 19:59:28 -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 17304 invoked from network); 9 Nov 2001 19:59:28 -0000 Date: Fri, 9 Nov 2001 11:47:18 -0800 (PST) From: "Craig R. McClanahan" Sender: To: Tomcat Users List Subject: Re: class loaded wrong In-Reply-To: <0111091457590N.09717@NetOps.ento.cornell.edu> Message-ID: <20011109114612.L31050-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 class. > 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.java: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 import it in a <%@ page %> directive. However, you should know that this is likely to cause you portability problems -- you are much better off using fully qualified bean names in packages. Craig -- To unsubscribe: For additional commands: Troubles with the list: