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

Hibernate logs warning for PersistenceUnitInfo.newTempClassLoader() == null, which it always is in EJB3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • AS 4.2.1.GA
    • EJB 3.0 RC9 - Patch 1, AS 4.2.0 GA
    • None
    • None

    Description

      WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getN
      ewTempClassLoader() is null.

      Coming from org.hibernate.ejb.Ejb3Configuration
      private void addXMLEntities(List<String> xmlFiles, PersistenceUnitInfo info, List<String> entities) {
      //TODO handle inputstream related hbm files
      ClassLoader newTempClassLoader = info.getNewTempClassLoader();
      if (newTempClassLoader == null)

      { log.warn( "Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is null." ); return; }

      However, implementation of org.jboss.ejb3.entity.PersistenceUnitInfoImpl has:
      public ClassLoader getNewTempClassLoader()

      { return null; }

      Attachments

        Activity

          People

            wdecoste1@redhat.com William Decoste (Inactive)
            wdecoste1@redhat.com William Decoste (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: