users@glassfish.java.net

Re: NPE at AbstractModulesRegistryImpl.java:448 with appclient via javaws

From: <glassfish_at_javadesktop.org>
Date: Fri, 22 Jan 2010 08:27:46 PST

I have had no luck getting the application to run with appclient either. I am consistently getting the error pasted in below. It would suggest that my EJB's are not available to my application client. However, deploying the exact same EAR to Glassfish 2.1 works fine so if there is an error in my ear layout 2.1 is tolerant of it.

Exception in thread "main" java.lang.reflect.InvocationTargetException
        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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(Unknown Sou
rce)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(Unknown So
urce)
Caused by: java.lang.NoClassDefFoundError: com/rocketsoftware/leopard/server/pro
totyping/dbi/ejb/DBISessionRemote
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.getDeclaredMethods(Unknown Source)
        at com.sun.enterprise.deployment.util.DefaultDOLVisitor.acceptWithCL(Def
aultDOLVisitor.java:327)
        at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundl
eValidator.java:188)
        at com.sun.enterprise.deployment.ApplicationClientDescriptor.visit(Appli
cationClientDescriptor.java:657)
        at com.sun.enterprise.deployment.archivist.AppClientArchivist.validate(A
ppClientArchivist.java:168)
        at org.glassfish.appclient.client.acc.FacadeLaunchable.validateDescripto
r(FacadeLaunchable.java:175)
        at org.glassfish.appclient.client.acc.AppClientContainer.completePrepara
tion(AppClientContainer.java:350)
        at org.glassfish.appclient.client.acc.AppClientContainer.prepare(AppClie
ntContainer.java:311)
        at org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFa
cade.java:264)
        at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.prem
ain(AppClientContainerAgent.java:75)
        ... 6 more
Caused by: java.lang.ClassNotFoundException: com.rocketsoftware.leopard.server.p
rototyping.dbi.ejb.DBISessionRemote
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.glassfish.appclient.client.acc.ACCClassLoader.findClass(ACCClassL
oader.java:211)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        ... 18 more
FATAL ERROR in native method: processing of -javaagent failed
[Message sent by forum member 'inar' (ian.jones_at_rocketsoftware.com)]

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