jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaick <ja...@hotmail.fr>
Subject Problem with DerbydbPersistanceManager
Date Fri, 17 Aug 2007 16:49:08 GMT

Hi everybody,

I'm new in Jackrabbit !
I work in a custom webapp which use Documentum for document storage. I have
to replace Documentum with Jackrabbit. My application run with Apache Tomcat
5.5 Server. When I want to start Tomcat and register the Jackrabbit
repository with : "RegistryHelper.registerRepository(ctx, "repo",
configFile, repHomeDir, true);"

I have these errors :

javax.jcr.RepositoryException: Cannot instantiate persistence manager
org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager:
org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager:
org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager
	at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1035)
	at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:285)
	at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:234)
	at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
	at
org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:129)
	at
org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:115)
	at
org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:56)
	at
com.mh.pep.webapp.listener.AuthenticationProcessingFilter.getRepository(AuthenticationProcessingFilter.java:270)
	at
com.mh.pep.webapp.listener.AuthenticationProcessingFilter.doFilter(AuthenticationProcessingFilter.java:223)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
	at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassCastException:
org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager
	at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1030)
	... 30 more
java.lang.ClassCastException:
org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager
	at
org.apache.jackrabbit.core.RepositoryImpl.createPersistenceManager(RepositoryImpl.java:1030)
	at
org.apache.jackrabbit.core.RepositoryImpl.createVersionManager(RepositoryImpl.java:285)
	at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:234)
	at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:483)
	at
org.apache.jackrabbit.core.jndi.BindableRepository.init(BindableRepository.java:129)
	at
org.apache.jackrabbit.core.jndi.BindableRepository.create(BindableRepository.java:115)
	at
org.apache.jackrabbit.core.jndi.RegistryHelper.registerRepository(RegistryHelper.java:56)
	at
com.mh.pep.webapp.listener.AuthenticationProcessingFilter.getRepository(AuthenticationProcessingFilter.java:270)
	at
com.mh.pep.webapp.listener.AuthenticationProcessingFilter.doFilter(AuthenticationProcessingFilter.java:223)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
	at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
	at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
	at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.extremecomponents.table.filter.AbstractExportFilter.doFilter(AbstractExportFilter.java:49)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)



Here is my repository.xml file :



<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        
    </FileSystem>    
    <Security appName="Jackrabbit">
        <AccessManager
class="org.apache.jackrabbit.core.security.SimpleAccessManager">
        </AccessManager>
        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">         
              
        </LoginModule>
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default"/>
    <Workspace name="${wsp.name}">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            
        </FileSystem>

        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager">
          
          
        </PersistenceManager>

        <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
            
		
		
		 
		
		 
		
		
		
		
		 
		
		 
		 
		 
		 
		 
		 
		
        </SearchIndex>
    </Workspace>

    <Versioning rootPath="${rep.home}/version">
        <FileSystem
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            
        </FileSystem>

        <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.DerbyPersistenceManager">
          
          
        </PersistenceManager>

    </Versioning>
    <SearchIndex
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
        	
    </SearchIndex>
</Repository>


Someone knows what's happen ?
I don't understand why the cause of this exception comes from
"java.lang.ClassCastException" !

Thank you !

Jaick
-- 
View this message in context: http://www.nabble.com/Problem-with-DerbydbPersistanceManager-tf4286890.html#a12203066
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message