5 Replies Latest reply on Jul 27, 2011 9:09 AM by Agustin Sivoplás Ferrari

    Jboss 5.1 to 6.0 migration

    sabbirali kadiwala Newbie

      We have used ejb 3.0 and jpa in our application with oracle database. it is running fine jboss5.1 when we deploy same EAR in jboss 6.0 it is giving error given below.

       

      DEPLOYMENTS IN ERROR:
        Deployment "<UNKNOWN jboss.j2ee:ear=IASEar.ear,jar=IASEJB.jar,name=AbcSiteSatausFacade,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=IASEar.ear/IASEJB.jar#eksOracle' **

      DEPLOYMENTS IN ERROR:

        Deployment "<UNKNOWN jboss.j2ee:ear=IASEar.ear,jar=IASEJB.jar,name=AbcSiteSatausFacade,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=IASEar.ear/IASEJB.jar#eksOracle' **

       

      actually eksOracle is jndi name which is running we have tested from admin console it is running.

       

      persistence.xml

      --------------------------------

       

      <persistence-unit name="eksOracle">

      <jta-data-source>java:OracleDS</jta-data-source>

      <properties>

      <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect" />

      </properties>

      </persistence-unit>

       

      oracle-ds.xml

      ------------------------

       

      <jndi-name>OracleDS</jndi-name>

          <connection-url>jdbc:oracle:thin:@10.0.7.51:1521:ccount</connection-url>

          <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>

          <user-name>iasccpi</user-name>

          <password>iasccpi</password>

      <min-pool-size>1</min-pool-size>

      <max-pool-size>20</max-pool-size>

       

       

      if any body have migrated please give solution ......