使用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