SyntaxFix
Write A Post
Hire A Developer
Questions
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