• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Connection Pool (couldn't find datasource)

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Ranch Hand
Posts: 662
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I fixed it, thanks a lot anyway
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic