File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Application Frameworks and the fly likes Spring-JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring-JNDI" Watch "Spring-JNDI" New topic
Author

Spring-JNDI

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
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


Thanks in Advance,
Kousik
Herman Schelti
Ranch Hand

Joined: Jul 17, 2006
Posts: 387
hi,

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


Here?



Herman
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 229
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
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I think that you are not using JndiObjectFactoryBean correctly.


[My Blog]
All roads lead to JavaRanch
 
Don't get me started about those stupid light bulbs.
 
subject: Spring-JNDI