jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julio Castillo" <jcasti...@edgenuity.com>
Subject DDLs and bootstrapping
Date Thu, 06 Mar 2008 18:22:16 GMT
Still struggling on bootstrap with MySQL.

I have no problems now starting the model 3 jackrabbit using the demo/derby
setup.

I just have not been able to get it working with MySQL. Below is an excerpt
of my repository.xml.

I can't specify a "different" schema (from "mysql") as a parameter, because
then it looks for the "different.ddl" which of course does not exist
anywhere in the path.
I also can't seem to use the "create" substring used for derby. How do I
specify it for MySQL? "<param name="url"
value="jdbc:derby:${rep.home}/version/db;create=true"/>"

Help.
Last, for some reason, the "version" portion of the repository.xml is
executed first, or for some reason, I don't get any error messages from the
"core" portion of the xml file even though it is configured similarly (maybe
it hasn't reached that part of the file).

    <Workspace name="Jackrabbit Core">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager
">
	    <param name="driver" value="com.mysql.jdbc.Driver"/>
	    <param name="url" value="jdbc:mysql://localhost:3306/core"/>
	    <param name="user" value="jackrabbit"/>
	    <param name="password" value="jackrabbit"/>
	    <param name="schema" value="core"/>
          <param name="schemaObjectPrefix" value="Core_"/>
        </PersistenceManager>
       <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
        </SearchIndex>
    </Workspace>
....
    <Versioning rootPath="${rep.home}/version">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${rep.home}/version" />
        </FileSystem>
        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.MySqlPersistenceManager
">
	    <param name="driver" value="com.mysql.jdbc.Driver"/>
	    <param name="url" value="jdbc:mysql://localhost:3306/version"/>
	    <param name="user" value="jackrabbit"/>
	    <param name="password" value="jackrabbit"/>
	    <param name="schema" value="version"/>
          <param name="schemaObjectPrefix" value="Version_"/>
        </PersistenceManager>
    </Versioning>



Mime
View raw message