[jboss-user] [Datasource Configuration] - mysql javax.naming.NameNotFoundException
pippodev
do-not-reply at jboss.com
Sat Feb 12 12:51:20 EST 2011
pippodev [http://community.jboss.org/people/pippodev] created the discussion
"mysql javax.naming.NameNotFoundException"
To view the discussion, visit: http://community.jboss.org/message/587063#587063
--------------------------------------------------------------
I have the error javax.naming.NameNotFoundException: prova not bound
my mysql-ds.xml:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>prova</jndi-name>
<connection-url>jdbc:mysql://localhost:3306/prova</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
<!-- should only be used on drivers after 3.22.1 with "ping" support
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLValidConnectionChecker</valid-connection-checker-class-name>
-->
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
"prova" is in the java: namespace but not in the Global JNDI Namespace
h1. java: Namespace
[.....]
+- prova (class: org.jboss.resource.adapter.jdbc.WrapperDataSource)
+- timedCacheFactory (class: javax.naming.Context)
I'm using jboss-5.0.1.GA
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/587063#587063]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110212/73307214/attachment.html
More information about the jboss-user
mailing list