Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection Pool (couldn't find datasource)

 
Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear,

I'm trying to use my application server connection pool trought Hibernate.

When i use hibernate without a connection pool, it works.
When i use my connection pool without hibernate, it works.
When i use my connection pool with hibernate, i've got the following error :


my web.xml :

my geronimo.xml

my hibernate.cfg.xml


I use a "HibernateUtil" class, the error appears at the following code line :


Could you please tell me what am I missing ?
I tryed X different configurations, always the same problem..
Thanks a lot !
 
Arun Kumarr
Ranch Hand
Posts: 661
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. You might want to check JNDI naming conventions (in general and for geronimo).
2. Use Geronimo's Admin Interface to actually check under what name the JNDI object is bound. You can use that for looking up.

This Link might be helpful.
 
Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I fixed it, thanks a lot anyway
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the solution please?
I'm guessing your JNDI URL was incorrect.
 
Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David O'Meara wrote:Can you post the solution please?
I'm guessing your JNDI URL was incorrect.


You're right.
I had to specify a new dependency in my geronimo-web.xml using this synthax : <dep:artifactId>jdbc_oracleJndi</dep:artifact>
and then link it this way :


Hope it helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic