tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Héritier <aherit...@sopra.com>
Subject RE: org.apache.jasper.JasperException: Unable to compile class for JSP
Date Thu, 11 Oct 2001 13:16:44 GMT
Another thing :

Did you try to use an import statement :

<%@ page language="java"  import="ConnectionPool"%>

> -----Message d'origine-----
> De:	Anthony Perera [SMTP:azp@soliton.com]
> Date:	jeudi 11 octobre 2001 15:19
> À:	Tomcat-User
> Objet:	org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> I was using Tomcat 3.2.1 and had a directory under webapps called
> super_database.
> In the directory I had a file named results.jsp. Below that directory I had
> WEB-INF and classes.
> The classes directory contained ConnectionPool.class. The whole thing worked
> fine.
> 
> At the top of results.jsp I had the following line:
> <jsp:useBean id="pool" class="ConnectionPool" type="ConnectionPool"
> scope="application" />
> 
> Inside my code I have a line that says:
> ConnectionPool pool = null;
> 
> 
> Now, I have tried to upgrade to Tomcat 4.0. I simply copied the directory
> structure and files
> from under Tomcat 3.2.1\webapps\super_database to
> Tomcat4\webapps\super_database.
> When I try to load the .jsp file, I get the following error. Why did it work
> on Tomcat 3.2.1
> but not the new version?
> 
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 2 in the jsp file: /results.jsp
> 
> Generated servlet error:
> D:\tomcat4\work\localhost\super_database\results$jsp.java:64: Class
> org.apache.jsp.ConnectionPool not found.
>                 ConnectionPool pool = null;
> 
> 
> What do I need to change?
> 
> TIA,
> Anthony
> 


Mime
View raw message