• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNDI configuration for production env

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Earlier in the console log there should be a stack trace the says what the problem is (what you posted in the post-deployment report which rarely gives the cause of why the deployment failed), please post that stack trace.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic