wood burning stoves 2.0*
The moose likes Spring and the fly likes Property 'sql' is required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Property Watch "Property New topic

Property 'sql' is required

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Hi All,

Could you please advise on the below error :

Below is the main class.

Below is the test class.

The datasource configuration is valid.
Also should this be called in the setter method itself or in the findAll() method?

Please advise.

pramod talekar
Ranch Hand

Joined: Apr 26, 2010
Posts: 316

Also, if I change the setter method to this and remove it from findAll() , I get below error :

vaijesh basavarajappa

Joined: Feb 04, 2013
Posts: 5
I guess you missed out driverClassName property while configuring datasource.

It is sorta covered in the JavaRanch Style Guide.
subject: Property 'sql' is required
Similar Threads
spring 2.5.3 / hibernate 3 sessionFactory NullPointerException
QuerySyntaxException (table is not mapped)
Example for JMS sender - receiver
Problem in using multiaction controller in spring
What's wrong with my spring config?