1、war包名称要与SAE上的应用名称相同
2、遇到如下错误
java.lang.IllegalStateException: No LoginService for org.eclipse.jetty.security.authentication.BasicAuthenticator...
可能是在web.xml配置了这个:
BASIC
暂时没用,就把它删了
3、异常:
java.lang.IllegalStateException: class org.springframework.web.filter.CharacterEncodingFilter is not a javax.servlet.Filter
at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:78)
多了javaee-api包,打包的时候忽略掉
4、异常:
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [application-context.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found。。。
多了xml-apis包,打包的时候也忽略掉
5、访问数据库异常:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: SELECT command denied to user 'accessKey'@'10.67.15.83' for table 'system_user'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
。。。
SAE上的数据库名称是 app_应用名,最好本地的和SAE上的统一起来比较方便些。