-
Help!!! Unable To Locate Login Configuration Error!
Hi,
I have been trying to run an application (a jar) which contains classes, some other jar libraries and also 2 conf files including auth.conf.
I have also stored this auth.conf file in a temp dir in C drive - "C:\test\auth.conf"
But when I try to run this program at the command prompt with the command
java -jar LsfMonitor.jar -Djava.security.auth.login.config="C:\test\auth.conf"
I get the following error!!!
Unable to locate a login configuration
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(UnknownSource)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at javax.security.auth.login.Configuration$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.Configuration.getConfiguration(Unknown Source)
at javax.security.auth.login.LoginContext$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(Unknown Source)
at javax.security.auth.login.LoginContext.<init>(Unknown Source)
at com.platform.drm.AuthenticationController.login(AuthenticationController.java:7 9)
at LsfInterface.login(LsfInterface.java:70)
at LsfMonitor$4.keyPressed(LsfMonitor.java:288)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
121)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1734)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1147)
at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1730)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3067)
at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:1748)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:2970)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3338)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1473)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2429)
at LsfMonitor.showGUI(LsfMonitor.java:133)
at LsfMonitor.main(LsfMonitor.java:99)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(Unknown Source)
... 34 more
I don't understand why it says unknown source when I have specified where the auth.conf file is.
I have tried everything...copied the auth.conf in java home directory, in the jar file, changed the java security policy file and security file but to no avail !!
The contents of the auth.conf file is this :-
myapp{
com.platform.drm.loginmodules.LSFLoginModule required debug=true;
};
If anyone could help me I would be very grateful! Its stressing me out!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks