quality@glassfish.java.net

Re: Failed to deploy EJB app on GFv3

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Mon, 25 Aug 2008 16:09:02 +0200

On Mon, Aug 25, 2008 at 03:53:51PM +0200, To quality wrote:
> As it turns out, the EjbSniffer class contains this piece of code
>
> private static final Class[] ejbAnnotations = new Class[] {
> javax.ejb.Stateless.class, javax.ejb.Stateful.class, javax.ejb.Singleton.class};
>
> Further investigation of the GFv3 code shows that there IS a class called
> Singleton:
>
> ./ejb/javax.ejb/src/main/java/javax/ejb/Singleton.java

I built GFv3 from the subversion repository and put javax.ejb-10.0-SNAPSHOT.jar
in the modules directory (after backing up the original jar of course).
Restarting GFv3 and redeploying my war file now went without any problems!

However, upon starting the application in my browser I got the error

[#|2008-08-25T16:05:59.923+0200|INFO||javax.enterprise.system.container.ejb|_ThreadID=17;_ThreadName=Thread-4;|
javax.ejb.EJBException

<stuff deleted>

Caused by: java.lang.NoClassDefFoundError: org/eclipse/persistence/internal/weaving/PersistenceWeaved

It looks like some maven dependency on EclipseLink is missing or incorrect.
Still investigating this.


Greets, Wouter

-- 
People: "If she weighs the same as a Duck, she's made of wood!"
Sir Bedevere: "And therefore...?"