When I run the following snippet to connect to datasource to get the data out through queries :
try { String driver = \"com.microsoft.jdbc.sq
Having database defined and Class.forName(driver); is not enough.
Class.forName(driver)
You need to make sure appropriate database driver jar is in classpath.