If ds contains a WrapperDataSource, then the lookup succeeded, in which case you should be given a connection. Unless your *-ds.xml has incorrect connection information. Please post the exception stack trace.
Reply to this message by going to Community
Start a new discussion in Datasource Configuration at Community