Agreed on the NPE. It's something to do with the DataSource not liking
being at the top level, even if it's the top level of a context that
is a few levels down.
The following looks like it'll give you the same result but with the
advantage of no NullPointerException :)
Properties props = new Properties();
props.put("jdbc/myDS/type", "javax.sql.DataSource");
props.put("jdbc/myDS/driver", "driverStr");
props.put("jdbc/myDS/url", "urlStr");
props.put("jdbc/myDS/user", "userStr");
props.put("jdbc/myDS/password", "passStr");
loader.load(props, ic);
Hen