[jboss-user] [JNDI and Naming] New message: "Getting runtime exception while lookup for datasource"

Maheshkumar P do-not-reply at jboss.com
Fri Feb 19 06:33:24 EST 2010


User development,

A new message was posted in the thread "Getting runtime exception while lookup for datasource":

http://community.jboss.org/message/527238#527238

Author  : Maheshkumar P
Profile : http://community.jboss.org/people/maheshrpm

Message:
--------------------------------------------------------------
Hi,
I am using JBoss5.1.0.GA.
I have configured mysql-ds.xml
 
<datasources>
  <local-tx-datasource>
    <jndi-name>jdbc/mySqlDbSource</jndi-name>
    <connection-url>jdbc:mysql://localhost:3306/mydb</connection-url>
    <driver-class>com.mysql.jdbc.Driver</driver-class>
    <user-name>maheshkumar</user-name>
    <password>manish</password>
    <metadata>
       <type-mapping>mySQL</type-mapping>
    </metadata>
  </local-tx-datasource>
</datasources>
 
while deploying my war file i got an exception like
java.lang.RuntimeException: mapped-name is required for jdbc/mySqlDbSource of deployment struts2_sample.war

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/527238#527238




More information about the jboss-user mailing list