• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Spring-JNDI

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to create connection pooling with Spring and JNDI in Jboss.

I have configured the 4 files.
1) applicationContext.xml
2) web.xml
3) jboss-web.xml
4) oracle-ds.xml (in deploy directory)

I am getting the following error:

org.springframework.beans.InvalidPropertyException: Invalid property 'jdbc/kousik' of bean class [org.springframework.jndi.JndiObjectFactoryBean]: No property 'jdbc/kousik' found

Can somebody tell me where is it looking this property name?

1) applicationContext.xml




3) jboss-web.xml



4) oracle-ds.xml





Thanks ,
Kousik

SCJP 5
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

Can somebody tell me where is it looking this property name?



Here?



Herman
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No..it is not.

That property name is there in my code(see my code).

I think it is looking for a mapping maybe in another file.May be it is some .xml file of JBoss.I do not know. I want to know that file name.

So carefully see my code and see if any mapping missing there.

Thanking you,

Kousik
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that you are not using JndiObjectFactoryBean correctly.
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!