SAE Java trampled pits (continuous update)

Source: Internet
Author: User

The use of SAE was because of the earliest contact, and did not expect so many pits.

Java Compiler version Issues

Java version requirements are JAVA6, too high version will be error.

War Pack issues

The war package must have the same name as the app. Servlet-api.jar, Mysql.jar These common jar files do not upload to avoid version conflicts.

Cookie Issues

The cookie path must start/appname, and the URL to be accessed later will have a context path.

Session question

The session is said to have a problem, has not been tested, the session is based on cookie implementation, so it is likely to be a path problem.

Distributed session needs to add <distributable/> tag.

MySQL problem

MySQL link timeout problem, before using to check whether the connection timed out.

Storage problems

Storage problem, wrap's file series interface, no uploaded files are wrong. Forum Some people say that the first storage to temporary files, and then use the storage interface upload can be resolved.

Log problem

The system prints the logs in HTTP logs, notice, and warning.


SAE Java trampled pits (continuous update)

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.