On Mar 8, 9:17 pm, Arnaud MORIN <
arnaud.mo...@gmail.com> wrote:
> Hi all,
>
> I am using JBOSS + Mobicent and would like my project to connect to MySQL
> databases. For this, I added the MySQL connector (jar file) to my
> server/default/lib/ folder.
> I also added a mysql-ds.xml file with the following values:
>
> # cat mysql-ds.xml
> <datasources>
> <local-tx-datasource>
> <jndi-name>l4ecJdbcResource</jndi-name>
> <use-java-context>false</use-java-context>
>
> <connection-url>jdbc:mysql://db.emerginov.local:3306/moodle</connection-url >
>
> <driver-class>com.mysql.jdbc.Driver</driver-class>
> <user-name>root</user-name>
> <password>password</password>
> </local-tx-datasource>
> </datasources>
>
> Unfortunately, when a deployed application tried to connect to the locale
> datasource, I got the following error:
>
> org.jboss.util.NestedSQLException: Unable to get managed connection for
> l4ecJdbcResource; - nested throwable: (javax.resource.ResourceException:
> Unable to get managed connection for l4ecJdbcResource)
> at
> org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperData Source.java:95)
> net.genaker.oki.osids.authentication.AuthenticationManager.authenticateUser (AuthenticationManager.java:72)