Solution Jetty Error WEB-JSPTAGLIBRARY_1_2.DTD not found__c#

Source: Internet
Author: User
Tags maven central

Using jetty embedded mode to run WebApp, access the JSP page when the error WEB-JSPTAGLIBRARY_1_2.DTD not found

Look for the javax bag in the project does not have what he said Web-jsptaglibrary_1_2.dtd resource file, guess is the introduction of the JSTL package is wrong.

Solution Method:

All of the jar packages needed for jetty should be taken from the Jetty-project project, so that the problem of the jar bundle referencing errors can be avoided.

Other jar package Reference errors can also be used to draw on this pattern.

1. Confirm your use of the jetty version, such as 8.1.9.v20130131

2. Find Jetty-project in the MAVEN central repository, path: org/eclipse/jetty/jetty-project

3. Find the required dependencies in the POM corresponding to the version number and put them in your pom, take jstl for example:

<dependency>
  <groupId>org.eclipse.jetty.orbit</groupId>
  <artifactId> javax.servlet.jsp.jstl</artifactid>
  <version>1.2.0.v201105211821</version>
</ Dependency>

4. After introduction, note whether there is a version conflict with the jar package in the POM


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.