users@glassfish.java.net

Re: Upgrading from Glassfish 2 to 3 - JSF & EJB problems

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Wed, 11 Aug 2010 16:21:05 +0200

Hi Andrew

On 11 August 2010 14:15, <glassfish_at_javadesktop.org> wrote:

> We're trying to deploy an application which uses Spring, EJB and JSF on
> Glassfish v3, while it is perfectly working on Glassfish v2.
>
> We faced some problems with JSF 2.0 (we use 1.2 in our project) but managed
> to solve it by creating a sun-web.xml with useBundledJSF to true.
>
> This made the application work to the point where we need to use an EJB
> injected DAO class. In Glassfish v2 this always worked but in v3 it gives us
> a NullpointerException because that DAO is never initialized.
>
> Is there some other fix I need to apply such as the useBundledJSF in order
> to make our project that worked on v2, work on v3?
>
> Any feedback will be *greatly* appreciated!
>


Can you provide a small sample ?

Please take note of this GlassFish 2.1.1 issue with Hibernate :
https://glassfish.dev.java.net/issues/show_bug.cgi?id=12812

Currently I am the 'test lead' for GlassFish and I would like to sort
compatibility issues like these out. Can you reply to
quality_at_glassfish.dev.java.net

There is also a sample you can download here with a Hibernate DAO that works
in GlassFish 3.0: http://wikis.sun.com/display/GlassFish/FishCATGold :
FRM_0001_001<https://openarchitecturalprototypes.dev.java.net/#FRM_0001_001>

regards
Richard.