You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Bilikiss Kola-Abiola <bi...@gmail.com> on 2006/03/16 00:04:27 UTC
Login Configuration
Hello
I've been working with jackrabbit for a while with no complaints. But now
i've been running some tests and I get the following error. It's complaining
about the login configuration. I've set the path to jaas.config in my
java.security file but I still get this error. Any help would be greatly
appreciated.
Thanks
Setting up repository
- LocalFileSystem initialized at path c:\temp\repository\repository
- LocalFileSystem initialized at path c:\temp\repository\versions
- Starting repository...
- no custom node type definitions found
- LocalFileSystem initialized at path c:\temp\repository\versions\blobs
- initializing workspace 'default'...
- LocalFileSystem initialized at path c:\temp\repository\workspaces\default
- LocalFileSystem initialized at path
c:\temp\repository\workspaces\default\blobs
- workspace 'default' initialized
- Index initialized: c:\temp\repository\workspaces\default/index
- Repository started
java.lang.SecurityException: Unable to locate a login configuration
at com.ibm.security.auth.login.ConfigFile.<init>(ConfigFile.java:128)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
NativeConstructorAccessorImpl.java:80)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
DelegatingConstructorAccessorImpl.java:44)
at java.lang.reflect.Constructor.newInstance(Constructor.java:315)
at java.lang.Class.newInstance3(Class.java:367)
at java.lang.Class.newInstance(Class.java:305)
at javax.security.auth.login.Configuration$3.run(Configuration.java:243)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java
:351)
at javax.security.auth.login.Configuration.getConfiguration(
Configuration.java:237)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:192)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java
:287)
at javax.security.auth.login.LoginContext.init(LoginContext.java:189)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:426)
at org.apache.jackrabbit.core.security.AuthContext$JAAS.<init>(
AuthContext.java:82)
at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java
:1052)
at org.apache.jackrabbit.core.RepositoryImpl.login(RepositoryImpl.java
:1091)
at com.ibm.smb.docStore.service.docStoreImpl.login(docStoreImpl.java:79)
at com.ibm.smb.docStore.service.docStoreImpl.initialize(
docStoreImpl.java:68)
at com.ibm.smb.docStore.service.test.docStoreListTest.testAddDoc(
docStoreListTest.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:192)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.ibm.security.auth.login.ConfigFile.init(ConfigFile.java:237)
at com.ibm.security.auth.login.ConfigFile.<init>(ConfigFile.java:126)
... 37 more
java.lang.NullPointerException
at com.ibm.smb.docStore.service.docStoreImpl.getAllDocs(
docStoreImpl.java:304)
at com.ibm.smb.docStore.service.test.docStoreListTest.testAddDoc(
docStoreListTest.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)Returning all
Documents in Team Space
- Shutting down repository...
- shutting down workspace 'default'...
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:192)
- Notification of EventListeners stopped.
- IndexMerger terminated
- Index closed: c:\temp\repository\workspaces\default/index
- workspace 'default' has been shutdown
- Repository has been shutdown
java.lang.NullPointerException
at com.ibm.smb.docStore.service.test.docStoreListTest.testAddDoc(
docStoreListTest.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:436)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:311)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:192)