jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hsp_ <piccina...@ibest.com.br>
Subject Change the PM to DbDataStore.
Date Mon, 09 Feb 2009 18:53:53 GMT

Hi;
I need to configure the repository in the other way it is working. I will
create a new empty instance.
Nowadays it is working with jackrabbit version 1.4.8, and the repository
configuration is (using by JNDI):
---------------------------
<Repository>
 <FileSystem
class="org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem">
  
  
  
  
 </FileSystem>
 <Security appName="Jackrabbit">
  <AccessManager class="server.seg.Security"></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.db.JNDIDatabaseFileSystem">
    
    
     
    
   </FileSystem>
  <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager">
   
   
    
   
   
  </PersistenceManager>
  <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
... </SearchIndex>
 </Workspace>
 <Versioning rootPath="${rep.home}/version">
  <FileSystem
class="org.apache.jackrabbit.core.fs.db.JNDIDatabaseFileSystem">
   
   
    
   
  </FileSystem>
  <PersistenceManager
class="org.apache.jackrabbit.core.persistence.db.JNDIDatabasePersistenceManager">
   
   
    
   
   
  </PersistenceManager>
 </Versioning>
 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
  
 </SearchIndex>
</Repository>
---------------------------
I did changes in this file, to use the DbDataStore, but whitout sucess,
follow the file:
=====================
<Repository>
 <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
  
  
  
  
 </FileSystem>
 <Security appName="Jackrabbit">
  <AccessManager class="server.seg.Security"></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.db.DbFileSystem">
    
    
     
    
   </FileSystem>
   <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
    
    
     
    
   </PersistenceManager>
   <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
... </SearchIndex>
  </Workspace>
  <Versioning rootPath="${rep.home}/version">
   <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
    
    
     
    
   </FileSystem>
   <PersistenceManager
class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
    
    
     
    
   </PersistenceManager>
  </Versioning>
  <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
   
   
   
  </SearchIndex>     
  <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
   
   
   
  </DataStore>
</Repository>
=====================
This way I am getting the error in jboss 4.0.5:
2009-02-09 16:51:59,709 INFO  [org.apache.jackrabbit.core.RepositoryImpl]
Starting repository...
2009-02-09 16:51:59,732 ERROR
[org.apache.jackrabbit.core.fs.db.DbFileSystem] failed to initialize file
system
java.sql.SQLException: No suitable driver found for java:jdbc/DesenvDS
	at java.sql.DriverManager.getConnection(DriverManager.java:602)
	at java.sql.DriverManager.getConnection(DriverManager.java:185)
	at
org.apache.jackrabbit.core.fs.db.DbFileSystem.getConnection(DbFileSystem.java:187)
	at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.initConnection(DatabaseFileSystem.java:956)
	at
org.apache.jackrabbit.core.fs.db.DatabaseFileSystem.init(DatabaseFileSystem.java:175)
	at
org.apache.jackrabbit.core.config.FileSystemConfig.createFileSystem(FileSystemConfig.java:47)
	at
org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:244)
	at
org.apache.jackrabbit.core.RepositoryImpl.create(RepositoryImpl.java:557)
        ....
My intention is to prepare the configuration to migrate the actual
repository in the new PM format because the deprecated PM I am using.
Have I doing something wrong, or it will not working with JNDI? I have
followed the instructions in the wiki.
Regards
Helio.
-- 
View this message in context: http://www.nabble.com/Change-the-PM-to-DbDataStore.-tp21919003p21919003.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message