Injection is allowed/supported only in the managed components and static fields of a main class. It will be ignored otherwise.
But the error message says that a PU can't be found, not that injection is not processed. Can you describe the complete structure of your app?
thanks,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=230109