Hello again! I'm still trying to get my applet working :-). But to no success. Before I added security the applet was working. Not I get a SecurityException when the LoginContext is instantiating. I've tried to sign the applet jar and it seems like I got a few steps further. As can be seen below, the stack trace says my applet can't read the property java.securyity.auth.debug. But this is very strange as I made a policy entry giving all permissions to the applet (I also tried to add this PropertyPermission but to no effect.) c:\appletviewer http://xxx.xxx.xxx.xxx:8080/appl.html Setting java.security.auth.login.config to file:///config/auth.conf Exception occurred during event dispatching: java.lang.ExceptionInInitializerError: java.security.AccessControlException: acc ess denied (java.util.PropertyPermission java.security.auth.debug read) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:272) at java.security.AccessController.checkPermission(AccessController.java: 399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12 78) at java.lang.System.getProperty(System.java:560) at javax.security.auth.login.Debug$1.run(Debug.java:27) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.Debug.<clinit>(Debug.java:24) at javax.security.auth.login.LoginContext.<clinit>(LoginContext.java:147 ) Regards, Pelle Poluha > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Pelle Poluha > Sent: den 12 juni 2001 14:31 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] unable to instantiate LoginConfiguration from > applet > > > Hello! > > I'm trying to run my client as an applet. The users have to > login before > entering the application and here the program fails with an > SecurityException, se below. I have adjusted the .policy file > by adding an > AllPermission policy. I've tried to bundle the auth.conf file > in the jar > file containing the applet but also tried to have the > auth.conf file at a > specified location on the drive (ie c:\config\auth.conf). But > nothing helps. > > The java.security property is set inside the applet, using > System.setProperty(...); > > Any ideas? > > I'm using JBoss 2.2.2 on Win2K. > > Regards, > Pelle Poluha > > C:\>appletviewer http://xxx.xxx.xxx.xxx:8080/app.html > Setting java.security.auth.login.config to file://c:\config\auth.conf > java.lang.SecurityException: unable to instantiate LoginConfiguration > at > javax.security.auth.login.Configuration.getConfiguration(Configuratio > n.java:212) > at > javax.security.auth.login.LoginContext$1.run(LoginContext.java:166) > at java.security.AccessController.doPrivileged(Native Method) > at > javax.security.auth.login.LoginContext.init(LoginContext.java:163) > at > javax.security.auth.login.LoginContext.<init>(LoginContext.java:319) > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
