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"