Hello,

>  Thank you for your help, now it works. However, the javadocs for 
> H2PersistenceManager says this:
...
> <param name="driver" value="org.hsqldb.jdbcDriver"/>
>  <param name="url" value="jdbc:hsqldb:file:${wsp.home}/db/itemState"/>
>  I just copied my configuration from here. Perhaps someone should update the 
> javadocs.

The problem will be fixed in Jackrabbit 1.5, see also:
https://issues.apache.org/jira/browse/JCR-1546
I have also removed the shutdown code because this is not required for
H2; however it will probably not affect you.

To configure H2 you could just use: <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager"/>

The complete list of settings is:
 <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager">
     <param name="bundleCacheSize" value="8"/>
     <param name="consistencyCheck" value="false"/>
     <param name="minBlobSize" value="16384"/>
     <param name="driver" value="org.h2.Driver"/>
     <param name="url" value="jdbc:h2:file:${wsp.home}/db/itemState"/>
     <param name="user" value="sa"/>
     <param name="password" value="sa"/>
     <param name="schema" value="h2"/>
     <param name="schemaObjectPrefix" value=""/>
     <param name="errorHandling" value=""/>
     <param name="lockTimeout" value="10000"/>
 </PersistenceManager>

Regards,
Thomas

Reply via email to