Hi,

Roland Kofler wrote:
> Hi I have a problem with my repository.xml
> When I use ${wsp.home} for the SearchIndex tag, I get an
> 
> javax.jcr.RepositoryException: SearchIndex requires 'path' parameter in
> configuration!: SearchIndex requires 'path' parameter in configuration!:
> SearchIndex requires 'path' parameter in configuration!

You seem to have specified a path for the FileSystem of the SearchIndex,
but the lucene SearchIndex component needs a path parameter for itself
as well. See below for an augmented version of your repository
configuration file.

> This doesnt happen when I hardcode my path...  where do I have  to 
> define  ${wsp.home} ?

The ${wsp.home} variable is defined automatically by Jackrabbit to point
to the directory created for the workspace being configured.

BR,

Jukka Zitting

----

> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Repository>
>     <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>         <param name="path" value="${rep.home}/repository"/>
>     </FileSystem>
>     <Security appName="Jackrabbit">
>         <AccessManager 
> class="org.apache.jackrabbit.core.security.SimpleAccessManager"/>
>     </Security>
>     <Workspaces  rootPath="${rep.home}/workspaces"    
> defaultWorkspace="default" />
>     <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.state.xml.XMLPersistenceManager"/>
>         <SearchIndex 
> class="org.apache.jackrabbit.core.query.lucene.SearchIndex">

              <param name="path" value="${wsp.home}/index"/>

>             <FileSystem 
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>                 <param name="path" value="${wsp.home}/index"/>
>             </FileSystem>
>         </SearchIndex>
>     </Workspace>
>     <Versioning rootPath="${rep.home}/versions">
>         <FileSystem 
> class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>             <param name="path" value="${rep.home}/versions"/>
>         </FileSystem>
>         <PersistenceManager 
> class="org.apache.jackrabbit.core.state.xml.XMLPersistenceManager" />
>     </Versioning>
> </Repository>

Reply via email to