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.