Here's the repository xml. I only got the problems when I was writing to the
repository, reading was fine. The exception raised was an
ItemNotFoundException.

I used the repository xml to create a brand new repository, this didn't work
either. So I added the configuration element for the datastore into the xml
and hey presto it all burst into life and I was able to read and write to
the repository. Hence I thought it was something to do with the datastore.

Any help much appreciated.


On Feb 19, 2008 7:38 AM, Thomas Mueller <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I've got a live repository that is unable to use the jackRabbit 1.4version.
>
>
> Is there an exception?
>
>
> > I'm pretty sure its due to the datastore.
>
>
> This should not be the problem. The data store is disabled by default.
>
>
> > The repository xml I have is
> > pretty old, it does not contain any configuration for the datastore or
> the
> > blobstore.
>
>
> Could you post the repository.xml and workspace.xml files?
>
> Regards,
> Thomas
>
> >
>
<?xml version="1.0" encoding="ISO-8859-1"?>

<!-- Example Repository Configuration File -->
<Repository>
    <!--
        virtual file system where the repository stores global state
        (e.g. registered namespaces, custom node types, etc.)
    -->
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>

    <!--
        security configuration
    -->

    <Security appName="Jackrabbit">
         <AccessManager class="com.gossinteractive.security.asl.RepositoryAccessManager">
            <!-- <param name="config" value="${rep.home}/access.xml"/> -->
        </AccessManager>
        <LoginModule class="com.gossinteractive.security.asl.RepositoryLoginModule">
           <!-- anonymous user name ('anonymous' is the default value) -->
           <param name="anonymousId" value="anonymous"/>
        </LoginModule>
    </Security>

    <!--
        location of workspaces root directory and name of default workspace
    -->
    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
    <!--
        workspace configuration template:
        used to create the initial workspace if there's no workspace yet
    -->
    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>

        <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.MSSqlPersistenceManager">
            	<param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
		<param name="bundleCacheSize" value="8"/>	
            	<param name="url" value="jdbc:sqlserver://DATABASE;database=library"/>
            	<param name="user" value="user"/>
            	<param name="password" value="password"/>
            	<param name="schema" value="mssql"/>
            	<param name="schemaObjectPrefix" value="jrp"/>
		<param name=" errorHandling" value=""/>
		<param name="minBlobSize" value="16384"/>
		<param name="bundleCacheSize" value="8"/>
		<param name="consistencyCheck" value="false"/>
        </PersistenceManager>

        
        <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
            <param name="useCompoundFile" value="true"/>
            <param name="minMergeDocs" value="100"/>
            <param name="volatileIdleTime" value="3"/>
            <param name="maxMergeDocs" value="100000"/>
            <param name="mergeFactor" value="10"/>
            <param name="maxFieldLength" value="10000"/>
            <param name="bufferSize" value="10"/>
            <param name="cacheSize" value="1000"/>
            <param name="forceConsistencyCheck" value="false"/>
            <param name="autoRepair" value="true"/>
            <param name="analyzer" value="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
            <param name="queryClass" value="org.apache.jackrabbit.core.query.QueryImpl"/>
            <param name="idleTime" value="-1"/>
            <param name="respectDocumentOrder" value="true"/>
 <param name="textFilterClasses" value="org.apache.jackrabbit.core.query.MsExcelTextFilter,org.apache.jackrabbit.core.query.MsPowerPointTextFilter,org.apache.jackrabbit.core.query.MsWordTextFilter,org.apache.jackrabbit.core.query.PdfTextFilter,org.apache.jackrabbit.core.query.HTMLTextFilter,org.apache.jackrabbit.core.query.XMLTextFilter,org.apache.jackrabbit.core.query.RTFTextFilter,org.apache.jackrabbit.core.query.OpenOfficeTextFilter" />
        </SearchIndex>
       
    </Workspace>

    <!--
        Configures the versioning
    -->
    <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.MSSqlPersistenceManager">
            	<param name="driver" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
		<param name="bundleCacheSize" value="8"/>	
            	<param name="url" value="jdbc:sqlserver://DATABASE:1433;database=library_history"/>
            	<param name="user" value="user"/>
            	<param name="password" value="password"/>
            	<param name="schema" value="mssql"/>
            	<param name="schemaObjectPrefix" value="jrp"/>
		<param name=" errorHandling" value=""/>
		<param name="minBlobSize" value="16384"/>
		<param name="bundleCacheSize" value="8"/>
		<param name="consistencyCheck" value="false"/>
        </PersistenceManager>

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

Reply via email to