An inexplicable HTTP 405 error

Source: Internet
Author: User

Today, try to integrate Apache Http Server with Tomcat 6, the effect is satisfactory; But in the Access application found a strange and strange error, access to display application, the servlet generated pages can not properly connect to CSS and JS files, so that the page style is not. I am not able to enter the address of the file directly in the Address bar (HTTP 405 error is reported, HTTP method gets is not supported by the This URL), save the words as follows:

While I was visiting the Wstacheck application, everything was fine. After several comparisons, the feeling is that the two applications of the Web.xml file configuration is not the same, so the display application of the Web.xml file content all commented out, and then access the CSS file is all normal. A paragraph of comments down, at first thought it was a imagegeneratorservlet, because this Java file has been deleted by me, but the servlet and the corresponding servlet-mapping deleted, the problem remains. Continue the comment and finally find out because my two url-pattern from the boot servlet are set to "/" (Defaultservlet configuration in the Web.xml file in the referenced Tomcat directory). Finally, the two servlet url-pattern settings are changed to a different, problem-solving. Two days ago encountered this problem did not how to respond to it, finally people revenge you, you have nothing to say.

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.