From: Ken A. <kan...@bb...> - 2003-01-02 22:14:12
|
I'm now having trouble building JScheme from scratch which may be related to this problem. Let me play around with this and see if i can get the build fixed by tomorrow. k At 02:06 PM 1/1/2003, 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 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 |