I'm having problems (security exceptions) using JMS from within an applet.

I wrote a simple applet that subscribes to a topic.

The broker host and web server are running on the same

box but I keep getting a security exception when the

applet attempts to subscribe to a topic.

Has anybody done this before?

here is what I get:

Swing: checked access to system event queue.

netscape.security.AppletSecurityException: security.checkpropsaccess.key

at java.lang.Throwable.<init>(Compiled Code)

at java.lang.Exception.<init>(Compiled Code)

at java.lang.RuntimeException.<init>(Compiled Code)

at java.lang.SecurityException.<init>(Compiled Code)

at netscape.security.AppletSecurityException.<init>(Compiled Code)

at netscape.security.AppletSecurityException.<init>(Compiled Code)

at netscape.security.AppletSecurity.checkPropertyAccess(Compiled Code)

at java.lang.SecurityManager.checkPropertyAccess(Compiled Code)

at java.lang.System.getProperty(Compiled Code)

at com.sun.messaging.AdministeredObject.getCurrentConfiguration(Compiled Code)

at com.sun.messaging.BasicTopicConnectionFactory.createTopicConnection(Compiled Code)

* at com.sun.messaging.BasicTopicConnectionFactory.createTopicConnection(Compiled Code)

at nfs.voice.support.LogMonitor.initSysLogSubscriber(Compiled Code)

at nfs.voice.support.LogMonitor.init(Compiled Code)

at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)

at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)

at java.awt.EventDispatchThread.run(Compiled Code)

at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)

netscape.security.AppletSecurityException: security.checkexit: 1

at java.lang.Throwable.<init>(Compiled Code)

at java.lang.Exception.<init>(Compiled Code)

at java.lang.RuntimeException.<init>(Compiled Code)

at java.lang.SecurityException.<init>(Compiled Code)

at netscape.security.AppletSecurityException.<init>(Compiled Code)

at netscape.security.AppletSecurityException.<init>(Compiled Code)

at netscape.security.AppletSecurity.checkExit(Compiled Code)

at java.lang.SecurityManager.checkExit(Compiled Code)

at java.lang.Runtime.exit(Compiled Code)

at java.lang.System.exit(Compiled Code)

at nfs.voice.support.LogMonitor.initSysLogSubscriber(Compiled Code)

at nfs.voice.support.LogMonitor.init(Compiled Code)

* at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)

at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)

at java.awt.EventDispatchThread.run(Compiled Code)

at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)

[2909 byte] By [christenscreen] at [2007-11-25 8:08:02]
# 1

Applets are not allowed (unless signed) to access

properties or create connections (both are needed for

IMQ clients)

You should be able to set the correct permissions by

building your applet class(es) into a jar file and

signing it using the jarsigner tool ...

christenscreen at 2007-7-1 13:59:35 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...