jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Roberts (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-799) AbstractJournal doesn't create deep paths for revision files
Date Mon, 19 Mar 2007 19:27:32 GMT

     [ https://issues.apache.org/jira/browse/JCR-799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mike Roberts updated JCR-799:
-----------------------------

    Description: AbstractJournal throws when trying to create the revision file if the directory
the revision file is in doesn't already exist. When initializing a repository during its startup,
the create fails is you use a revision param like <param name="revision" value="${rep.home}/repository/revision"
/> because the repository directory hasn't been created yet. Attached is a repository.xml
that demonstrates. It uses Oracle for FS and PMs.  (was: AbstractJournal throws when trying
to create the revision file if the directory the revision file is in doesn't already exist.
When initializing a repository during its startup, the create fails is you use a revision
param like <param name="revision" value="${rep.home}/repository/revision" /> because
the repository directory hasn't been created yet. Below is a repository.xml that demonstrates.
It uses Oracle for FS and PMs.

 <Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
        <param name="driver" value="oracle.jdbc.driver.OracleDriver"/>
        <param name="url" value="jdbc:oracle:thin:@10.80.0.20:1521:cnctdb"/>
        <param name="user" value="dms"/>
        <param name="password" value="pass"/>
        <param name="schemaObjectPrefix" value="dms_rep_"/>
    </FileSystem>

    <Security appName="Jackrabbit">
        <AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager">
        </AccessManager>

        <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule">
           <param name="anonymousId" value="anonymous"/>
        </LoginModule>
    </Security>

    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
            <param name="driver" value="oracle.jdbc.driver.OracleDriver"/>
            <param name="url" value="jdbc:oracle:thin:@10.80.0.20:1521:cnctdb"/>
            <param name="user" value="dms"/>
            <param name="password" value="pass"/>
            <param name="schemaObjectPrefix" value="dms_wrk_"/>
        </FileSystem>
    	<PersistenceManager class="org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager">
                <param name="driver" value="oracle.jdbc.driver.OracleDriver"/>
                <param name="url" value="jdbc:oracle:thin:@10.80.0.20:1521:cnctdb"/>
                <param name="user" value="dms"/>
                <param name="password" value="pass"/>
                <param name="schemaObjectPrefix" value="dms_wrk_"/>
                <param name="externalBLOBs" value="false"/>
        </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.db.OracleFileSystem">
            <param name="driver" value="oracle.jdbc.driver.OracleDriver"/>
            <param name="url" value="jdbc:oracle:thin:@10.80.0.20:1521:cnctdb"/>
            <param name="user" value="dms"/>
            <param name="password" value="pass"/>
            <param name="schemaObjectPrefix" value="dms_ver_"/>
        </FileSystem>

        <PersistenceManager class="org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager">
                <param name="driver" value="oracle.jdbc.driver.OracleDriver"/>
                <param name="url" value="jdbc:oracle:thin:@10.80.0.20:1521:cnctdb"/>
                <param name="user" value="dms"/>
                <param name="password" value="pass"/>
                <param name="schemaObjectPrefix" value="dms_ver_"/>
                <param name="externalBLOBs" value="false"/>
        </PersistenceManager>

    </Versioning>


    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
        <param name="path" value="${rep.home}/repository/index"/>
    </SearchIndex>

    <Cluster id="dms01" >
        <Journal class="org.apache.jackrabbit.core.cluster.DatabaseJournal">
            <param name="revision" value="${rep.home}/repository/revision" />
            <param name="driver" value="oracle.jdbc.driver.OracleDriver"/>
            <param name="url" value="jdbc:oracle:thin:@10.80.0.20:1521:cnctdb"/>
            <param name="user" value="dms"/>
            <param name="password" value="pass"/>
            <param name="schemaObjectPrefix" value="dms"/>
        </Journal>
    </Cluster>
</Repository>

)

> AbstractJournal doesn't create deep paths for revision files
> ------------------------------------------------------------
>
>                 Key: JCR-799
>                 URL: https://issues.apache.org/jira/browse/JCR-799
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.2.3
>         Environment: Windows 2003
>            Reporter: Mike Roberts
>            Priority: Trivial
>
> AbstractJournal throws when trying to create the revision file if the directory the revision
file is in doesn't already exist. When initializing a repository during its startup, the create
fails is you use a revision param like <param name="revision" value="${rep.home}/repository/revision"
/> because the repository directory hasn't been created yet. Attached is a repository.xml
that demonstrates. It uses Oracle for FS and PMs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message