• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Unable to locate a login configuration

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI
I am just started using JASS
so was reading
http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/tutorials
and downloaded the code and excuted the code as said (stand alone), but it is giving me this error.
Can anybody tell me the reason
"Unable to locate a login configuration"
regards
Anubhuti
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,
I didn't check the code you asked about , but in general I can direct you to the following useful link :
http://www.genuitec.com/products/JDK14_WLS61.pdf
For your problem , the solution is
"The solution to the security problem is to define a JAAS login configuration, save it to a file, and
point the JVM to the file�s location."
Thanx
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like your jaas configuration file has not been made known to the java runtime. You need to place an entry in the java.security file found in $JAVA_HOME/jre/lib. The entry is for the login configuration file and the property is 'login.config.url'. There is a commented entry in the file that comes with the jdk, ootb, so all you have to do is uncomment the entry and point it to your login configuration file.
Here is a link to the discussion of this in the tutorial:
http://java.sun.com/j2se/1.4.2/docs/guide/security/jgss/tutorials/LoginConfigFile.html
Good luck,
Bill
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic