2 Replies Latest reply on Jul 3, 2002 7:09 PM by sdixit

    embedded catalina - binding jdbc/ReportDB to null

    sdixit

      Hi,

      I have
      <resource-ref>
      <res-ref-name>jdbc/ReportDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      in my .war's web.xml file.

      I have also included jboss-web.xml in the .war that contains:
      <resource-ref>
      <res-ref-name>jdbc/ReportDB</res-ref-name>
      <jndi-name>java:/DefaultDS</jndi-name>
      </resource-ref>

      I have no problem in using java:/DefaultDS from EJB's. However I am not able to use it from the web component. Why? What am I doing wrong? I have latest release of JBoss 3.0.0 with embedded Catalina.

      - Sandeep

        • 1. Re: embedded catalina - binding jdbc/ReportDB to null
          sdixit

          Here is the log from server.log

          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkResourceEnvRefs
          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkResourceRefs
          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linking 'jdbc/ReportDB' to JNDI name: null
          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] linkEjbRefs
          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linking ejb-ref: ejb/Relation to JNDI name: RelationBean
          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linking ejb-ref: ejb/Customer to JNDI name: CustomerBean
          2002-07-03 16:04:13,848 DEBUG [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] Linking ejb-ref: ejb/Scenario to JNDI name: ScenarioBean



          It is linking fine with ejb-ref entries from the web.xml and jboss-web.xml. It is just not able to link resource-ref entry. Is this a bug or am I missing something in the setup?

          Sandeep

          • 2. Re: embedded catalina - binding jdbc/ReportDB to null
            sdixit

            Issue is solved. I was putting jboss-web.xml in META-INF directory instead of WEB-INF directory.

            Sandeep