3 Replies Latest reply on Feb 15, 2008 11:55 AM by Mr Dude

    Toplink Essentials as EJB3 PersistenceProvider on JBoss

    Alexandre Krohn Newbie

      Hi,

      I'm unsucessfully trying setup up JBoss 4.2.0GA to use Toplink Essentials instead Hibernate as persistence provider. I've the necessary toplink jars jboss/server/default/lib, and in my persistence.xml I've

      ...
      <persistence-unit name="tutorial-ejb3" transaction-type="JTA">
      oracle.toplink.essentials.PersistenceProvider
      ....
      <persistence-unit>

      But when I deploy my EAR to JBoss, it can't find my entities, and in console I have:

      15:00:20,656 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=tutorial-ejb3.ear,jar=tutorial-ejb3.jar,unitName=tutorial-ejb
      3
      15:00:20,687 INFO [STDOUT] [TopLink Finest]: 2007.07.06 03:00:20.687--ServerSession(23618473)--Thread(Thread[ScannerThread,5,jboss])--property=toplink.orm.
      throw.exceptions; default value=true
      15:00:20,687 INFO [STDOUT] [TopLink Finer]: 2007.07.06 03:00:20.687--ServerSession(23618473)--Thread(Thread[ScannerThread,5,jboss])--Searching for default
      mapping file in file:/C:/jboss-4.2.0.GA/server/default/tmp/deploy/tmp8261tutorial-ejb3.ear-contents/tutorial-ejb3.jar
      15:00:20,687 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtAteTextosPK. The class is ignored.
      15:00:20,687 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.session.CatalogoSessionBean. The class is ignored.
      15:00:20,687 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.Categoria. The class is ignored.
      15:00:20,687 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.ps.PsPessoas. The class is ignored.
      15:00:20,687 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtAteTextos. The class is ignored.
      15:00:20,687 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtAtendimentos. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.687--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.session.GerenciadorDeCatalogoBean. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.703--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.session.AtendimentoSessionBean. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.703--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.service.AtendimentoSession. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.703--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.service.ServiceLocatorException. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.703--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.service.ServiceLocator. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.703--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.Produto. The class is ignored.
      15:00:20,703 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.703--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtDestinos. The class is ignored.
      15:00:20,812 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.812--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.exceptions.EntidadePossuiFilhosException. The class is ignored.
      15:00:20,812 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.812--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.service.AtendimentoSessionLocal. The class is ignored.
      15:00:20,812 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.812--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.service.CatalogoSession. The class is ignored.
      15:00:20,812 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.812--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.service.GerenciadorDeCatalogo. The class is ignored.
      15:00:20,828 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.828--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtSituacoes. The class is ignored.
      15:00:20,828 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.828--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtAtendimentosPK. The class is ignored.
      15:00:20,828 INFO [STDOUT] [TopLink Warning]: 2007.07.06 03:00:20.828--Thread(Thread[ScannerThread,5,jboss])--java.lang.NullPointerException: null was thro
      wn on attempt of PersistenceLoadProcessor to load class com.model.ejb.entity.at.AtOrigens. The class is ignored.
      15:00:20,828 INFO [STDOUT] [TopLink Finest]: 2007.07.06 03:00:20.828--ServerSession(23618473)--Thread(Thread[ScannerThread,5,jboss])--end predeploying Pers
      istence Unit tutorial-ejb3; state Predeployed; factoryCount 1

      Does anyone got JBoss plus Toplink work togheter like this? How?

      Any help would be appreciate,

      Krohn