Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

org.apache.jasper.JasperException: Unable to compile class for JSP

Status
Not open for further replies.

mikum

IS-IT--Management
Apr 4, 2006
1
DE
Hi there,

I have a problem here and no clue what's the reason.

Since we migrated our JSPs from Tomcat4 to Tomcat5 we have the following error:
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

/usr/share/tomcat/work/Catalina/xxx.internet.hxxxd.com/_/org/apache/jsp/Hxxxt/ com.xxx.xxx.util.Constants is already defined in a single-type import
import com.xxx.xxx.navigation.Constants;


The problematic line in the jsp is:
<%@ page import="com.xxx.xxx.navigation.Constants"%>

Is there a change in Tomcat4 to 5 which causes the jasper compiler to fail? If so, is there a workaround? We don't want to change all of our jsp sites because there are lots of them.

Thanks in advance.

Cheers,
Mikum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top