javax.ejb.EJBTransactionRolledbackException: An AnnotationConfiguration instance is required to use <mapping class="com.parentco.fdr.myproject.model.UserRole"/>

coderanch.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast (JBoss/WildFly forum at Coderanch)

    coderanch.com | 10 months ago
    javax.ejb.EJBTransactionRolledbackException: An AnnotationConfiguration instance is required to use <mapping class="com.parentco.fdr.myproject.model.UserRole"/>
  2. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast (JBoss/WildFly forum at Coderanch)

    coderanch.com | 6 months ago
    javax.ejb.EJBTransactionRolledbackException: An AnnotationConfiguration instance is required to use <mapping class="com.parentco.fdr.myproject.model.UserRole"/>
  3. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast

    Coderanch | 5 years ago | Dave Alvarado
    javax.ejb.EJBTransactionRolledbackException: An AnnotationConfiguration instance is required to use <mapping class="com.parentco.fdr.myproject.model.UserRole"/>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem in persistence.xml: org.hibernate.ejb.HibernatePersistence cannot be cast (JBoss/WildFly forum at Coderanch)

    coderanch.com | 1 month ago
    javax.ejb.EJBTransactionRolledbackException: An AnnotationConfiguration instance is required to use <mapping class="com.parentco.fdr.myproject.model.UserRole"/>
  6. 0

    How do I register a custom classloader with Hibernate's ClassLoaderService?

    Stack Overflow | 5 years ago | Chris Ottley
    org.hibernate.MappingException: Unable to load class [ invoice] declared in Hibernate configuration &lt;mapping/&gt; entry

    3 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.MappingException

      An AnnotationConfiguration instance is required to use <mapping class="com.parentco.fdr.myproject.model.UserRole"/>

      at org.hibernate.cfg.Configuration.parseMappingElement()
    2. Hibernate
      Configuration.configure
      1. org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1600)
      2. org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)
      3. org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
      4. org.hibernate.cfg.Configuration.configure(Configuration.java:1523)
      4 frames
    3. org.mainco.subco
      ProcessOrdersJob.execute
      1. org.mainco.subco.dido.service.AbstractServiceProvider.getSessionFactory(AbstractServiceProvider.java:84)
      2. org.mainco.subco.dido.service.AbstractServiceProvider.initServices(AbstractServiceProvider.java:163)
      3. org.mainco.subco.dido.quartz.ProcessOrdersJob.execute(ProcessOrdersJob.java:80)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. org.jboss.aop
      MethodInvocation.invokeNext
      1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
      1 frame
    6. org.jboss.ejb3
      EJB3InterceptorsInterceptor.invoke
      1. org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
      2. org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
      2 frames
    7. org.jboss.aop
      MethodInvocation.invokeNext
      1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      1 frame
    8. org.jboss.ejb3
      TransactionScopedEntityManagerInterceptor.invoke
      1. org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
      1 frame
    9. org.jboss.aop
      MethodInvocation.invokeNext
      1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      1 frame
    10. org.jboss.ejb3
      AllowedOperationsInterceptor.invoke
      1. org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
      1 frame
    11. org.jboss.aop
      MethodInvocation.invokeNext
      1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      1 frame
    12. org.jboss.aspects
      TxInterceptor$Required.invoke
      1. org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
      2. org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
      2 frames
    13. org.jboss.aop
      MethodInvocation.invokeNext
      1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      1 frame
    14. org.jboss.ejb3
      StatelessInstanceInterceptor.invoke
      1. org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
      1 frame
    15. org.jboss.aop
      MethodInvocation.invokeNext
      1. org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
      1 frame
    16. org.jboss.ejb3
      MessageInflowLocalProxy.invoke
      1. org.jboss.ejb3.mdb.MessagingContainer.localInvoke(MessagingContainer.java:249)
      2. org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.delivery(MessageInflowLocalProxy.java:268)
      3. org.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy.invoke(MessageInflowLocalProxy.java:138)
      3 frames
    17. Unknown
      $Proxy149.execute
      1. $Proxy149.execute(Unknown Source)
      1 frame
    18. JBoss Application Server Connector
      QuartzJob.execute
      1. org.jboss.resource.adapter.quartz.inflow.QuartzJob.execute(QuartzJob.java:57)
      1 frame
    19. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:203)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
      2 frames