I'm getting a class initialization error when I try to launch an applet using
ActiveMQ 5.0.0.  The applet is basically a variant of the provided examples,
and they work within the eclipse applet viewer so I know the basic code is
sound.

The error is:

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.activemq.ActiveMQConnection
        at com.si.applet.JmsApplet.<init>(JmsApplet.java:36)
        at
com.si.applet.ProducerConsumerApplet.<init>(ProducerConsumerApplet.java:36)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance0(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at sun.applet.AppletPanel.createApplet(Unknown Source)
        at sun.plugin.AppletViewer.createApplet(Unknown Source)
        at sun.applet.AppletPanel.runLoader(Unknown Source)
        at sun.applet.AppletPanel.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

and I've sometimes see a reference to an access control violation with a
hash map property.  Unfortunately I can't reproduce the error at this time.

This may be a simple applet configuration error -- we're all very familiar
with j2ee, but haven't done much with applets.  I'm loading the j2ee and
activemq libraries via an applet 'archive' property.  (We'll switch to
'object' once we get everything working.  One step at a time. :working:)

-- 
View this message in context: 
http://www.nabble.com/ActiveMQ-5.0---java-applets-tp15665219s2354p15665219.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to