Created
September 25, 2014 16:26
-
-
Save gbougeard/0ff8b17a261059d64435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JBAS014312: Cannot lookup jndi name: java:jboss/datasources/MySQLDS since it doesn't belong to java:app, java:module, java:comp or java:global namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dataSource type="JNDI"> | |
<property name="data_source" value="java:jboss/datasources/MySQLDS"/> | |
</dataSource> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<datasource jta="true" jndi-name="java:/boss/datasources/MySQLDS" pool-name="MySQLDS" enabled="true" use-java-context="true" spy="false"> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do not access directly with the JNDI name.
Declare a Resource in web.xml :
And lookup "java:comp/env/jdbc/mysql-ds"