users@glassfish.java.net

Re: Web Start Mustang

From: Ignacio Goyeneche <igoyeneche_at_maz.es>
Date: Wed, 10 May 2006 10:45:31 +0200

Thanks for your tip in debugging the start of the application.

I started Mustang with trace enabled and I got this trace:

Error attempting to launch JWSACCMain.main
java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(Unknown Source)
    at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
    at
com.sun.enterprise.appclient.jws.boot.JWSACCMain.main(JWSACCMain.java:109)
    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.lang.RuntimeException: java.lang.ClassNotFoundException:
com.sun.enterprise.appclient.Main
    at
com.sun.enterprise.appclient.jws.boot.JWSACCMain.run(JWSACCMain.java:150)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.sun.enterprise.appclient.Main
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    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:142)
    ... 8 more

Looking at the jnlp I saw that there are two resources marked as
extensions to the main jar appserv-jwsacc.jar:
    <extension
href="http://localhost:8080/__JWSappclients/__appclient/syga/cliente/main-ext.jnlp"
name="mainext"/>
    <extension
href="http://localhost:8080/__JWSappclients/__appclient/syga/cliente/client-client.jnlp"
name="appclient"/>
I donīt know if this extension mechanism has changed in Mustang, the
client works with Java 1.5 but not with 1.6.
It seems to download less jars in 1.6.

Any more ideas?

Thanks,
    Ignacio