<div>Hi,all:</div>
<div> Guvnor is a BRMS,it can manage the rules through Jackrabbit Repository.The default,Guvnor work well with derby database.But i want it work with my database,just like MySQL.</div>
<div>My step is :</div>
<div> 1.Run Guvnor with default,and generate the repository.xml and repository dictionary at JBOSS_HOME\bin dictionary</div>
<div> 2.delete repository dictionary and edit repository.xml,only replace the content in <PersistenceManage> label ,just like this:</div>
<div><font style="BACKGROUND-COLOR: #ffff33"> <PersistenceManager class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager"><br> <param name="driver" value="com.mysql.jdbc.Driver"/><br>
<param name="url" value="jdbc:mysql://localhost:3306/guvnor_db"/><br> <param name="user" value="root" /><br> <param name="password" value="a123456" /><br>
<param name="schema" value="mysql"/><br> <param name="schemaObjectPrefix" value="${<a href="http://wsp.name">wsp.name</a>}_"/><br> <param name="externalBLOBs" value="false"/><br>
</PersistenceManager></font></div>
<div> 3.install Mysql database,and create the guvnor_db database instance,and copy mysql driver to JBOSS_HOME\server\deploy\lib</div>
<div> 4.Restart the JBoss ,i get the exception:</div>
<div> <font color="#ff0000"> </font><font style="BACKGROUND-COLOR: #ff6666" color="#000000">org.drools.repository.RulesRepositoryException: javax.jcr.RepositoryException: Invalid repository configuration: repository.xml: Replacement not found for ${<a href="http://wsp.name">wsp.name</a>}.: Replacement not found for ${<a href="http://wsp.name">wsp.name</a>}.</font></div>
<div> </div>
<div> Why?Please help me,thanks!</div>