The Web application cannot access: the requested resource () is not available. Error

Source: Internet
Author: User
ArticleDirectory
    • Apache Tomcat/5.5.27

The first web written according to books yesterdayProgramThe result is not displayed. The result is as follows:

HTTP status 404-

TypeStatus Report

Message

Description The requested resource () is not available.

Apache Tomcat/5.5.27 is found to be a web. xml file error after deleting redundant files, where the class path of the struts2 filter is wrong. The class file cannot be accessed. Therefore The requested resource () is not available. .

The XML below is correct, and the original error is the red text section below:


xmlns = "http://java.sun.com/xml/ns/j2ee"
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi: schemalocation = "http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
struts2
org. apache. struts2.dispatcher. filterdispatcher


struts2
/*

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.