我正在迁移一个spring
mvc 应用程序,该应用程序在 jsp 文件中包含大量 java 代码,当我在tomcat 6.0.24
下运行它时CentOS 5.x
,出现 jsp 编译错误。我在 Windows XP 下开发,相同的应用程序在 tomcat 上运行良好,6.0.34
并且jetty 8.
我尝试使用 compilerSourceVM 和 compilerTargetVM 没有成功。
catalina.out
An error occurred at line: 18 in the generated java file
The type Collection is not generic; it cannot be parameterized with arguments <? extends E>
堆栈跟踪:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
at org.apache.jasper.servlet.JspServletWrapper.loadTagFile(JspServletWrapper.java:215)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFile(TagFileProcessor.java:625)
at org.apache.jasper.compiler.TagFileProcessor.access$0(TagFileProcessor.java:564)
at org.apache.jasper.compiler.TagFileProcessor$TagFileLoaderVisitor.visit(TagFileProcessor.java:686)
at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
at org.apache.jasper.compiler.TagFileProcessor.loadTagFiles(TagFileProcessor.java:703)