0 Replies Latest reply on May 6, 2011 4:00 PM by Tarek Hammoud

    AS7 DS binding error

    Tarek Hammoud Novice

      Hello,

       

      We are getting the following error when deploying an ear file.

       

      Caused by: java.lang.IllegalArgumentException: Failed to determine resource binding value for BindingDescription{bindingName='java:comp/env/com.enfusion.fds.common.BaseSession/ds', bindingType='javax.sql.DataSource', referenceSourceDescription=org.jboss.as.ee.component.LazyBindingSourceDescription@502a3135}

              at org.jboss.as.ee.component.LazyBindingSourceDescription.getResourceValue(LazyBindingSourceDescription.java:50)

              at org.jboss.as.ee.component.ComponentInstallProcessor.addJndiBinding(ComponentInstallProcessor.java:253)

              at org.jboss.as.ee.component.ComponentInstallProcessor.deployComponent(ComponentInstallProcessor.java:187)

              at org.jboss.as.ee.component.ComponentInstallProcessor.deploy(ComponentInstallProcessor.java:67)

              ... 5 more

       

      Here is what we did:

       

      1. Configured the Data Source. The server seems to bind it correctly
        1. 14:30:49,635 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) Bound data source [java:/FinancialDataServerDS]

       

      The base class of the EJB has ds declared as:

          @Resource(mappedName="java:/FinancialDataServerDS")

          protected DataSource ds;

       

      The ear file is deployed under "standalone/deployments".

       

      This works in 4, and 61. Thanks in advance of any pointers.

       

      Tarek