File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Property Watch "Property New topic
Author

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.


Thanks,
Pramod
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
Greenhorn

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

Vaijesh
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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?