[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Tomcat Java 5.0 problem, on a 6.0 JDK...
DeanoUK
do-not-reply at jboss.com
Wed Jun 27 12:43:50 EDT 2007
Hi...
Using jboss-4.2.0.GA on Windows and Sun JDK jdk1.6.0_01.
No other instances of Java are on the machine, nor have they ever been installed.
I'm getting this back when trying to use generics in a JSP:
javax.servlet.ServletException: org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 153 in the jsp file: /lms/dealer_comms.jsp
The type List is not generic; it cannot be parameterized with arguments
150:
151:
152: <%
153: List beans = (List) request.getAttribute("beans");
154: %>
155: <%= beans.get(0).getDealerName() %>
156: <!--
An error occurred at line: 153 in the jsp file: /lms/dealer_comms.jsp
Syntax error, parameterized types are only available if source level is 5.0
The main error of importance, I guess is the above line.
Is there a setting somewhere to force 5.0 compatibility etc?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058314#4058314
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058314
More information about the jboss-user
mailing list