0 Replies Latest reply on Jun 12, 2003 12:10 AM by abcdef

    Context Lookup

    abcdef

      Hi All

      I have a application that runs in tomcat 4.1.12 using connection pooling running at port 8080. I tried to use the same application in JBoss making it run at port 8280(jnp at port 1299 instead of 1099 as other tomcat uses port 1099). I get an error when looking up the JNDI pool name. The error is something like "Could not dereference object". Can someone gimme an idea where I had gone wrong?

      I know for sure that the code is perfect as there is no problem while running in tomcat.


      My jndi.properties looks like this

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=jnp://www.abc.net:1299


      My jboss-web lloks like this

      <jboss-web>
      <resource-ref>
      <res-ref-name>jdbc/ABC</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <jndi-name>java:/InfoCRM</jndi-name>
      </resource-ref>
      </jboss-web>


      My oracle-ds.xml looks like this:


      <local-tx-datasource>
      <jndi-name>jdbc/ABC</jndi-name>
      <connection-url>jdbc:oracle:thin:@temp.ABC.com:1521:ABC</connection-url>
      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
      <user-name>sa</user-name>
      sa
      <min-pool-size>5</min-pool-size>
      <max-pool-size>10</max-pool-size>
      <idle-timeout-minutes>30</idle-timeout-minutes>
      <blocking-timeout-millis>10000</blocking-timeout-millis>
      <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
      </local-tx-datasource>