I am trying to setup JNDI for a grails application in production and getting the following error �
20:50:34,250 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console,
warUrl=.../deploy/jmx-console.war/
20:50:56,781 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- MBeans waiting for other MBeans ---
ObjectName: jboss.web.deployment:war=myApp-0.1.war,id=1201066362
State: NOTYETINSTALLED
I Depend On:
jboss.jca:service=DataSourceBinding,name=myAppDS
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=DataSourceBinding,name=myAppDS
State: NOTYETINSTALLED
Depends On Me:
jboss.web.deployment:war=myApp-0.1.war,id=1201066362
20:50:56,828 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on
http-0.0.0.0-8080
This is what I did for the setup -
1) DataSource.Groovy -
production {
dataSource {
jndiName = "java:jdbc/myAppDS"
}
}
2) jboss-web.xml
<resource-ref>
<res-ref-name>jdbc/myAppDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>
java:/myAppDS</jndi-name>
</resource-ref>
3)web.xml
<resource-ref>
<res-ref-name>jdbc/myAppDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
4) app-ds.xml
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/myAppDS</jndi-name>
<!-- Connection Settings -->
<connection-url> .... connection url .....</connection-url>
<driver-class> ....driver.....</driver-class>
<user-name>...</user-name>
<password>...</password>
<!-- Connection Pool Settings -->
<min-pool-size>10</min-pool-size>
<max-pool-size>50</max-pool-size>
<idle-timeout-minutes>10</idle-timeout-minutes>
<track-statements>false</track-statements>
<metadata>
<!-- Type Mapping -->
<type-mapping>informix</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
Any Idea why I am getting the error?
Thank you for your help.