[jboss-user] [EJB 3.0] - jpa persistence deployment error
mpurdy1973
do-not-reply at jboss.com
Thu Nov 13 20:27:28 EST 2008
my session bean has the following:
| @PersistenceContext(name="prj")
| private EntityManager em;
|
the persistence.xml (loaded into the META-INF in the prjEJB.jar file put in the prj.ear file
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
|
| <persistence-unit name="prj">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/prjDS</jta-data-source>
| <class>prj.ejb3.HelloWorldEntityBean</class>
| </persistence-unit>
|
| </persistence>
|
|
i get the following deplyment error
|
|
| org.jboss.deployers.spi.DeploymentException: Error deploying prjEJB.jar: <injection-target> could not be found: prj.ejb3.HelloWorldSessionEJBCallingEntityEJBEnt
| ityBean.prj
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:209)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:108)
| at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:544)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: java.lang.RuntimeException: <injection-target> could not be found: prj.ejb3.HelloWorldSessionEJBCallingEntityEJBEntityBean.prj
| at org.jboss.injection.InjectionUtil.findInjectionTarget(InjectionUtil.java:223)
| at org.jboss.injection.InjectionUtil.injectionTarget(InjectionUtil.java:299)
| at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:64)
| at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:570)
| at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:439)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:552)
| at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:202)
| ... 23 more
| 20:14:15,180 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| vfszip:/C:/jboss500/server/default/deploy/prj.ear -> java.lang.RuntimeException: <injection-target> could not be found: prj.ejb3.HelloWorldSessionEJBCallingEnti
| tyEJBEntityBean.prj
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189263#4189263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189263
More information about the jboss-user
mailing list