Hi Charleslcso,
This link will help you to solve your problem http://markmail.org/search/?q=LoginModule+could+not+perform+authentication%3A+null#query:LoginModule%20could%20not%20perform%20authentication%3A%20null+page:1+mid:pmtbhlnvhorggadg+state:results Regards, Jay Jain On 06/07/2012 07:50 AM, charleslcso wrote: > BAU: checked out, revised config files, copied JDBC driver, build, load ext > seed, start ofbiz. > > Then: > > > 2012-06-07 10:06:19,859 (ofbiz-config-0) [ ServiceEcaUtil.java:124:INFO > ] Loaded [ 76] Service ECA Rules from > file:/Applications/apache-ofbiz/applications/order/servicedef/secas.xml > 2012-06-07 10:06:20,023 (main) [ CatalinaContainer.java:372:INFO ] > createHost(StandardEngine[default-server], 0.0.0.0) > 2012-06-07 10:06:20,041 (main) [ CatalinaContainer.java:512:INFO ] Creating > connector for address='0.0.0.0' port='8009' protocol='ajp' > 2012-06-07 10:06:20,119 (main) [ CatalinaContainer.java:512:INFO ] Creating > connector for address='0.0.0.0' port='8080' protocol='http' > 2012-06-07 10:06:20,161 (main) [ CatalinaContainer.java:512:INFO ] Creating > connector for address='0.0.0.0' port='8443' protocol='https' > 2012-06-07 10:06:20,613 (main) [ ContainerLoader.java:223:INFO ] > [Startup] Starting containers... > 2012-06-07 10:06:20,622 (main) [ GenericDispatcher.java:69 :INFO ] Creating > new dispatcher [RMIDispatcher] (main) > 7476 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Starting > repository... > 7482 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > LocalFileSystem initialized at path runtime/data/jcr/repository > 7724 [main] INFO org.apache.jackrabbit.core.nodetype.NodeTypeRegistry - no > custom node type definitions found > 7755 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > LocalFileSystem initialized at path runtime/data/jcr/version > 9132 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing > workspace 'default'... > 9132 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > LocalFileSystem initialized at path runtime/data/jcr/workspaces/default > 9567 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace > 'default' initialized > 9576 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - SecurityManager > = class org.apache.jackrabbit.core.security.simple.SimpleSecurityManager > 9576 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - initializing > workspace 'security'... > 9576 [main] INFO org.apache.jackrabbit.core.fs.local.LocalFileSystem - > LocalFileSystem initialized at path runtime/data/jcr/workspaces/security > 9670 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace > 'security' initialized > 9672 [main] INFO > org.apache.jackrabbit.core.security.simple.SimpleSecurityManager - init: > using Repository LoginModule configuration for Jackrabbit > 9679 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository > started (2203ms) > 9679 [main] INFO org.apache.jackrabbit.core.TransientRepository - Transient > repository initialized > 2012-06-07 10:06:24,318 (main) [ GenericDispatcher.java:69 :INFO ] Creating > new dispatcher [auth-dispatcher] (main) > 9693 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Shutting down > repository... > 9694 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - shutting down > workspace 'default'... > 9694 [main] INFO > org.apache.jackrabbit.core.observation.ObservationDispatcher - Notification > of EventListeners stopped. > 9722 [main] INFO org.apache.jackrabbit.core.util.db.DerbyConnectionHelper - > Database 'runtime/data/jcr/workspaces/default/db' shutdown. > 9722 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace > 'default' has been shutdown > 9722 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - shutting down > workspace 'security'... > 9722 [main] INFO > org.apache.jackrabbit.core.observation.ObservationDispatcher - Notification > of EventListeners stopped. > 9730 [main] INFO org.apache.jackrabbit.core.util.db.DerbyConnectionHelper - > Database 'runtime/data/jcr/workspaces/security/db' shutdown. > 9730 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - workspace > 'security' has been shutdown > 9737 [main] INFO org.apache.jackrabbit.core.util.db.DerbyConnectionHelper - > Database 'runtime/data/jcr/version/db' shutdown. > 9743 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - Repository has > been shutdown > 9743 [main] INFO org.apache.jackrabbit.core.TransientRepository - Transient > repository shut down > 2012-06-07 10:06:24,380 (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 > org.ofbiz.jcr.loader.OFBizLoginModule.login(OFBizLoginModule.java:114) > org.apache.jackrabbit.core.security.authentication.LocalAuthContext.login(LocalAuthContext.java:86) > org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java:1458) > org.apache.jackrabbit.core.TransientRepository.login(TransientRepository.java:381) > org.apache.jackrabbit.commons.AbstractRepository.login(AbstractRepository.java:123) > ...... > > > > What's going on please? > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Failed-to-start-r1346929-tp4633306.html > Sent from the OFBiz - User mailing list archive at Nabble.com. |
Hi Jay Jain
Really appreciate your quick reply! That's invaluable info you provided. Followed the instruction, and now the : Replacement not found for ${wsp.name} is giving me trouble. Searched Google a bit, and there is nothing specific on the OFBiz User List. Would you be able to help further? |
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 "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN" "http://jackrabbit.apache.org/dtd/repository-2.0.dtd"> <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? |
Free forum by Nabble | Edit this page |