Thanks for the reply.
I tried the retrieve command. I could retrieve the jar file in the download folder, but while executing I get following exception. It cannot find the Count interface.
[code]
$ appclient -client download/count-client-accClient.jar
Jul 7, 2009 10:46:17 AM com.sun.enterprise.security.appclient.AppClientSecurityInfoImpl initializeSecurity
INFO: acc.secmgroff
java.lang.reflect.InvocationTargetException
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 org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:360)
at org.glassfish.appclient.client.AppClientFacade.main(AppClientFacade.java:59)
Caused by: java.lang.NoClassDefFoundError: com/hardik/mejb/Count
at com.hardik.mejb.CountClientAcc.main(Unknown Source)
... 6 more
Caused by: java.lang.ClassNotFoundException: com.hardik.mejb.Count
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 7 more
[/code]
Moreover, the error for the non-retrieved class has also been changed now. The problem was that I was not including the application-client.xml file, after including this file, I get the same exception saying that the Count interface is not found. Btw, how do I find which build I am using to make sure the bug is not affecting me.
[code]
$ appclient -cp -client dist/count-client-acc.jar
Jul 7, 2009 10:50:36 AM com.sun.enterprise.security.appclient.AppClientSecurityInfoImpl initializeSecurity
INFO: acc.secmgroff
Exception in thread "main" java.lang.NoClassDefFoundError: com/hardik/mejb/Count
at com.hardik.mejb.CountClientAcc.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.hardik.mejb.Count
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 1 more
[/code]
[Message sent by forum member 'rangalo' (rangalo)]
http://forums.java.net/jive/thread.jspa?messageID=354311