java.security.AccessControlException: access denied


darksmilie

Erfahrenes Mitglied
#1
Hi,

ich habe eine .jnlp anwendung und möchte diese gerne über ein Batchscript starten. Leider bekomme ich Access Denied.

Kann mir vielleicht jemand helfen, hier ist meine Batch und die Ausgabe der Java Console:

Code:
@ECHO OFF
SETLOCAL

SET JAVA_HOME=\\server\jre1.7.0_07\bin

%JAVA_HOME%\javaws http://server/pr/time.jnlp

ENDLOCAL
Java Web Start 10.7.2.11
JRE-Version verwenden 1.7.0_07-b11 Java HotSpot(TM) Client VM
Benutzer-Home-Verzeichnis = C:\Users\Admin
----------------------------------------------------
c: Konsolenfenster löschen
f: Objekte in Finalisierungs-Queue finalisieren
g: Garbage Collect
h: Diese Hilfemeldung anzeigen
m: Speicherauslastung drucken
o: Logging auslösen
p: Proxykonfiguration neu laden
q: Konsole ausblenden
r: Policy-Konfiguration neu laden
s: System- und Deployment-Eigenschaften ausgeben
t: Threadliste ausgeben
v: Thread-Stack ausgeben
0-5: Trace-Ebene auf <n> setzen
----------------------------------------------------
CacheEntry[http://server/pr/time.jnlp]: updateAvailable=false,lastModified=Thu Jan 01 01:00:00 CET 1970,length=1430
Match: beginTraversal
Match: digest selected JREDesc: JREDesc[version 1.7.0_7, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 1:
platform is: 1.7
product is: 1.7.0_07
location is: http://java.sun.com/products/autodl/j2se
path is: \\server\jre1.7.0_07\bin\javaw.exe
args is:
native platform is: Windows, x86 [ x86, 32bit ]
JavaFX runtime is: JavaFX 2.2.1 found at \\server\jre1.7.0_07\
enabled is: true
registered is: false
system is: true

Match: ignoring maxHeap: -1
Match: ignoring InitHeap: -1
Match: digesting vmargs: null
Match: digested vmargs: [JVMParameters: isSecure: true, args: ]
Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ]
Match: digest LaunchDesc: http://server:80/pr/time.jnlp
Match: digest properties: [-Dsun.locale.formatasdefault=true]
Match: JVM args: [JVMParameters: isSecure: true, args: -Dsun.locale.formatasdefault=true]
Match: endTraversal ..
Match: JVM args final: -Dsun.locale.formatasdefault=true
Match: Running JREInfo Version match: 1.7.0.07 == 1.7.0.07
Match: Running JVM args match: have:<-Dsun.locale.formatasdefault=true -Dsun.locale.formatasdefault=true> satisfy want:<-Dsun.locale.formatasdefault=true>
Exception in thread "LoginThread" java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.security.jca.ProviderConfig$2.run(Unknown Source)
at sun.security.jca.ProviderConfig$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(Unknown Source)
at sun.security.jca.ProviderConfig.getProvider(Unknown Source)
at sun.security.jca.ProviderList.getProvider(Unknown Source)
at sun.security.jca.ProviderList$ServiceList.tryGet(Unknown Source)
at sun.security.jca.ProviderList$ServiceList.access$200(Unknown Source)
at sun.security.jca.ProviderList$ServiceList$1.hasNext(Unknown Source)
at javax.crypto.Cipher.getInstance(Cipher.java:497)
at com.primavera.a.a.a.a(Unknown Source)
at com.primavera.a.a.a.a(Unknown Source)
at com.primavera.jpeg2k.gui.aE.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.sunec")
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.checkLink(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.ec.SunEC$1.run(SunEC.java:60)
at sun.security.ec.SunEC$1.run(SunEC.java:58)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.ec.SunEC.<clinit>(SunEC.java:58)
... 19 more