From: <Su...@ao...> - 2001-03-10 10:10:03
|
I'm having trouble with security and I have no idea why... I installed Java 2 SDK Standard Edition v1.3, and it created 2 seperate directories for the java run time environment, one of them is for the SDK and the other is for the Java 1.3 plugin. I changed the java.policy file. I installed GL4Java for IE/MS-JVM (no problems there), and installed it for the Java 1.3 plugin and for the SDK. Everything seemed ok to me at that point. I can compile GL4Java demo/example programs with javac with no errors, as well as my own tests. I can run in MS-JVM on your website and locally, no problem. I can run using the Java 1.3 plugin, and it works on your website... **here is the actual problem** But, the problem is, I can not run any applets locally (the demos or my own stuff), only the ones on your website!!! It comes back with an security error. Here is the console output (with a number of unnecesary things deleted)... Java(TM) Plug-in: Version 1.3.0_02 Using JRE version 1.3.0_02 Java HotSpot(TM) Client VM Proxy Configuration: no proxy java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.GL4JavaJauGljJNI13) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkLink(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at gl4java.GLContext.loadNativeLibraries(GLContext.java:711) at gl4java.awt.GLCanvas.<clinit>(GLCanvas.java:177) at MainApp.init(MainApp.java:139) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) So I have no idea what is going wrong. If you can let me know what it might be. The reason I am trying to get the plugin to work, is because I want to test out JAXP 1.1 (Java XML). I am want to port a 3d engine I developed in C++, the engine uses a file format similar to XML, and I am not sure how to install JAXP into MS-JVM (there is no instructions, I'm not sure if its even installable on it), or get GL4Java working with the Java 1.3 plugin, but looking at the amount of work that is required to install GL4Java on the Java 1.3 plugin I dont think I would like to put that on the browser clients. The only other route I have which is probably a little more rigorous is to port my parsing code over the Java, but that seems a bit hard to me considering I am just getting back into java after a couple of years of not using it. (Your project has sparked my interest back into it :)) |
From: Sven G. <sgo...@ja...> - 2001-03-11 01:39:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday 10 March 2001 11:11, Su...@ao... wrote: > I'm having trouble with security and I have no idea why... > > I installed Java 2 SDK Standard Edition v1.3, and it created 2 seperate > directories for the java run time environment, one of them is for the SDK > and the other is for the Java 1.3 plugin. I changed the java.policy file. I > installed GL4Java for IE/MS-JVM (no problems there), and installed it for > the Java 1.3 plugin and for the SDK. Everything seemed ok to me at that > point. > > I can compile GL4Java demo/example programs with javac with no errors, as > well as my own tests. > > I can run in MS-JVM on your website and locally, no problem. > > I can run using the Java 1.3 plugin, and it works on your website... > > **here is the actual problem** > But, the problem is, I can not run any applets locally (the demos or my own > stuff), only the ones on your website!!! It comes back with an security > error. Here is the console output (with a number of unnecesary things > deleted)... > > Java(TM) Plug-in: Version 1.3.0_02 > Using JRE version 1.3.0_02 Java HotSpot(TM) Client VM > > Proxy Configuration: no proxy > > java.lang.ExceptionInInitializerError: > java.security.AccessControlException: access denied > (java.lang.RuntimePermission loadLibrary.GL4JavaJauGljJNI13) at the solution is very simple you may remember that you added some lines to your java.policy file of your JDK/JRE-Plugin 1.3 installations ! well, you must add some lines to the java.policy for your local webserver or any other URL either ! e.g. for the URL's: file://C/temp/ http://localhost:8080/test/ that's it ! just have a lock at the current gl4java hompage's extra lines within java.policy, so you see it is easy to add some lines for your server and/or file system. sven > java.security.AccessControlContext.checkPermission(Unknown Source) at > java.security.AccessController.checkPermission(Unknown Source) at > java.lang.SecurityManager.checkPermission(Unknown Source) > at java.lang.SecurityManager.checkLink(Unknown Source) > at java.lang.Runtime.loadLibrary0(Unknown Source) > at java.lang.System.loadLibrary(Unknown Source) > at gl4java.GLContext.loadNativeLibraries(GLContext.java:711) > at gl4java.awt.GLCanvas.<clinit>(GLCanvas.java:177) > at MainApp.init(MainApp.java:139) > at sun.applet.AppletPanel.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > > So I have no idea what is going wrong. If you can let me know what it might > be. > > The reason I am trying to get the plugin to work, is because I want to test > out JAXP 1.1 (Java XML). I am want to port a 3d engine I developed in C++, > the engine uses a file format similar to XML, and I am not sure how to > install JAXP into MS-JVM (there is no instructions, I'm not sure if its > even installable on it), or get GL4Java working with the Java 1.3 plugin, > but looking at the amount of work that is required to install GL4Java on > the Java 1.3 plugin I dont think I would like to put that on the browser > clients. The only other route I have which is probably a little more > rigorous is to port my parsing code over the Java, but that seems a bit > hard to me considering I am just getting back into java after a couple of > years of not using it. (Your project has sparked my interest back into it > :)) > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > http://lists.sourceforge.net/lists/listinfo/gl4java-usergroup - -- mailto:sgo...@ja... www : http://www.jausoft.com ; pgp: http://www.jausoft.com/gpg/ voice : +49-521-2399440; fax: +49-521-2399442; icq-uin: 108264795 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6qtdmHdOA30NoFAARAolmAKCHmFtahYefSPwxV0RQAhnmbn4RhgCguahA tRDv6vC4htUMmrgMphyP6HE= =Wn/R -----END PGP SIGNATURE----- |