1 Reply Latest reply on Jan 2, 2007 7:30 AM by fss

    Migrating application from tomcat to jboss

    Parimoj Malhotra Newbie

      My application is working on tomcat but when try to deploy the same application war file it gives the following error

      no valid JNDI binding. Check the jboss-web/resource-ref.

      My web.xml is like this(only giving few lines here)
      <resource-ref>
      Inventory Source
      <res-ref-name>jdbc/InventorySource</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      Jboss-web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <jboss-web>
      <!-- Uncomment the security-domain to enable security. You will
      need to edit the htmladaptor login configuration to setup the
      login modules used to authentication users.
      <security-domain>java:/jaas/jmx-console</Dsecurity-domain>
      -->

      <reference-ref>
      <res-ref-name>jdbc/InventorySource</res-ref-name>
      <jndi-name>java:jdbc/InventorySource</jndi-name>
      </reference-ref>

      </jboss-web>

      postgres-ds.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!-- Example of the pointbase 4.8 datasource configuration -->
      <!-- $Id: pointbase-ds.xml 23720 2004-09-15 14:37:40Z loubyansky $ -->

      <local-tx-datasource>
      <jndi-name>jdbc/InventorySource</jndi-name>
      <use-java-context>false</use-java-context>
      <connection-url>jdbc:postgresql://localhost:5432/demo</connection-url>
      <driver-class>org.postgresql.Driver</driver-class>
      <user-name>admin</user-name>
      admin
      <type-mapping>PointBase</type-mapping>
      </local-tx-datasource>


      Please help me

      Thanks
      Parimoj