quality@glassfish.java.net

Upgrading from Glassfish 2 to 3 - JSF & EJB problems

From: Andreas Evers <krosan_at_gmail.com>
Date: Thu, 2 Sep 2010 17:07:49 +0200

In reply to: http://forums.java.net/jive/thread.jspa?messageID=481697


Hey Richard,

I managed to create a sample application that demonstrates the problem.

http://hotfile.com/dl/66516804/617a82f/evalea2.rar.html

When trying on GF2, please remove the sun-web.xml in the
evalea2\evalea2-web-admin\src\main\webapp\WEB-INF directory.

When trying on GF3, just leave it as it is.

The project is completely maven-built, so a simple install & package maven
command in the evalea2 folder should produce the ear file in the target
folder of the ear module.

To see if it works or not, go to
http://localhost:8080/evalea2-web-admin/login.xhtml

If the message states: Status: EJB injection works then that means that the
EJB is correctly injected into the controller. If it gives you a
nullpointerexception, that means that the EJB isn't injected and the Dao
object therefore null.


-- 
Andreas Evers
Krosan_at_gmail.com
- My blog: http://krosan.wordpress.com -