2 Replies Latest reply on Jan 14, 2005 2:24 AM by Weixin Wang

    Error on SessionClient of JAAS Example

    Weixin Wang Newbie

      Hello

      I ran the example on my JBoss Server 4.01RC2.

      It is fine to access from web, but I have got an error for using SessionClient.

      java.lang.SecurityException: ???????????????
       at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
       at java.lang.Class.newInstance0(Class.java:308)
       at java.lang.Class.newInstance(Class.java:261)
       at javax.security.auth.login.Configuration$3.run(Configuration.java:221)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215)
       at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170)
       at java.security.AccessController.doPrivileged(Native Method)
       at javax.security.auth.login.LoginContext.init(LoginContext.java:167)
       at javax.security.auth.login.LoginContext.<init>(LoginContext.java:404)
       at org.jboss.docs.jaas.howto.SessionClient.main(SessionClient.java:65)
      Caused by: java.io.IOException: ???????????????
       at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206)
       at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:95)
       ... 14 more


      Could anybody tell me how to fix it?
      Thank you