users@glassfish.java.net

Application client wont execute via Java webstart - XML$Password does not

From: <forums_at_java.net>
Date: Thu, 25 Oct 2012 05:01:48 -0500 (CDT)

G'day I'm trying to get my first enterprise application client to execute via
Java webstart. After a few hiccups I got the application to download via JWS
but it doesn't execute. The error is a bit unclear but appears to be an
internal one in the application client container (probably triggered by
something I did though) and annotation problems are mentioned. The client was
generated in Netbeans. The execution via JWS fails in both Safari and Firefox
both on the Netbeans / Glassfish host and on a remote machine. So its
probably not a browser or machine issue. The environment is Glassfish 3.1.2
started via Netbeans 7.1.2 on Mac OS X 10.6.8. The browsers are Safari 5.1.7
and Firefox 15.0.1. Any help would be appreciated. The error in detail is:
java.lang.RuntimeException: Error launching or running the application at
org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
com.sun.javaws.Launcher.executeApplication(Launcher.java:1919) at
com.sun.javaws.Launcher.executeMainClass(Launcher.java:1852) at
com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1614) at
com.sun.javaws.Launcher.run(Launcher.java:139) at
java.lang.Thread.run(Thread.java:680) Caused by: java.lang.RuntimeException:
javax.xml.bind.JAXBException - with linked exception:
[com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of
IllegalAnnotationExceptions
org.glassfish.appclient.client.acc.config.util.XML$Password does not have a
no-arg default constructor. this problem is related to the following
location: at org.glassfish.appclient.client.acc.config.util.XML$Password at
public org.glassfish.appclient.client.acc.config.util.XML$Password
org.glassfish.appclient.client.acc.config.ClientCredential.getPassword() at
org.glassfish.appclient.client.acc.config.ClientCredential at public
org.glassfish.appclient.client.acc.config.ClientCredential
org.glassfish.appclient.client.acc.config.ClientContainer.getClientCredential()
at org.glassfish.appclient.client.acc.config.ClientContainer ] at
org.glassfish.appclient.client.JWSAppClientContainerMain$ClientRunner.run(JWSAppClientContainerMain.java:179)
at
org.glassfish.appclient.client.JWSAppClientContainerMain.main(JWSAppClientContainerMain.java:138)
... 9 more Caused by: javax.xml.bind.JAXBException - with linked exception:
[com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of
IllegalAnnotationExceptions
org.glassfish.appclient.client.acc.config.util.XML$Password does not have a
no-arg default constructor. this problem is related to the following
location: at org.glassfish.appclient.client.acc.config.util.XML$Password at
public org.glassfish.appclient.client.acc.config.util.XML$Password
org.glassfish.appclient.client.acc.config.ClientCredential.getPassword() at
org.glassfish.appclient.client.acc.config.ClientCredential at public
org.glassfish.appclient.client.acc.config.ClientCredential
org.glassfish.appclient.client.acc.config.ClientContainer.getClientCredential()
at org.glassfish.appclient.client.acc.config.ClientContainer ] at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:277) at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:249) at
javax.xml.bind.ContextFinder.find(ContextFinder.java:442) at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:652) at
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:599) at
org.glassfish.appclient.client.AppClientFacade.readConfig(AppClientFacade.java:610)
at
org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:242)
at
org.glassfish.appclient.client.JWSAppClientContainerMain$ClientRunner.run(JWSAppClientContainerMain.java:168)
... 10 more Caused by:
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of
IllegalAnnotationExceptions
org.glassfish.appclient.client.acc.config.util.XML$Password does not have a
no-arg default constructor. this problem is related to the following
location: at org.glassfish.appclient.client.acc.config.util.XML$Password at
public org.glassfish.appclient.client.acc.config.util.XML$Password
org.glassfish.appclient.client.acc.config.ClientCredential.getPassword() at
org.glassfish.appclient.client.acc.config.ClientCredential at public
org.glassfish.appclient.client.acc.config.ClientCredential
org.glassfish.appclient.client.acc.config.ClientContainer.getClientCredential()
at org.glassfish.appclient.client.acc.config.ClientContainer at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:447)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:288) at
com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1111)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597) at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:262) ... 17 more

--
[Message sent by forum member 'ianblav']
View Post: http://forums.java.net/node/891748