title image


Smiley Access denied bei Applet
hi zusammen



Ich habe ein signiertes Applet, welches über JAX-RPC auf einen Webservice zugreift. Im Applet Viewer funktioniert das, aber im Browser habe ich keinen Zugriff.



Das java.policy.applet File habe ich auf permission java.security.AllPermission gestellt.



Wo kann ich noch etwas einstellen um den Zugriff zu gewähren?



Folgende Exception wird geworfen:



java.lang.ExceptionInInitializerError

at com.sun.xml.rpc.encoding.soap.StandardSOAPTypeMappings.(StandardSOAPTypeMappings.java:285)

at com.sun.xml.rpc.encoding.StandardTypeMappings.getSoap(StandardTypeMappings.java:28)

at com.sun.xml.rpc.client.BasicService.createSoapMappings(BasicService.java:170)

at com.sun.xml.rpc.client.BasicService.createStandardTypeMappingRegistry(BasicService.java:160)

at com.test.TestRemoteControlTypeService_SerializerRegistry.getRegistry(PhoneRemoteControlTypeService_SerializerRegistry.java:22)

at com.test.TestRemoteControlTypeService_Impl.(PhoneRemoteControlTypeService_Impl.java:25)

at TestApplet.init(TestApplet.java:65)

at TestApplet.(TestApplet.java:52)

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.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.util.calendar)

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.checkPackageAccess(Unknown Source)

at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source)

at java.lang.Class.checkMemberAccess(Unknown Source)

at java.lang.Class.getMethod(Unknown Source)

at com.sun.xml.rpc.encoding.simpletype.XSDDateTimeCalendarEncoder.(XSDDateTimeCalendarEncoder.java:94)



Grüsse

Sponge Bob

geschrieben von

Login

E-Mail:
  

Passwort:
  

Beitrag anfügen

Symbol:
 
 
 
 
 
 
 
 
 
 
 
 
 

Überschrift: