Hi, its been a while since I have posted here, but I am faced with the problem of getting JoGL working on OSX browsers again.
When I go to the example applet page: http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal.html I get a "General Exception" (below) on my 10.7.5 machine, but this works just fine on my friend's OSX 10.8.2 machine. and a stack trace inside the Java Console: security: resource name "com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.class" in http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar : java.lang.SecurityException: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library basic: exception: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library. java.lang.SecurityException: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library at com.sun.deploy.security.CPCallbackHandler$ParentElement.checkResource(Unknown Source) at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source) at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source) at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source) at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source) at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:722) Ignored exception: java.lang.SecurityException: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library I am having similar issues with my own Applet, which works just fine on Windows and Linux. Any help would be much appreciated, I have installed/uninstalled Java 6/7 a couple of times, but Java 7 is the only Java version installed now. Thanks, Blaine |
Just tested the same page in Safari on 10.8 + JDK 1.7. Applet runs fine.
Match: digest selected JREDesc: JREDesc[version 1.4+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0: platform is: 1.7 product is: 1.7.0_17 location is: http://java.sun.com/products/autodl/j2se path is: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java args is: native platform is: Mac OS X, x86_64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 2.2.7 found at /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/ enabled is: true registered is: true system is: true |
thanks for the response. I realize that it works on other machines, but my post is asking when it doesn't work, what should I do to fix it. I tried to uninstall Java and the browsers, and reinstall, and it still doesn't work.
Thanks in advance, Blaine |
Administrator
|
Try to modify the JAR manifest so that it uses the Trusted-Only property instead of Trusted-Library. Maybe try to sign all JARs with your own certificate, trusted or not.
Julien Gouesse | Personal blog | Website
|
Administrator
|
On 03/08/2013 11:58 PM, gouessej [via jogamp] wrote:
> Try to modify the JAR manifest so that it uses the Trusted-Only property > instead of Trusted-Library. Maybe try to sign all JARs with your own > certificate, trusted or not. Hi Julien, can you shed some light to that manifest property ? @blainebell: - Which Java version do you use ? - Which browser do you use ? - Fails on 'OSX 10.7.5', works on 'OSX 10.8.2', what are the differences in regards to the above (Java/Browser) ? Is it related to the OSCP issue ? http://forum.jogamp.org/jars-not-correct-packed-in-release-candidates-td4026316.html#a4026489 ~Sven signature.asc (911 bytes) Download Attachment |
Thanks for your response!
I actually have ""Enable online certificate validation", so I'm not sure if its the OSCP issue or not. But I have tried to change the Security settings, to "Low" and then to "Custom", and nothing seems to work. As far as the JAVA version, we both just updated: Java Plug-in 10.17.2.02 Using JRE version 1.7.0_17-b02 Java HotSpot(TM) 64-Bit Server VM and the Safari browser version is Safari 6.0.2 on both, 7536.26.17 on the 10.7.5 machine, and 8536.26.17 on the 10.8.2 machine. Its really strange that I can't just wipe everything, reload it, and have it work... There must be something I am missing. Thanks, Blaine |
Administrator
|
In reply to this post by Sven Gothel
It has been introduced in Java 1.6 update 10, it is extensively explained in the official Oracle documentation. It's easy to make a small Ant script to modify the manifest, just extract it from the JAR with the "unzip" task, tell Ant you just want to update it and add it as a property, then use the "jar" Ant task with "update" set to "true" and pointing to your modified manifest. I'm not a specialist of applets but I try to avoid things that don't work reliably everywhere. Edit.: It is explained here. Sorry but I don't advise anybody to mix signed and unsigned code. Just sign everything or sign nothing. Mixing signed and unsigned code leads to troubles on several platforms, either under Mac or under GNU Linux with IcedTea-web.
Julien Gouesse | Personal blog | Website
|
On OSX 10.7.5 whether I do:
javaws http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt.jnlp or go to this webpage: http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-gears-normal.html I get this error and the applet does not work: security: resource name "com/jogamp/newt/awt/applet/JOGLNewtApplet1Run.class" in http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar : java.lang.SecurityException: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library basic: exception: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library. java.lang.SecurityException: attempted to open sandboxed jar http://jogamp.org/deployment/archive/rc/v2.0-rc11/jar/jogl-all.jar as a Trusted-Library at com.sun.deploy.security.CPCallbackHandler$ParentElement.checkResource(Unknown Source) at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(Unknown Source) at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source) at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source) I blew away the cache directory for JAVA as well as deleting all applications. Not sure what else to do to this computer. Maybe someone already ran into this problem, but I can't seem to find the exact solution. Any help would be much appreciated Thanks, Blaine |
Free forum by Nabble | Edit this page |