I am getting a runtime error deploying a JOGL applet in a ICEfaces/JSF application. The markup for the applet, which is listed below, is the same in the html source as it is in the generated JSP source. Yet, it runs in the html version. A non-JOGL applet will run just fine in either (html or jsp generated).
Suggestions? Perhaps there is a configuration file that needs to be updated? There is very little documentation on applets in JSF/JSP apps.
[quote]Java Plug-in 1.6.0_03
Using JRE version 1.6.0_03 Java HotSpot™ Client VM
JNLPAppletLauncher: static initializer
os.name = linux
nativePrefix = lib nativeSuffix = .so
tmpRootDir = /tmp/jnlp-applet/jln30691
Applet.init
subapplet.classname = DemoApplet
subapplet.displayname = OpinionMap
Applet.start
os.name = linux
os.arch = i386
processNativeJar: using previously cached: /home/rogene/.jnlp-applet/cache/localhost_8080/71df4eda7b653fcf498962bb42a738cc8d225078/gluegen-rt-natives-linux-i586.jar
validateCertificates:
VALIDATE: libgluegen-rt.so
extractNativeLibs:
EXTRACT: libgluegen-rt.so(gluegen-rt)
processNativeJar: using previously cached: /home/rogene/.jnlp-applet/cache/localhost_8080/71df4eda7b653fcf498962bb42a738cc8d225078/jogl-natives-linux-i586.jar
validateCertificates:
VALIDATE: libjogl.so
VALIDATE: libjogl_awt.so
VALIDATE: libjogl_cg.so
extractNativeLibs:
EXTRACT: libjogl.so(jogl)
EXTRACT: libjogl_awt.so(jogl_awt)
EXTRACT: libjogl_cg.so(jogl_cg)
Exception in thread “AWT-EventQueue-2” java.lang.NoClassDefFoundError: javax/media/opengl/GLCanvas
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1889)
at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658)
at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
[/quote]
[ <f:verbatim escape="false">
<applet code="org.jdesktop.applet.util.JNLPAppletLauncher"
height="400" width="600"
archive="http://download.java.net/media/applet-launcher/applet-launcher.jar, http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-curre
nt/jogl.jar, http://download.java.net/media/gluegen/webstart/gluegen-rt.jar, DemoApplet.jar, worldwind.jar">
<param name="codebase_lookup" value="false" />
<param name="subapplet.classname" value="DemoApplet" />
<param name="subapplet.displayname" value="OpinionMap" />
<param name="noddraw.check" value="true" />
<param name="progressbar" value="true" />
<param name="jnlpNumExtensions" value="1" />
<param name="jnlpExtension1"
value="http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1-rc5/webstart/jogl.jnlp" />
</applet>
</f:verbatim>/code]