1, Change directory permissions
CHMOD-R 777 WB
2, put MySQL drive jar to/usr/share/tomcat/lib
3,context.xml content:
<?xml version= "1.0" encoding= "UTF-8"? ><! Doctype context><context reloadable= "true" crosscontext= "true" > <WatchedResource>WEB-INF/web.xml</WatchedResource> <Resource name= "Jdbc/wb_mysql" Auth= "Container" type= "Javax.sql.DataSource" Driverclassname= "Com.mysql.jdbc.Driver" url= "jdbc:mysql:// 127.0.0.1:3306/webbuilder?autoreconnect=true&allowmultiqueries=true&useunicode=true& Characterencoding=utf-8&mysqlencoding=utf8 " username=" Root " password=" 0000 " factory=" Org.apache.commons.dbcp.BasicDataSourceFactory " maxactive = "20" maxidle=" " maxwait="-1 " /></Context>
This article is from the "zl1030 Records" blog, so be sure to keep this source http://zl1030.blog.51cto.com/274507/1747557
WebBuilder7 configuration Considerations for Linux, Tomcat, and MySQL