Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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
 
    Bookmark Topic Watch Topic
  • New Topic