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
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Property 'sql' is required
 
Similar Threads
What's wrong with my spring config?
spring 2.5.3 / hibernate 3 sessionFactory NullPointerException
QuerySyntaxException (table is not mapped)
Problem in using multiaction controller in spring
Example for JMS sender - receiver