You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Stefan Heuer <sh...@gmx.de> on 2007/05/10 10:50:20 UTC

Can't "lookup" serverwide db pool from EAR application

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

I'm trying to setup a java enterprise application, a EAR file
containing a EJB module and a WAR module. To get data I want to use an
serverwide datapool. With the geronimo database pool wizard I created
the pool without problems. I want to reach the database per JNDI from
a enterprise session bean. But I get always the error:

javax.naming.NameNotFoundException: env/jdbc/DBPool

I've tried to derive my application from the BankManager example from
geronimo web page. I attached my config files and the bean code as a
zip package.

I'm using eclipse with ant and xdoclet on windows xp with java 1.6.01.


Thanks

Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGQtzLirQ0Ts08AdMRAh0LAKCM4INlsU9kaMhYeMyv/0m5HMnqPQCeJbXl
gbY9JOJ2jc8d+w58vjPAOkM=
=YGfF
-----END PGP SIGNATURE-----


Re: Can't "lookup" serverwide db pool from EAR application

Posted by Stefan Heuer <sh...@gmx.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi,

If somebody is interested in. I've found a working solution. I
attached the changed files.

I depleted the <dep:dependencies> elements in geronimo-application.xml
and openejb-jar.xml. I adjusted the DBPool.xml a little bit. And I add
the resource-ref tags in the session bean for xdoclet.

Ok, so I have now an application based datasource. But it's works now
fine.

Regards

Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGQzmZirQ0Ts08AdMRAtyqAKCS662oNT+YOBWSQpglf2LgoHX7SwCeLF0P
RoLCoyYbGQs16VqbF9OdSlY=
=DRDa
-----END PGP SIGNATURE-----