On Monday 19 October 2009 15:50, Thomas Müller wrote:
> So this exception occurred when creating the repository, right? The
> repository directory is empty before you start the application?
Both right.
> Could you post the log file, the configuration (repository.xml and all
> workspace.xml files), as well as the list of Jackrabbit jar files you
> use?
Log and configuration file attached.
Used Jars:
jackrabbit-core-1.6.0.jar
jackrabbit-jcr-commons-1.6.0.jar
jackrabbit-api-1.6.0.jar
jackrabbit-text-extractors-1.6.0.jar
jackrabbit-spi-commons-1.6.0.jar
jackrabbit-spi-1.6.0.jar
jcr-1.0.jar
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 1.2//EN"
"http://jackrabbit.apache.org/dtd/repository-1.2.dtd">
<!-- 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">
<!--
access manager:
class: FQN of class implementing the AccessManager interface
-->
<AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager">
<!-- <param name="config" value="${rep.home}/access.xml"/> -->
</AccessManager>
<LoginModule class="com.inubit.ibis.server.repository.IBISLoginModule"/>
</Security>
<!--
location of workspaces root directory and name of default workspace
-->
<Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="ibis"/>
<!--
workspace configuration template:
used to create the initial workspace if there's no workspace yet
-->
<Workspace name="${wsp.name}">
<!--
virtual file system of the workspace:
class: FQN of class implementing the FileSystem interface
-->
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${wsp.home}"/>
</FileSystem>
<!--
persistence manager of the workspace:
class: FQN of class implementing the PersistenceManager interface
-->
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager">
<param name="bundleCacheSize" value="8"/>
<param name="consistencyCheck" value="true"/>
<param name="consistencyFix" value="true"/>
<param name="minBlobSize" value="16384"/>
<param name="driver" value="org.h2.Driver"/>
<param name="url" value="jdbc:h2:file:${wsp.home}/database"/>
<param name="user" value="sa"/>
<param name="password" value=""/>
<param name="schema" value="h2"/>
<param name="schemaObjectPrefix" value=""/>
<param name="errorHandling" value=""/>
<param name="lockTimeout" value="10000"/>
</PersistenceManager>
<!--<DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
<param name="path" value="${rep.home}/repository/datastore"/>
<param name="minRecordLength" value="100"/>
</DataStore>-->
<!--
Search index and the file system it uses.
class: FQN of class implementing the QueryHandler interface
If required by the QueryHandler implementation, one may configure
a FileSystem that the handler may use.
Supported parameters for lucene search index:
- path: location of the index. This parameter is mandatory!
- useCompoundFile: advises lucene to use compound files for the index files
- minMergeDocs: minimum number of nodes in an index until segments are merged
- volatileIdleTime: idle time in seconds until the volatile index is
moved to persistent index even though minMergeDocs is not reached.
- maxMergeDocs: maximum number of nodes in segments that will be merged
- mergeFactor: determines how often segment indices are merged
- maxFieldLength: the number of words that are fulltext indexed at most per property.
- bufferSize: maximum number of documents that are held in a pending
queue until added to the index
- cacheSize: size of the document number cache. This cache maps
uuids to lucene document numbers
- forceConsistencyCheck: runs a consistency check on every startup. If
false, a consistency check is only performed when the search index
detects a prior forced shutdown.
- autoRepair: errors detected by a consistency check are automatically
repaired. If false, errors are only written to the log.
- analyzer: class name of a lucene analyzer to use for fulltext indexing of text.
- queryClass: class name that implements the javax.jcr.query.Query interface.
this class must extend the class: org.apache.jackrabbit.core.query.AbstractQueryImpl
- respectDocumentOrder: If true and the query does not contain an 'order by' clause,
result nodes will be in document order. For better performance when queries return
a lot of nodes set to 'false'.
- resultFetchSize: The number of results the query handler should
initially fetch when a query is executed.
Default value: Integer.MAX_VALUE (-> all)
- extractorPoolSize: defines the maximum number of background threads that are
used to extract text from binary properties. If set to zero (default) no
background threads are allocated and text extractors run in the current thread.
- extractorTimeout: a text extractor is executed using a background thread if it
doesn't finish within this timeout defined in milliseconds. This parameter has
no effect if extractorPoolSize is zero.
- extractorBackLogSize: the size of the extractor pool back log. If all threads in
the pool are busy, incomming work is put into a wait queue. If the wait queue
reaches the back log size incomming extractor work will not be queued anymore
but will be executed with the current thread.
Note: all parameters (except path) in this SearchIndex config are default
values and can be omitted.
-->
<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="respectDocumentOrder" value="true"/>
<param name="resultFetchSize" value="2147483647"/>
<param name="extractorPoolSize" value="0"/>
<param name="extractorTimeout" value="100"/>
<param name="extractorBackLogSize" value="100"/>
</SearchIndex>
</Workspace>
<!--
Configures the versioning
-->
<Versioning rootPath="${rep.home}/version">
<!--
Configures the filesystem to use for versioning for the respective
persistence manager
-->
<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/version"/>
</FileSystem>
<!--
Configures the perisistence manager to be used for persisting version state.
Please note that the current versioning implementation is based on
a 'normal' persistence manager, but this could change in future
implementations.
-->
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.H2PersistenceManager">
<param name="bundleCacheSize" value="8"/>
<param name="consistencyCheck" value="true"/>
<param name="consistencyFix" value="true"/>
<param name="minBlobSize" value="16384"/>
<param name="driver" value="org.h2.Driver"/>
<param name="url" value="jdbc:h2:file:${rep.home}/version/database"/>
<param name="user" value="sa"/>
<param name="password" value=""/>
<param name="schema" value="h2"/>
<param name="schemaObjectPrefix" value=""/>
<param name="errorHandling" value=""/>
<param name="lockTimeout" value="10000"/>
</PersistenceManager>
</Versioning>
<!--
Search index for content that is shared repository wide
(/jcr:system tree, contains mainly versions)
The same parameters are supported as in the search index configuration
inside the workspace definition element.
This element is optional. If omitted, the /jcr:system tree will not be
indexed and no results will be returned for that tree!
-->
<SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
<param name="path" value="${rep.home}/repository/index"/>
</SearchIndex>
</Repository>