From: Takayuki K. <t-k...@ni...> - 2006-09-07 08:29:08
|
Hi everyone: I am interested in using joelib.jar (downloaded binary edition) as an applet. However JOEMol joemol = new JOEMol(); (a part of chempropapp.java) makes following errors. (chempropapp.class is called by JavaScript) [ERROR] wsi.ra.PropertyHolder - Propertyfile joelib.properties not found. java.lang.ExceptionInInitializerError Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM) java.lang.Exception: java.lang.ExceptionInInitializerError On the other hand when I use joelib.jar at "http://www-ra.informatik.uni-tuebingen.de/software/joelib/webstart/", [INFO ] joelib.io.IOTypeHolder - 0 input/output types loaded. [INFO ] joelib.data.JOEPhModel - Using pH value correction model: joelib/data/plain/phmodel.txt [ERROR] joelib.data.JOEGlobalDataBase - Unable to open data file 'joelib/data/plain/phmodel.txt' java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM) java.lang.Exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM) I am using JavaScript to call applet. <applet code="chempropapp.class" codebase="." id="chemprop" archive="joelib.jar, log4j.jar" width=300 height=220> </applet> Is joelib required some modification to use as an applet? Regards. Takayuki KOTANI |
From: joerg.wegner <joe...@we...> - 2006-09-07 19:07:06
|
Dear Takayuki, first the Webstart application is deprecated and uses a pretty old = JOELib version, but this is just a site note. Second, all descriptors/features and file formats are defined in the joelib.properties file. Therefore, this an extremely important property definitions file. I still do not know from the messages provided what is going wrong. Can = you enable the debug mode in log4j.properties for wsi.ra.tool.BasicResourceLoader wsi.ra.tool.BasicPropertyHolder Those are the relevant classes for getting and loading the properties. Usually those classes should be able to get the data from String, URL, = and File resources. I had also already some problems with those classes, especially when = working in combination with other projects and dependencies. Anyway, this is a powerful outsourcing of parameters and avoids hard coded (hidden) = features, so it is worthwhile solving this. Please check those classes and hack them if necessary. I assume that = some of the security settings might not be correct, so you should maybe also = check Java-Applet security issues, but this is a general JavaApplet problem = and you should check Google and SUN pages for that. Please let me know, if this message was helpful and what the status of = your problem is. Joerg > -----Urspr=FCngliche Nachricht----- > Von: joe...@li... [mailto:joelib-devel- > bo...@li...] Im Auftrag von Takayuki KOTANI > Gesendet: Donnerstag, 7. September 2006 10:29 > An: Joe...@li... > Betreff: [Joelib-devel] Is joelib.jar compatible with applet? >=20 > Hi everyone: >=20 > I am interested in using joelib.jar (downloaded binary edition) as an > applet. > However JOEMol joemol =3D new JOEMol(); (a part of chempropapp.java) = makes > following errors. > (chempropapp.class is called by JavaScript) >=20 > [ERROR] wsi.ra.PropertyHolder - Propertyfile > joelib.properties not found. > java.lang.ExceptionInInitializerError > Caused by: java.security.AccessControlException: access denied > (java.lang.RuntimePermission exitVM) > java.lang.Exception: java.lang.ExceptionInInitializerError >=20 > On the other hand when I use joelib.jar at > "http://www-ra.informatik.uni-tuebingen.de/software/joelib/webstart/", >=20 > [INFO ] joelib.io.IOTypeHolder - 0 input/output = types > loaded. > [INFO ] joelib.data.JOEPhModel - Using pH value > correction > model: joelib/data/plain/phmodel.txt > [ERROR] joelib.data.JOEGlobalDataBase - Unable to open data > file > 'joelib/data/plain/phmodel.txt' > java.security.AccessControlException: access denied > (java.lang.RuntimePermission exitVM) > java.lang.Exception: java.security.AccessControlException: access = denied > (java.lang.RuntimePermission exitVM) >=20 > I am using JavaScript to call applet. > <applet code=3D"chempropapp.class" codebase=3D"." id=3D"chemprop" > archive=3D"joelib.jar, log4j.jar" width=3D300 height=3D220> > </applet> >=20 > Is joelib required some modification to use as an applet? >=20 > Regards. >=20 > Takayuki KOTANI >=20 >=20 > = -------------------------------------------------------------------------= > Using Tomcat but need to do more? Need to support web services, = security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > _______________________________________________ > Joelib-devel mailing list > Joe...@li... > https://lists.sourceforge.net/lists/listinfo/joelib-devel |
From: Takayuki K. <t-k...@ni...> - 2006-09-08 02:00:12
|
Dear Joerg Thank you for early reply. >Please check those classes and hack them if necessary. I assume that some of the security settings might not be correct, so you >should maybe also check Java-Applet security issues, but this is a general JavaApplet problem and you should check Google and >SUN pages for that. I am also using cdk.jar and JME.jar as applets and they work well. I think that problem is not caused by Java-Applet security issues. >Can you enable the debug mode in log4j.properties for wsi.ra.tool.BasicResourceLoader wsi.ra.tool.BasicPropertyHolder. I tried to modify log4j.properties and the following is log files. [ERROR] wsi.ra.PropertyHolder - Propertyfile joelib.properties not found. java.lang.ExceptionInInitializerError at chempropapp.setStr(chempropapp.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source) at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source) at sun.plugin.com.DispatchImpl$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.com.DispatchImpl.invoke(Unknown Source) Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM) 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.checkExit(Unknown Source) at java.lang.Runtime.exit(Unknown Source) at java.lang.System.exit(Unknown Source) at wsi.ra.tool.PropertyHolder.instance(PropertyHolder.java:281) at wsi.ra.tool.PropertyHolder.instance(PropertyHolder.java:258) at joelib.io.IOTypeHolder.loadFileTypes(IOTypeHolder.java:537) at joelib.io.IOTypeHolder.instance(IOTypeHolder.java:192) at joelib.molecule.JOEMol.<clinit>(JOEMol.java:239) ... 16 more java.lang.Exception: java.lang.ExceptionInInitializerError at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source) at sun.plugin.com.DispatchImpl$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.com.DispatchImpl.invoke(Unknown Source) Thanks in advance. Takayuki KOTANI -----Original Message----- From: joe...@we... [mailto:joe...@we...] Sent: Friday, September 08, 2006 4:06 AM To: t-k...@ni...; Joe...@li... Subject: AW: [Joelib-devel] Is joelib.jar compatible with applet? Dear Takayuki, first the Webstart application is deprecated and uses a pretty old JOELib version, but this is just a site note. Second, all descriptors/features and file formats are defined in the joelib.properties file. Therefore, this an extremely important property definitions file. I still do not know from the messages provided what is going wrong. Can you enable the debug mode in log4j.properties for wsi.ra.tool.BasicResourceLoader wsi.ra.tool.BasicPropertyHolder Those are the relevant classes for getting and loading the properties. Usually those classes should be able to get the data from String, URL, and File resources. I had also already some problems with those classes, especially when working in combination with other projects and dependencies. Anyway, this is a powerful outsourcing of parameters and avoids hard coded (hidden) features, so it is worthwhile solving this. Please check those classes and hack them if necessary. I assume that some of the security settings might not be correct, so you should maybe also check Java-Applet security issues, but this is a general JavaApplet problem and you should check Google and SUN pages for that. Please let me know, if this message was helpful and what the status of your problem is. Joerg |
From: joerg.wegner <joe...@we...> - 2006-09-08 22:34:14
|
Takayuki, Oh, that's the (older) JOELib release, not JOELib2. Please compare carefully those two files and adapt your version, e.g. = print the source code. http://joelib.cvs.sourceforge.net/joelib/joelib/src/wsi/ra/tool/PropertyH= old er.java?view=3Dmarkup versus http://joelib.cvs.sourceforge.net/joelib/joelib2/src/wsi/ra/tool/BasicPro= per tyHolder.java?view=3Dmarkup Joerg > -----Urspr=FCngliche Nachricht----- > Von: joe...@li... [mailto:joelib-devel- > bo...@li...] Im Auftrag von Takayuki KOTANI > Gesendet: Freitag, 8. September 2006 04:00 > An: joe...@we...; Joe...@li... > Betreff: Re: [Joelib-devel] Is joelib.jar compatible with applet? >=20 > Dear Joerg >=20 > Thank you for early reply. >=20 > >Please check those classes and hack them if necessary. I assume that = some > of the security settings might not be correct, so you >should maybe = also > check Java-Applet security issues, but this is a general JavaApplet > problem > and you should check Google and >SUN pages for that. >=20 > I am also using cdk.jar and JME.jar as applets and they work well. I = think > that problem is not caused by Java-Applet security issues. >=20 > >Can you enable the debug mode in log4j.properties for > wsi.ra.tool.BasicResourceLoader wsi.ra.tool.BasicPropertyHolder. > I tried to modify log4j.properties and the following is log files. >=20 > [ERROR] wsi.ra.PropertyHolder - Propertyfile > joelib.properties not found. > java.lang.ExceptionInInitializerError > at chempropapp.setStr(chempropapp.java:44) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at sun.plugin.javascript.invoke.JSInvoke.invoke(Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > at java.lang.reflect.Method.invoke(Unknown Source) > at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source) > at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) > at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source) > at sun.plugin.com.DispatchImpl$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at sun.plugin.com.DispatchImpl.invoke(Unknown Source) > Caused by: java.security.AccessControlException: access denied > (java.lang.RuntimePermission exitVM) > 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.checkExit(Unknown Source) > at java.lang.Runtime.exit(Unknown Source) > at java.lang.System.exit(Unknown Source) > at wsi.ra.tool.PropertyHolder.instance(PropertyHolder.java:281) > at wsi.ra.tool.PropertyHolder.instance(PropertyHolder.java:258) > at joelib.io.IOTypeHolder.loadFileTypes(IOTypeHolder.java:537) > at joelib.io.IOTypeHolder.instance(IOTypeHolder.java:192) > at joelib.molecule.JOEMol.<clinit>(JOEMol.java:239) > ... 16 more > java.lang.Exception: java.lang.ExceptionInInitializerError > at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source) > at sun.plugin.com.DispatchImpl$1.run(Unknown Source) > at java.security.AccessController.doPrivileged(Native Method) > at sun.plugin.com.DispatchImpl.invoke(Unknown Source) >=20 > Thanks in advance. >=20 >=20 > Takayuki KOTANI >=20 >=20 > -----Original Message----- > From: joe...@we... [mailto:joe...@we...] > Sent: Friday, September 08, 2006 4:06 AM > To: t-k...@ni...; Joe...@li... > Subject: AW: [Joelib-devel] Is joelib.jar compatible with applet? >=20 > Dear Takayuki, >=20 > first the Webstart application is deprecated and uses a pretty old = JOELib > version, but this is just a site note. >=20 > Second, all descriptors/features and file formats are defined in the > joelib.properties file. Therefore, this an extremely important = property > definitions file. > I still do not know from the messages provided what is going wrong. = Can > you > enable the debug mode in log4j.properties for > wsi.ra.tool.BasicResourceLoader wsi.ra.tool.BasicPropertyHolder >=20 > Those are the relevant classes for getting and loading the properties. > Usually those classes should be able to get the data from String, URL, = and > File resources. >=20 > I had also already some problems with those classes, especially when > working > in combination with other projects and dependencies. Anyway, this is a > powerful outsourcing of parameters and avoids hard coded (hidden) > features, > so it is worthwhile solving this. >=20 > Please check those classes and hack them if necessary. I assume that = some > of > the security settings might not be correct, so you should maybe also = check > Java-Applet security issues, but this is a general JavaApplet problem = and > you should check Google and SUN pages for that. >=20 > Please let me know, if this message was helpful and what the status of > your > problem is. >=20 > Joerg >=20 >=20 >=20 >=20 > = -------------------------------------------------------------------------= > Using Tomcat but need to do more? Need to support web services, = security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache = Geronimo > = http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D= 121642 > _______________________________________________ > Joelib-devel mailing list > Joe...@li... > https://lists.sourceforge.net/lists/listinfo/joelib-devel |