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 |