users@glassfish.java.net

Application client - "Error Launching Application"

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Jan 2008 06:09:51 PST

Hi,

I'm beginning to convert a standalone Java SE application into an application client running on Glassfish. The first step I've done was just to package the app as an application client into an EAR and deploy it on the server. The deployment ran fine, but when I try to run launch the application through Web Start, I get this error:

java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:215)
        at com.sun.enterprise.appclient.jws.boot.JWSACCMain.main(JWSACCMain.java:177)
        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.doLaunchApp(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.util.PropertyPermission com.sun.aas.derbyRoot read)
        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.checkPropertyAccess(Unknown Source)
        at java.lang.System.getProperty(Unknown Source)
        at com.sun.enterprise.appclient.MainWithModuleSupport.<clinit>(MainWithModuleSupport.java:197)
        ... 13 more

Can somebody tell me what's going on and what I should do to make this go away? I'm not using Derby by the way, and neither am I going to, so I don't understand why the error mentions Derby.

Thanks!
[Message sent by forum member 'koser' (koser)]

http://forums.java.net/jive/thread.jspa?messageID=252954