Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

JAAS authentication in java

Hi,

I am trying below example
http://www.avajava.com/tutorials/lessons/how-do-i-create-a-login-module.html?page=2

when i run the JaasAuthenticationTest.java

I am getting error as below

Callback Handler - constructor called
Exception in thread "main" java.lang.SecurityException: jaas.config (No such file or directory)
      at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)



How fix this issue. I have cearly understood what author is trying to demonstrate in this example.

please advise
Any links resources ideas highly appreciated. Thanks in advance
JaasEx.jpg
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

when i try to create jaas.confi file(after clicking on the default package --->other--->text-->jaas without giving extension as jaas.txt then it is creatig as some asp fule which is not what i want). How to create config file. please advise
Just rename it to the proper extension.