users@glassfish.java.net

Re: AW: Problem with resource injection in ServletContexListener

From: <glassfish_at_javadesktop.org>
Date: Mon, 08 Feb 2010 09:44:56 PST

I have exactly the same problem.

If i package my application classes in a jar file in WEB-INF/lib directory @Resource injection of DataSource (for example) doesn't work.

I tried @Resource injection of simple environment entries and it works

I think You can build a test case in a couple of minutes
[Message sent by forum member 'bongiox' (bonacinig_at_ausl.re.it)]

http://forums.java.net/jive/thread.jspa?messageID=385495