• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'  RSS feed

 
Bharath Pateru
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Dispatcher-servlet.xml :




cfg.xml:




stack trace:







 
Kiran Tiwari
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[size=12]The core error in the stack trace is
javax.naming.NameNotFoundException: Error looking up DRSCM1, service service jboss.naming.context.java.DRSCM1 is not started

The JNDI lookup of the datasource is failing on the Application Server.
According to your spring+hibernate configuration provided, the datasource is mapped to JNDI name java:/DRSCM1
Check your datasource configuration, specifically the JNDI name configured for the same on the server (looks like its a JBOSS AS from the stack trace).
That JNDI name should match with the datasource JNDI name configured in your spring beans and hibernate file.
Also check if your datasource is started up and up and running. Check the status of the same on the JBOSS server.


Regards
Kiran Tiwari

www.sevenmentor.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!