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:14:01 +0100

Hi Richard,


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.

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