I deployed a legacy application on WebLogic 11g. The application has the following code:
Context context = new InitialContext(); dataSource = (javax.sql.Da
I had a similar problem to this one. It got solved by deleting the java:comp/env/ prefix and using jdbc/myDataSource in the context lookup. Just as someone pointed out in the comments.
java:comp/env/
jdbc/myDataSource