• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

org.springframework.beans.NotReadablePropertyException

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
am trying to integrate spring2.5 with hibernate . Code of dispatcher servlet is ... please tell me what's the problem in my code waiting for your reply
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Indu,
There is no property such as hibernate.connection.driver_class or other properties in org.springframework.jdbc.datasource.DriverManagerDataSource, which you have declared in datasource. So you are getting NotReadablePropertyException. It is having properties driverClassName,url,username and password. Try changing to this.

P:S: I would recommend you to move all the hibernate and other application related to beans to applicationContext.xml and use ContextLoaderListener to initialize it.
 
indu iyengar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Prasad, it works like a charm. But why are you suggesting to use applicationContext.xml instead of spring-config ?
 
Prasad Krishnegowda
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just for the purpose of readability, because hibernate beans are application specific beans, the spring-dispatcher-servlet.xml, contains the handler mappings. If the application grows big, this would help in readability.
 
reply
    Bookmark Topic Watch Topic
  • New Topic