users@glassfish.java.net

Re: NullPointerException in ...

From: <forums_at_java.net>
Date: Thu, 5 May 2011 12:05:28 -0500 (CDT)

I have noticed one thing:

I have declared in my persistence.xml the qDBJPA unit with:

<jta-data-source>qDB</jta-data-source>
<non-jta-data-source>qDBNonJta</non-jta-data-source>

But the datasources I have created in GlassFish are called: qDB__pm,
qDBNonJta_nontx respectively.

Could this be the problem? In my functioning test app I am accessing it with:
initContext.lookup("qDB__pm");

Thanks,

Mohamed Maza


--
[Message sent by forum member 'MohamzJava']
View Post: http://forums.java.net/node/798500