|
From: Timothy H. <tim...@ma...> - 2003-01-02 20:31:31
|
On Wednesday, January 1, 2003, at 02:06 PM, david may wrote:
> Happy 2003 !
>
> I am have difficulty with makeing my jscheme app work with
> webstart on windows. It works fine on linux. But on windows
> I get the a security violation.
>
> I probably went about this the wrong way but in order to not have to
> sign the jscheme jar and jabberbeans jar
Are you running the lastest Jscheme built from CVS. It sounds like
this might be a problem with the class loader extensions that we've
built into Jscheme in the past few months, but I think they were
resolved recently.....
I think the two calls to setContextClassLoader in the file
jsint/Import.java
should be enclosed in a tryCatch.....
---Tim---
> I created a java class
> and started jscheme in it like this
>
> InputPort ip = null;
> ip = Scheme.openResource("init.scm");
> if (ip == null) E.warn("(load) can't open the silly init.scm");
> else Scheme.load(ip);
>
> I put this and my init.scm in a jar and signed it.
> and made the other jars extensions
>
> <extension name="jabberbeans"
> href="jabberbeans.jnlp">
> </extension>
> <extension name="jscheme"
> href="jscheme.jnlp">
> </extension>
>
> and then
> set
> <all-permissions/>
>
> This all works on linux but on windows 2000 it fails.
>
>
> Java Web Start 1.2 Console, started Wed Jan 01 10:51:34 PST 2003
> Java 2 Runtime Environment: Version 1.4.1_01 by Sun Microsystems Inc.
> In openResource(init.scm):
> java.lang.ExceptionInInitializerError
> at jsint.Scheme.openResource(Scheme.java:197)
> at JwsJscheme.<init>(JwsJscheme.java:8)
> at JwsJscheme.main(JwsJscheme.java:13)
> 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 com.sun.javaws.Launcher.executeApplication(Unknown Source)
> at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
> at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
> at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
> at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
> at com.sun.javaws.Launcher.run(Unknown Source)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.security.AccessControlException: access denied
> (java.lang.RuntimePermission setContextClassLoader)
> at java.security.AccessControlContext.checkPermission(Unknown Source)
> at java.security.AccessController.checkPermission(Unknown Source)
> at java.lang.SecurityManager.checkPermission(Unknown Source)
> at java.lang.Thread.setContextClassLoader(Unknown Source)
> at jsint.Import.<clinit>(Import.java:48)
> ... 14 more
> ** WARNING: (load) can't open the silly init.scm
>
>
> thanks,
> davud
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Jscheme-user mailing list
> Jsc...@li...
> https://lists.sourceforge.net/lists/listinfo/jscheme-user
>
|