It's probably not this simple, but I' ll raise it anyway.
If you ran your example from
an MS-DOS shell, the path you supplied for the auth.conf file
is not correct, since Windows doesn't known what to do with
${jboss_home}. You should use %jboss_home% instead. That
is if you have defined it!
 
Regards,
 
Cor
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Darius Davidavicius
Sent: Monday, February 05, 2001 15:06
To: jBoss
Subject: RE: [jBoss-User] JAAS security, login mechanism

Hi all,

I have read the documment about JASS for JBOSS (By Scott Stark <mailto:[EMAIL PROTECTED]> for JBoss-PRE2.1, Jan 20 2001)
I i want to try it. I using JBoss Pre21 (previous week compile)
After i did all describet steps and run the sample
E:\TOOLS\JAVA\JDK\bin\java -Djava.security.auth.login.config=file://${jboss_home}/client/auth.conf com.ls.dialog.ejb.dialogjaas.JAASClient user1 password1

i got the exception:
Exception in thread "main" java.lang.SecurityException: Unable to properly expan
d file://${jboss_home}/client/auth.conf
at com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(Confi
gFile.java:221)
at javax.security.auth.login.LoginContext.init(LoginContext.java:172)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
at com.ls.dialog.ejb.dialogjaas.JAASClient.main(JAASClient.java:55)

Any suggestion what i did wrong?

Thanks in advance,
D&D

Reply via email to