http://wso2.org/library/articles/2011/10/alfresco-wso2-stratos-application-server151
最开始是看这篇文章部署的,但是部署不成功,自己又在google上搜了下。
1.问题:For input string: "${db.txn.isolation}"
解决方法:repository.properties 中添加 db.txn.isolation=-1
2. 问题:org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
解决方法:repository.properties 中添加 hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect (我这用的是mysql)
3.问题:java.lang.IllegalArgumentException: Invalid boolean value [${db.schema.stopAfterSchemaBootstrap}]
解决方法: repository.properties 中添加 db.schema.stopAfterSchemaBootstrap=false
4.问题:For input string: "${db.schema.update.lockRetryCount}"
解决方法: repository.properties 中添加 db.schema.update.lockRetryCount=24
最终配置
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
db.schema.update=true
db.schema.update.lockRetryCount=24
db.schema.update.lockRetryWaitSeconds=5
db.schema.stopAfterSchemaBootstrap=false
db.driver=com.mysql.jdbc.Driver
db.name=alfresco
db.url=jdbc:mysql://10.1.1.82:3306/alfresco
db.username=alfresco
db.password=alfresco
db.pool.initial=10
db.pool.max=20