users@glassfish.java.net

Re: GFv3 Eclipse EAR deployment

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Fri, 22 Jan 2010 09:44:50 -0500

> You were right, the war manifest contained a classpath reference to my
> ejb module.
>
> But when I remove this dependence I get a NoClassDefFoundError.

What class is it complaining about? Is it a EJB interface that the war
references?

>
> Maybe I need to change my Eclipse JEE module options but I don't know
> how....
>
> Can you help me please ?
>
> 2010/1/22 Hong Zhang <Hong.Zhang_at_sun.com <mailto:Hong.Zhang_at_sun.com>>
>
> Hi, Fabrice
>
>> The ear contains the ejb jar, the war and other jars but this
>> implementation is only include once in all this stuff.
>> I just used the export feature in eclipse and the problem appears
>> even in projetcs that I deployed in a GF2.1.
>
> I see. Can you check if the ejb jar was included in the war
> through Manifest, the NetBeans packaging used to have this
> problem. Please check the Class-Path entry of the war Manifest
> file to see if it includes the ejb jar..
>
> - Hong
>
>> All the EAR generated with Eclipse seen not to be deployable in
>> GF3...
>>
>> 2010/1/22 Hong Zhang <Hong.Zhang_at_sun.com <mailto:Hong.Zhang_at_sun.com>>
>>
>> Hi, Fabrice
>>
>>
>> I use Eclipse (Galileo) with the latest GF plugin and
>> GFv3 to develop an EAR application.
>> When I deploy my EAR inside Eclipse with the publish
>> command everything works fine.
>> But when I use the Export->EAR command from the file
>> menu, I can not deploy the generated EAR to the same
>> server, I got this error:
>>
>> java.lang.RuntimeException: Cannot resolve reference
>> Local ejb-ref
>> name=org.buck.dms.ejb.ejb.SessionEjb/aclManagerEjb,Local
>> 3.x interface
>> =org.buck.dms.ejb.ejb.AclManagerEjbLocal,ejb-link=null,lookup=null,mappedName=,jndi-name=,refType=Session
>> because there are 2 ejbs in the application with
>> interface org.buck.dms.ejb.ejb.AclManagerEjbLocal
>>
>> I'm sure there is only one implementation of this interface.
>>
>>
>> But is the implementation class of this interface packaged
>> twice in this ear? Can you tell us a little bit more of the
>> packaging?
>>
>> Thanks,
>>
>> - Hong
>>
>>
>>
>> Can anyone help me please ?
>>
>>
>>
>> --
>> BUQUET Fabrice
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> users-unsubscribe_at_glassfish.dev.java.net
>> <mailto:users-unsubscribe_at_glassfish.dev.java.net>
>> For additional commands, e-mail:
>> users-help_at_glassfish.dev.java.net
>> <mailto:users-help_at_glassfish.dev.java.net>
>>
>>
>>
>>
>> --
>> BUQUET Fabrice
>
>
>
>
>
> --
> BUQUET Fabrice