I've done some reading on how other applications use JR, and make some
modifications to jackrabbit.xml. The whole file is as follow:

<!DOCTYPE Repository
          PUBLIC &quot;-//The Apache Software Foundation//DTD Jackrabbit
2.0//EN&quot;
          &quot;http://jackrabbit.apache.org/dtd/repository-2.0.dtd&quot;>

<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        
    </FileSystem>

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

        <AccessManager
class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
        </AccessManager>

        <LoginModule class="org.ofbiz.jcr.loader.OFBizLoginModule"/>
    </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.pool.PostgreSQLPersistenceManager">
           
           
           
           
           
           
           
         </PersistenceManager>
    </Workspace>

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

        
         <PersistenceManager
class="org.apache.jackrabbit.core.persistence.pool.PostgreSQLPersistenceManager">
           
           
           
           
           
           
           
         </PersistenceManager>
    </Versioning>

</Repository>


Now, the error is:

2012-06-07 15:27:35,626 (main) [  GenericDispatcher.java:69 :INFO ] Creating
new dispatcher [RMIDispatcher] (main)
5315 [main] INFO org.apache.jackrabbit.core.config.RepositoryConfig -
Creating repository directory runtime/data/jcr
5488 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting
repository...
5492 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path runtime/data/jcr/repository
5677 [main] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry - no
custom node type definitions found
5704 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path runtime/data/jcr/version
5909 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing
workspace 'default'...
5909 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path runtime/data/jcr/workspaces/default
6037 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
'default' initialized
6041 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - created system
workspace: security
6048 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - SecurityManager
= class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager
6048 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing
workspace 'security'...
6050 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem -
LocalFileSystem initialized at path runtime/data/jcr/workspaces/security
6057 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
'security' initialized
6058 [main] INFO
org.apache.jackrabbit.core.security.simple.SimpleSecurityManager - init:
using Repository LoginModule configuration for Jackrabbit
6066 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository
started (577ms)
6066 [main] INFO org.apache.jackrabbit.core.TransientRepository - Transient
repository initialized
2012-06-07 15:27:37,343 (main) [  GenericDispatcher.java:69 :INFO ] Creating
new dispatcher [auth-dispatcher] (main)
6079 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Shutting down
repository...
6087 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - shutting down
workspace 'default'...
6088 [main] INFO
org.apache.jackrabbit.core.observation.ObservationDispatcher - Notification
of EventListeners stopped.
6094 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
'default' has been shutdown
6094 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - shutting down
workspace 'security'...
6094 [main] INFO
org.apache.jackrabbit.core.observation.ObservationDispatcher - Notification
of EventListeners stopped.
6095 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace
'security' has been shutdown
6098 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository has
been shutdown
6098 [main] INFO org.apache.jackrabbit.core.TransientRepository - Transient
repository shut down
2012-06-07 15:27:37,375 (main) [     JCRFactoryImpl.java:177:ERROR] 
---- exception report
----------------------------------------------------------
Exception: javax.jcr.LoginException
Message: LoginModule could not perform authentication: null
---- cause
---------------------------------------------------------------------
Exception: javax.security.auth.login.LoginException
Message: LoginModule could not perform authentication: null
---- cause
---------------------------------------------------------------------
Exception: java.lang.NullPointerException
Message: null
---- stack trace
---------------------------------------------------------------
java.lang.NullPointerException
o


Now OFBiz won't start... how's other list members use PostgreSQL?

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Re-Failed-to-start-r1346929-tp4633308p4633318.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to