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