atom feed7 messages in net.java.dev.glassfish.usersRe: problems deploying ear in GF3
FromSent OnAttachments
Felipe GaúchoFeb 6, 2010 6:36 am 
glas...@javadesktop.orgFeb 6, 2010 7:02 am 
Felipe GaúchoFeb 6, 2010 8:05 am 
Xavier CallejasFeb 6, 2010 8:21 am 
Felipe GaúchoFeb 6, 2010 9:55 am 
Hong ZhangFeb 8, 2010 6:09 am 
Felipe GaúchoFeb 8, 2010 9:39 am 
Subject:Re: problems deploying ear in GF3
From:Felipe Gaúcho (fgau@gmail.com)
Date:Feb 8, 2010 9:39:50 am
List:net.java.dev.glassfish.users

I found the problem............ it was in several places.. I am refactoring an old application and the interfaces were together with the implementation in some packages..

after some refactoring, the application started to work :)

On Mon, Feb 8, 2010 at 3:09 PM, Hong Zhang <Hong@sun.com> wrote:

Hi, Felipe    I tried to deploy the ear from the link you included in the original post, and I got a deployment error saying there is zero EJB found in cejug-classifieds-ws-1.0-SNAPSHOT.jar (which was declared as an ejb jar). I looked at the ejb-jar.xml in this jar and did not find any EJB declared. So the EJBs are probably declared through component annotations, where are the EJBs annotated with component annotations packaged? Are they inside this jar or some other place inside ear?

    Thanks,

- Hong

Felipe Gaúcho wrote:

thank you , but the problem is not about multiple ejbs.. I have the same configuration in another project working fine..

an ejb in the lib folder is just the client interface to be reused by the other applications in the ear, like the war applications.........

should be something trivial but I can't see what.........

On Sat, Feb 6, 2010 at 5:21 PM, Xavier Callejas <xav@wflogistics.com> wrote:

On Sábado 06 Febrero 2010 09:04:00 glas@javadesktop.org escribió:

I'm not sure if this is the underlying problem, but your EAR contains two copies of the two EJB module JARs: one copy at the top-level of the EAR and one copy in the lib directory.

Did you intend this?

Felipe,

Glassfish 3 tries to deploy every EJB that finds, try with just one copy of the EJB in the root.

rgds. xavier