谁能告诉我这个问题怎么解决? JDK1.5特性

09-06-30 lamei

我已经用JDK1.5编译的,为什么TOMCAT会报这个问题呢??? 已经郁闷好久了。始终没解决。

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

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

An error occurred at line: 15 in the generated java file

The type Collection is not generic; it cannot be parameterized with arguments <? extends E>

Stacktrace:

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

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

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

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

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

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

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

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

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

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

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

org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:416)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 logs.

--------------------------------------------------------------------------------

Apache Tomcat/5.5.27

jvcoffee
2009-06-30 13:05
能把jsp代码贴出来么?

[该贴被jvcoffee于2009-06-30 13:05修改过]

banq
2009-06-30 17:48
The type Collection is not generic; it cannot be parameterized with arguments <? extends E>

Collection不是泛型。

yuhonglei4025
2009-07-01 17:03
你的泛型有些地方没有做检查,忽略了一些警告,导致runtime错误

猜你喜欢