Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-1015

ERROR org.hibernate.ejb.Ejb3Configuration - HHH000050: Container is providing a null PersistenceUnitRootUrl: discovery impossible

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.0.Beta7
    • Fix Version/s: None
    • Component/s: ErraiJPA
    • Labels:
      None
    • Environment:
    • Steps to Reproduce:
      Hide

      1. Create simple entity
      2. Make call to EntityManager (ie em.find(MyEntity.class, 1)
      2. Add dependency on errai-jpa-client
      3. Compile

      Show
      1. Create simple entity 2. Make call to EntityManager (ie em.find(MyEntity.class, 1) 2. Add dependency on errai-jpa-client 3. Compile

      Description

      Browser console outputs the following error when trying to use errai-jpa-client API (ie calling methods on EntityManager) :
      java.lang.IllegalArgumentException: [entityName] is not a known entity type

      The following compiler output details the error - note it is logged at DEBUG level and+ very hard to find+, although this causes the application to fail.

      04:34:27.584 [pool-4-thread-3] DEBUG org.hibernate.ejb.Ejb3Configuration - Processing PersistenceUnitInfo [
      name: ErraiClientPersistenceUnit
      persistence provider classname: null
      classloader: sun.misc.Launcher$AppClassLoader@7a07c5b4
      Temporary classloader: sun.misc.Launcher$AppClassLoader@7a07c5b4
      excludeUnlistedClasses: false
      JTA datasource: null
      Non JTA datasource: null
      Transaction type: RESOURCE_LOCAL
      PU root URL: null
      Shared Cache Mode: NONE
      Validation Mode: NONE
      Jar files URLs []
      Managed classes names []
      Mapping files names []
      Properties []
      04:34:27.588 [pool-4-thread-3] DEBUG org.hibernate.ejb.Ejb3Configuration - Detect class: true; detect hbm: true
      04:34:27.588 [pool-4-thread-3] DEBUG org.hibernate.ejb.Ejb3Configuration - Detect class: true; detect hbm: true
      04:34:27.589 [pool-4-thread-3] ERROR org.hibernate.ejb.Ejb3Configuration - HHH000050: Container is providing a null PersistenceUnitRootUrl: discovery impossible

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                mjm.ent Mathieu Moloney
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: