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 |