DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005

    Help!!! Unable To Locate Login Configuration Error!


    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:
    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 :-

    com.platform.drm.loginmodules.LSFLoginModule required debug=true;

    If anyone could help me I would be very grateful! Its stressing me out!

  2. #2
    Join Date
    Jan 2005
    any ideas anyone????

  3. #3
    Join Date
    Jan 2005

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.