tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dola Woolfe <dolac...@yahoo.com>
Subject Tomcat 5.5 and java 1.5 features.
Date Wed, 11 Jan 2006 00:07:11 GMT
Hi,

I'd like to use java 1.5 features in my jsp code, in
particular generics. But the jasper compiler really
doesn't like it. Any setting to fix this:

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

An error occurred at line: 2 in the jsp file:
/MBInit.jsp
Generated servlet error:
The method name() is undefined for the type Object

An error occurred at line: 2 in the jsp file:
/MBInit.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to Message

An error occurred at line: 2 in the jsp file:
/MBInit.jsp
Generated servlet error:
Type mismatch: cannot convert from Object to Vector



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)

org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

Many thanks in advance!

Dola

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message