5 Replies Latest reply on Jul 27, 2011 9:09 AM by spiritfox26

    Jboss 5.1 to 6.0 migration

    sabbirali

      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 ......

        • 1. Re: Jboss 5.1 to 6.0 migration
          jaikiran

          Does the AbcSiteSatausFacade bean inject any persistence unit or persistence context? What does that code look like? And where is the persistence.xml placed?

          • 2. Re: Jboss 5.1 to 6.0 migration
            sabbirali

            i have put persistence.xml in META-INF folder of EJB module

             

            but i have change runtime and it is showing error like below

             

            15:00:30,968 INFO  [EntityBinder] Bind entity com.eks.ias.service.core.entity.MstUsr on table MST_USR

            15:00:30,984 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=IASEar.ear/IASEJB.jar#eksOracle state=Create: org.hibernate.AnnotationException: Associations marked as mappedBy must not define database mappings like @JoinTable or @JoinColumn: com.eks.ias.service.core.entity.MstUsr.mapConceptZoneSites

             

            Thanx for reply ....

             

            15:00:30,968 INFO  [EntityBinder] Bind entity com.eks.ias.service.core.entity.MstUsr on table MST_USR
            15:00:30,984 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=IASEar.ear/IASEJB.jar#eksOracle state=Create: org.hibernate.AnnotationException: Associations marked as mappedBy must not define database mappings like @JoinTable or @JoinColumn: com.eks.ias.service.core.entity.MstUsr.mapConceptZoneSites

            • 3. Re: Jboss 5.1 to 6.0 migration
              nickarls

              That is a Hibernate error causing the failure. Check the entity.

              • 4. Re: Jboss 5.1 to 6.0 migration
                sabbirali

                thanx for your valuable reply Nicklas Karlsson......

                • 5. Re: Jboss 5.1 to 6.0 migration
                  spiritfox26

                  I have this error, you resolved it?

                   

                  Thanks