users@glassfish.java.net

Re: EJB 3.1 in Ganymede

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Wed, 20 Aug 2008 07:20:24 -0700

glassfish_at_javadesktop.org wrote:
> I just deployed a simple EJB 3.1 class in Glassfish v3 tp2 using Eclipse 3.4. The injection is not happening.
>
Where do you put the Ejbs? Inside the Web App itself or in an EjbModule?
IIRC, only the first scenario is working.
Your web.xml seems ok (i.e version 2.5).
For my info, which version of the GlassFish plugin are you using in Eclipse?
Ludo
> What could be the reason ? There is NPE when i access the injected bean in a servlet. The DD is
>
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
>
>
> Thanks,
> Mohan
> [Message sent by forum member 'mohanr' (mohanr)]
>
> http://forums.java.net/jive/thread.jspa?messageID=294275
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>