quality@glassfish.java.net

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

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Tue, 2 Nov 2010 12:35:16 +0200

Hi Wouter

On 2 November 2010 11:14, Wouter van Reeven <wouter_at_van.reeven.nl> wrote:

> Thanks for the tip! When I put the jar containing the Exception class in
> the lib directory of GlassFish, deployment still fails. But now it fails
> on a ClassNotFoundException on a class in a different jar. It looks like
> GlassFish has troubles putting the jars in the ear on the classpath.
>

Weird...
Are you using Maven to build your EAR ?

If not, can you send your application.xml


regards
Richard



> Is this a known issue?
>
>
> Thanks, Wouter
>
> On Tue, Nov 02, 2010 at 10:57:25AM +0200, 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
> >
> >
> >
>
> --
> Gravity brings me down
> [Unknown Source]
>
> Skype: wvreeven
> Facebook: wvreeven
> Twitter: wvreeven
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>