1 Reply Latest reply on Dec 11, 2006 5:44 PM by Karen Huang

    Problem when deploy java persistence on jboss-4.0.4.GA

    Karen Huang Newbie

      I am trying to deploy the sample code --masteringEJB3.0Code\Micah Examples--from Mastering Enterprise JavaBeans 3.0 by Rima Patel Sriganesh, Gerald Brose, and Micah Silverman on jboss-4.0.4.GA.

      I used its build.xml to build a package called EntityExamplesEJB.jar, and when I deployed on jboss-4.0.4.GA. I got the following exceptions:
      2006-12-11 14:37:29,178 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/C:/Karen/tools/jboss-4.0.4.GA/server/default/deploy/jmx-console.war/
      2006-12-11 14:37:29,178 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/C:/Karen/tools/jboss-4.0.4.GA/server/default/deploy/jmx-console.war/ -> file:/C:/Karen/tools/jboss-4.0.4.GA/server/default/deploy/jmx-console.war/WEB-INF/web.xml
      2006-12-11 14:37:29,178 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=jdbc/__default,service=ManagedConnectionFactory
      Depends On Me:
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseBidBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=CompanyEmployeeOMBidBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=OrderShipmentBidBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessJoinedBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseUniBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=EmployeeAddressMOUniBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=CompanyEmployeeOMUniBean,service=EJB3
      jboss.j2ee:jar=EntityExamplesEJB.jar,name=OrderShipmentUniBean,service=EJB3

      ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseBidBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1

      ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=CompanyEmployeeOMBidBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1

      ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=OrderShipmentBidBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1

      ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessJoinedBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1

      ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=RoadVehicleStatelessBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1

      ObjectName: jboss.j2ee:jar=EntityExamplesEJB.jar,name=StudentCourseUniBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EntityExamplesEJB.jar,unitName=pu1

      The following is persistence.xml. Actually, I didnot use oracle toplink or derby platform. I am not sure how to write the right persistence.xml. Please help me.


      <persistence-unit name="pu1" transaction-type="JTA">
      <jta-data-source>jdbc/__default</jta-data-source>

      <!--Use the java2db feature -->
      <!-- -->

      <!-- Generate the sql specific to Derby database -->


      </persistence-unit>