|
|
I am trying to deploy my application to JBOSS 5.1 and am running into a JNDI issue.
My *-ds.xml is as follows
<datasources> <local-tx-datasource> <jndi-name>jdbc/csmaApp</jndi-name> <mapped-name>jdbc/csmaApp</mapped-name> .....
</datasources>
My DataSource.groovy setting in app is
production {
dataSource {
jndiName = "jdbc:jdbc/csmaApp"
}
}
On deploy to JBOSS I received the following error:
Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while extracting DatabaseMetaData; nested exception is org.jboss.util.NestedSQLException: Unable to get managed connection for jdbc/csmaApp; - nested throwable: (javax.resource.ResourceException: Unable to get managed connection for jdbc/csmaApp)....
I then tried changing to:
production {
dataSource {
jndiName = "jdbc/csmaApp"
}
}
No success. Any ideas?
Thanks,
Kirk
|