Problems with The first project using JFinal (The return type is incompatible with JspSourceDependent. getDependants (), dependants

Source: Internet
Author: User

Problems with The first project using JFinal (The return type is incompatible with JspSourceDependent. getDependants (), dependants

April 08 4:35:34 org. apache. catalina. core. ApplicationDispatcher invoke
Severe: 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 ()

The reason is: In the jetty-server-8.1.8.jar, the returned value of getDependants is List <String> type,

The returned type of Tomcat 8.0 is Map <java. lang. String, java. lang. Long>.

The two are inconsistent.

Solution: Delete the jar package, that is, the jetty-server-8.1.8.jar.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.