quality@glassfish.java.net

Re: Deployment of our JEE 5 app on GFv3.1

From: Wouter van Reeven <wouter_at_van.reeven.nl>
Date: Tue, 2 Nov 2010 10:06:53 +0100

Hi Alexis,


That's confirmative. The EAR contains an EJB jar containing all JPA
stuff, another EJB jar containing web services, a WAR containing web
stuff and then several jars. One of them is our jar containing the
Exception class.


Thanks, Wouter

On Tue, Nov 02, 2010 at 09:59:03AM +0100, Alexis Moussine-Pouchkine wrote:
> adding Hong.
> Wouter, can you confirm that this is all packaged as one EAR file?
> -Alexis
>
> On 2 nov. 2010, at 09:57, Richard Kolb wrote:
>
> > Hi Wouter
> >
> > On 2 November 2010 10:47, Wouter van Reeven <wouter_at_van.reeven.nl> wrote:
> > This morning I downloaded build 26 of GFv3.1 and deployed our JEE 5 app
> > on it. Despite some initial issues with project jars that were included
> > in the ear, the app now deploys almost ok. I can see our JPA classes
> > being mapped to the correct tables and views and it all looks ok apart
> > from one small issue.
> >
> > We have created a separate jar with some generic database utilities. Our
> > EJB jar uses those utilities. Upon deployment GlassFish complains about
> > not being able to find an Exception class that is included in the
> > utility jar that is included in the EAR. Basically the error logged is
> >
> > Exception while loading the app : EJB Container initialization error java.lang.NoClassDefFoundError: nl/yenlo/yos4j/exception/NoActiveDatabaseConnectionException
> >
> > Would anyone know how to solve this? Or is this a known bug?
> >
> > I think I know what this issue is, and there is a simple way to test.
> > If you copy the JAR for the nl/yenlo/yos4j/ into you lib instead of including it in your EAR, you probably won't have this problem.
> >
> > If this works, it means that nl/yenlo/yos4j/ is not in the classloader at deploy even though it is in your EAR.
> >
> > There was a similar issue with Vaadin
> > https://vaadin.com/forum/-/message_boards/message/93340#_19_message_99010
> > If you find the glassfish issue, please post.
> >
> > regards
> > Richard
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net

-- 
King Arthur: [after Arthur's cut off both of the Black Knight's arms] Look, you
stupid Bastard. You've got no arms left.
Black Knight: Yes I have.
King Arthur: *Look*!
Black Knight: It's just a flesh wound.
[Monty Python and the Holy Grail]
Skype: wvreeven
Facebook: wvreeven
Twitter: wvreeven