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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

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

Dispatcher-servlet.xml :


stack trace:

Kiran Tiwari
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 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.

Kiran Tiwari
    Bookmark Topic Watch Topic
  • New Topic