sae java 部署_SAE部署javaweb应用一些注意点

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上的统一起来比较方便些。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值