使用JFinal的第一个项目出现的问题(The return type is incompatible with JspSourceDependent.getDependants())

2022-10-25,,,

四月 08, 2016 4:35:34 下午 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [39] in the generated java file: [D:\Tomcat 8.0\work\Catalina\localhost\xiaomudu\org\apache\jsp\index_jsp.java]
The return type is incompatible with JspSourceDependent.getDependants()

原因是:在jetty-server-8.1.8.jar里getDependants的返回值是List<String>型,

Tomcat 8.0生成的返回类型是Map<java.lang.String,java.lang.Long> 。

二者不一致。

解决办法是:删掉这个jar包,即jetty-server-8.1.8.jar。

使用JFinal的第一个项目出现的问题(The return type is incompatible with JspSourceDependent.getDependants())的相关教程结束。

《使用JFinal的第一个项目出现的问题(The return type is incompatible with JspSourceDependent.getDependants()).doc》

下载本文的Word格式文档,以方便收藏与打印。