[jboss-user] [EJB 3.0] - Problem when deploy java persistence on jboss-4.0.4.GA
boomboom
do-not-reply at jboss.com
Mon Dec 11 17:41:30 EST 2006
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>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992924#3992924
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992924
More information about the jboss-user
mailing list