Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-5756 Update to JBoss JPA 1.0.1
  3. JBPAPP-5757

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

    XMLWordPrintable

Details

    • Release Notes
    • Hide
      Before the fix, this warning would be logged in the server.log. WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getN
      ewTempClassLoader() is null.

      After this fix the warning is gone and temp classloader is available for the persistence provider.
      Show
      Before the fix, this warning would be logged in the server.log. WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceUnitInfo.getN ewTempClassLoader() is null. After this fix the warning is gone and temp classloader is available for the persistence provider.
    • Not Required

    Description

      Looks like https://jira.jboss.org/browse/EJBTHREE-982 did not make it into JBoss 5

      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

        Issue Links

          Activity

            People

              rhn-support-bmaxwell Brad Maxwell
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: