jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phill Ashworth" <ph...@inversebit.com>
Subject MemoryFileSystem configuration for testing
Date Thu, 11 Jul 2013 07:52:55 GMT
I'm trying to set up a TransientRepository for testing with a 
MemoryFileSystem but Jackrabbit keeps complaining that "MemoryFileSystem 
does not contain a property named path". My repository.xml and full 
exception are below.
I do have the path property configured so I really can't see what the 
problem is, any suggestions appreciated.

Repository repository = new TransientRepository(repoConfig, tempDir);

<?xml version="1.0"?>
<!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD 
Jackrabbit 1.5//EN"
         "http://jackrabbit.apache.org/dtd/repository-1.5.dtd">
<Repository>
     <FileSystem 
class="org.apache.jackrabbit.core.fs.mem.MemoryFileSystem">
         <param name="path" value="${rep.home}/repository"/>
     </FileSystem>

     <Security appName="Jackrabbit">
         <SecurityManager 
class="org.apache.jackrabbit.core.security.simple.SimpleSecurityManager"
                          workspaceName="security">
         </SecurityManager>

         <AccessManager 
class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
             <!-- <param name="config" value="${rep.home}/access.xml"/> 
-->
         </AccessManager>

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

     <Workspaces rootPath="${rep.home}/workspaces" 
defaultWorkspace="default"/>

     <Workspace name="${wsp.name}">
         <FileSystem 
class="org.apache.jackrabbit.core.fs.mem.MemoryFileSystem">
             <param name="path" value="${wsp.home}"/>
         </FileSystem>
         <PersistenceManager 
class="org.apache.jackrabbit.core.persistence.mem.InMemBundlePersistenceManager">
             <param name="persistent" value="false"/>
         </PersistenceManager>
     </Workspace>

     <Versioning rootPath="${rep.home}/version">
         <FileSystem 
class="org.apache.jackrabbit.core.fs.mem.MemoryFileSystem">
             <param name="path" value="${rep.home}/version"/>
         </FileSystem>
         <PersistenceManager 
class="org.apache.jackrabbit.core.persistence.mem.InMemBundlePersistenceManager">
             <param name="persistent" value="false"/>
         </PersistenceManager>
     </Versioning>
</Repository>


(2013-07-11 09:47:07,219 [http-listener(4)]) ERROR 
o.a.j.core.RepositoryImpl - failed to start Repository: Configured class 
org.apache.jackrabbit.core.fs.mem.MemoryFileSystem does not contain a 
property named path
org.apache.jackrabbit.core.config.ConfigurationException: Configured 
class org.apache.jackrabbit.core.fs.mem.MemoryFileSystem does not 
contain a property named path
	at 
org.apache.jackrabbit.core.config.BeanConfig.newInstance(BeanConfig.java:208) 
~[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.config.RepositoryConfigurationParser$6.getFileSystem(RepositoryConfigurationParser.java:1164)

~[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.config.RepositoryConfig.getFileSystem(RepositoryConfig.java:916)

~[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:262) 
[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:589) 
[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.TransientRepository$2.getRepository(TransientRepository.java:232)

~[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.TransientRepository.startRepository(TransientRepository.java:280)

~[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:376) 
~[jackrabbit-core-2.6.2.jar:2.6.2]
	at 
org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:111) 
~[jackrabbit-jcr-commons-2.6.2.jar:na]

Mime
View raw message