百度云BAE3.0 的ssh配置(把本机ssh项目迁移至BAE3.0)

根据百度云的java部署文档进行部署 http://developer.baidu.com/wiki/index.php?title=docs/cplat/bae/java 

做如下修改,然后把项目打包成ROOT上传

1.使用Spring时在原来基础上修改application.xml,包括数据库名,用户名和密码

 


2.修改hibernate的所有.hbm.xml文件中的catalog,例如,把catalog属性修改为你的数据库名 

 

http://blog.csdn.net/df1012890048/article/details/25540851

3.如果jsp页面中有使用到<%@ taglib uri="http://java.sun.com/jsp/jstl/core"prefix="c" %>

可能会出现异常:org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application

要导入jstl.jar和standard.jar包,如果还是不行的就要手动导入tld文件了,方法如下:

把jstl.jar解压其中的META-INF文件夹,复制c.tld 、x.tld、fmt.tld 、sql.tld到 项目的WEB-INF文件夹下

然后再在web.xml中加入这些内容:

<jsp-config>
  <taglib>
    <taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
   <taglib-location>/WEB-INF/c.tld</taglib-location>
  </taglib>
  <taglib>
   <taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
   <taglib-location>/WEB-INF/x.tld</taglib-location>
   </taglib>
  <taglib>
   <taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
   <taglib-location>/WEB-INF/fmt.tld</taglib-location>
  </taglib>
  <taglib>
   <taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
   <taglib-location>/WEB-INF/sql.tld</taglib-location>
  </taglib>
</jsp-config>

转载注明地址,谢谢:http://blog.csdn.net/df1012890048/article/details/25540851


 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值