Having played around, I think that's exactly the issue - although in another app I'm using the following code:
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");
DataSource portal = (DataSource)
envCtx.lookup("jdbc/PortalDb");
and it works perfectly... In this app, however, I've removed that and seem to be making progress...
[Message sent by forum member 'phunni' (phunni)]
http://forums.java.net/jive/thread.jspa?messageID=264741