Baidu Cloud BAE3.0 ssh construction (native SSH project migrated to BAE3.0)

Source: Internet
Author: User
Tags tld

Deploy according to the Java deployment document of Baidu Cloud Http://developer.baidu.com/wiki/index.php?title=docs/cplat/bae/java

Make changes such as the following, then package the project as root upload

1. Change the application.xml on the original basis when using spring. Contains the database name. Username and password


2. Change the catalog in all. hbm.xml files of hibernate, for example, to change the catalog property to your database name

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

3. Assume that the JSP page is used to <%@ taglib uri= "Http://java.sun.com/jsp/jstl/core" prefix= "C"%>

An exception may occur: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

To import the Jstl.jar and Standard.jar packages, assuming that it is still not possible, you will manually import the TLD files, such as the following:

Jstl.jar unzip the Meta-inf directory, copy c.tld, X.tld, Fmt.tld, Sql.tld to the project Web-inf directory

Then add these in 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>

Reprint Note Address, thank you: http://blog.csdn.net/df1012890048/article/details/25540851



Copyright notice: This article Bo Master original article. Blog, not reproduced without consent.

Baidu Cloud BAE3.0 ssh construction (native SSH project migrated to BAE3.0)

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.