users@glassfish.java.net

Re: error running appclient

From: Tim Quinn <tim.quinn_at_oracle.com>
Date: Mon, 25 Jul 2011 07:08:35 -0500

What exact steps do you take to upload your app to the server, and
what exact steps do you use to deploy your application and then launch
the app client?

- Tim

On Jul 25, 2011, at 4:51 AM, Mumuney Abdlquadri wrote:

> Hi all,
>
> I have an Enterprise app consist of war, ejb and appclient moodules.
> When I run on Netbeans7.0 it runs fine, but when upload to the
> production server. I get the below error while trying to run the
> client app using appclient -client.
>
> Pls anyone has experience with this to assist.
>
> Thanks
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/glassfish/appclient/client/acc/UserError
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
> at java.lang.Class.getMethod0(Class.java:2670)
> at java.lang.Class.getMethod(Class.java:1603)
> at
> sun
> .instrument
> .InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:
> 294)
> at
> sun
> .instrument
> .InstrumentationImpl
> .loadClassAndCallPremain(InstrumentationImpl.java:338)
> Caused by: java.lang.ClassNotFoundException:
> org.glassfish.appclient.client.acc.UserError
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> ... 6 more
> FATAL ERROR in native method: processing of -javaagent failed