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


四月 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。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM