我刚刚在谷歌云中运行Bitnami Tomcat 8.5.24-2。我需要连接到mysql,然后按照orbeon步骤进行操作:
下载mysql-connector-java-5.1.33-bin.jar并将其复制到xampp \ tomcat \ lib中。
4编辑Tomcat的server.xml,并在for Orbeon Forms中添加<Resource>
auth="Container"
type="javax.sql.DataSource"
initialSize="3"
maxActive="10"
maxIdle="10"
maxWait="30000"
poolPreparedStatements="true"
testOnBorrow="true"
validationQuery="select 1"
username="orbeon"
password="orbeon"
url="jdbc:mysql://localhost:3306/orbeon?useUnicode=true&characterEncoding=UTF8"/>
和同一档案中的Valve
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log"
suffix=".txt"
pattern="%h %l %u %t "%r" %s %b"/>
<property as="xs:string"
name="oxf.fr.persistence.provider.orbeon.library.*"
value="mysql"/>
和Orbeon properties-local.xml
<properties xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:oxf="http://www.orbeon.com/oxf/processors">
<property as="xs:string"
me="oxf.fr.persistence.provider.*.*.*"
value="mysql"/>
</properties>