tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Smith <d...@cornell.edu>
Subject Re: class loaded wrong
Date Fri, 09 Nov 2001 19:57:59 GMT
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 unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message