"SAE Deployment Javaweb project 404 Error"

Source: Internet
Author: User

personal Learning and collation, if there are deficiencies, please do not hesitate to enlighten. Reprint Please specify:@CSU-max


Today, a small Javaweb project was written to the SAE. An error occurred while visiting the interview.

The local test is normal, and the project that was uploaded when the platform was developed will be able to access it normally. It took two hours to finally find out the cause of the mistake.



error messages such as the following:
error 404–not found.no context on the This server Matched or handled this request.
contexts known to this server is

    depending on the information on the web, it may be in the project Jar packages such as Servlet-api.jar conflict with the  jar package provided by the SAE platform. The project is then packaged into a war package. Delete the associated jar package under LIB.

Upload the test again. The same mistake was reported.

The first step is out of the box. After deleting the section about the servlet in Web. XML in the project, create a new index.jsp page under the root folder. Compile and upload again. To be able to access the regular interview.

Visible or Java part of the problem, since the front has been ruled out Servlet-api.jar and other jar package conflict, then what other reasons?

After searching on the internet, it is possible that the version number of the JDK used for compiling is a problem. The problem is now here. The JDK version number on this machine is 1.7. The use of the SAE requires JDK 1.6, so 1.6 of the JDK, and once again compiled upload. Test Normal.

originally uploaded to the SAE on the project normal access is because the machine used at the time the JDK version number is 1.6. The JDK version number on the current machine is 1.7.


********************************************************************************

* * Reprint Please specify source: @CSU-max Http://blog.csdn.net/csu_max         **

********************************************************************************



"SAE Deployment Javaweb project 404 Error"

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.