Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-433

PersistenceUnitDeployment doesn't work for RESOURCE_LOCAL configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • AS 4.2.0 GA
    • EJB 3.0 RC6 - PFD
    • None
    • None

      Trying to deploy a persistence.xml with a resource local persistence unit:

      <persistence-unit name="caveatemptorLocalDatabase" transaction-type="RESOURCE_LOCAL">
      <properties>
      <property name="hibernate.ejb.cfgfile" value="/hibernate.cfg.xml"/>
      <property name="hibernate.archive.autodetection" value="none"/>
      </properties>
      </persistence-unit>

      02:23:23,241 INFO MCKernelAbstraction:79 - installing bean: persistence.units:jar=classes.jar,unitName=caveatemptorLocalDatabase with dependencies:
      02:23:23,247 ERROR AbstractKernelController:350 - Error installing to Start: name=persistence.units:jar=classes.jar,unitName=caveatemptorLocalDatabase state=Create
      java.lang.RuntimeException: You have not defined a jta-data-source for a JTA enabled persistence context named: caveatemptorLocalDatabase
      at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:240)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.joinpoint.plugins.reflect.ReflectMethodJoinPoint.dispatch(ReflectMethodJoinPoint.java:72)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextActions.dispatchJoinPoint(KernelControllerContextActions.java:96)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$LifecycleAction.installAction(KernelControllerContextActions.java:476)
      at org.jboss.kernel.plugins.dependency.KernelControllerContextActions$KernelControllerContextAction.install(KernelControllerContextActions.java:171)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:593)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:346)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
      at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
      at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:86)
      at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:599)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
      at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:450)
      at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:199)
      at org.hibernate.ce.auction.test.runtime.EJB3Container.startup(Unknown Source)

              rhn-engineering-cdewolf Carlo de Wolf
              christian.bauer_jira Christian Bauer (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: