aini 发表于 2017-3-2 08:01:14

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

  四月 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: in the generated java file:
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。
页: [1]
查看完整版本: 使用JFinal的第一个项目出现的问题(The return type is incompatible with JspSourceDependent.getD