1 Reply Latest reply on Oct 3, 2017 5:29 AM by andey

    Deploying Ear and War file at the same Jboss 4 server.

    cuongthieu

      Hi all,

       

      I got a big problem when deploy the two application on one Jboss server.

       

      1. An Ear file that have many functions connect to a db using oracle-ds.xml.

      2. An War file that have a web service call the functions on Ear file.

       

      When I deployed Ear file, I can call all the function by external Java class without any error. But right after that, I deloy the War file on Jboss then catch the following error:

       

      "javax.ejb.EJBException: Unable to find DB pool: javax.naming.NameNotFoundException: jdbc not bound".

       

      Then the external Java class catch the above message two. I did not change any thing on oracles-ds.xml. Here is the declare code:

      <datasources>

        <local-tx-datasource>

          <jndi-name>jdbc/DataSource</jndi-name>

          <connection-url>jdbc:oracle:thin:@10.2.91.207:1521:PRENCOREDB</connection-url>

       

      Help awaited,

      thanks & regards,