EasyBeans
  1. EasyBeans
  2. EZB-270

entity bean sample don't work with openjpa in standalone easybeans 1.0.0 package

    Details

    • Global Rank:
      2001

      Description

      Using the standalone easybeans package release 1.0.0.

      The entity bean sample, works fine with hibernate or toplink but doesn't work properly with openjpa persistence provider.
      Error is :

      org.ow2.easybeans.server.EmbeddedException: RuntimeException when deploying the deployable 'EJB3DeployableImpl[archive=easybeans-deploy/entitybean.jar]'
      at org.ow2.easybeans.server.DirectoryDeployerMonitor.detectNewArchives(DirectoryDeployerMonitor.java:274)
      at org.ow2.easybeans.server.DirectoryDeployerMonitor.init(DirectoryDeployerMonitor.java:136)
      at org.ow2.easybeans.server.Embedded.start(Embedded.java:295)
      at org.ow2.easybeans.server.EasyBeans.main(EasyBeans.java:105)
      Caused by: <openjpa-1.0.2-r420667:627158 fatal user error> org.apache.openjpa.persistence.ArgumentException: Could not invoke the static newInstance method on the named factory class "<<openjpa-1.0.2-r420667:627158 fatal user error> org.apache.openjpa.util.UserException: You did not name the factory class with the required property openjpa.BrokerFactory. Normally this property defaults appropriately; have you forgotten to include all the OpenJPA jars in your classpath?>".
      at org.apache.openjpa.kernel.Bootstrap.newBrokerFactory(Bootstrap.java:70)
      at org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:119)
      at org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:52)
      at org.ow2.easybeans.persistence.JPersistenceContext.init(JPersistenceContext.java:72)
      at org.ow2.easybeans.persistence.JPersistenceContext.<init>(JPersistenceContext.java:65)
      at org.ow2.easybeans.persistence.PersistenceUnitManager.addExtraPersistenceUnitInfos(PersistenceUnitManager.java:88)
      at org.ow2.easybeans.persistence.PersistenceUnitManager.<init>(PersistenceUnitManager.java:64)
      at org.ow2.easybeans.persistence.xml.PersistenceXmlFileAnalyzer.analyzePersistenceXmlFile(PersistenceXmlFileAnalyzer.java:143)
      at org.ow2.easybeans.container.JContainer3.start(JContainer3.java:321)
      at org.ow2.easybeans.deployer.AbsDeployer.deployEJB(AbsDeployer.java:202)
      at org.ow2.easybeans.deployer.EasyBeansDeployer.deploy(EasyBeansDeployer.java:67)
      at org.ow2.easybeans.server.DirectoryDeployerMonitor.detectNewArchives(DirectoryDeployerMonitor.java:266)
      ... 3 more
      Caused by: <openjpa-1.0.2-r420667:627158 fatal user error> org.apache.openjpa.persistence.ArgumentException: You did not name the factory class with the required property openjpa.BrokerFactory. Normally this property defaults appropriately; have you forgotten to include all the OpenJPA jars in your classpath?

        Activity

        Hide
        Florent Benoit
        added a comment -

        Fixed

        Show
        Florent Benoit
        added a comment - Fixed
        Hide
        Loïc Albertin
        added a comment -

        Closing old resolved issues

        Show
        Loïc Albertin
        added a comment - Closing old resolved issues

          People

          • Assignee:
            Florent Benoit
            Reporter:
            Didier Boudigue
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Issue deployment