3 Replies Latest reply on May 23, 2012 4:52 AM by jaikiran pai

    JNDI lookup JBoss Application Server 7

    Sagar Zond Newbie

      Getting error while fetching entity manager factory on jboss7.2.0. I have also tried jndi lookup for entity manager but that time getting error NameNotFound. This bug is open state since jboss 6 (https://issues.jboss.org/browse/JBAS-8036) Is there any work around? Plz help me.

       

      Code -


      EntityManagerFactory emFactory = Persistence.createEntityManagerFactory("XtrJPA");
      EntityManager em = emFactory.createEntityManager();

       

      persistence.xml -

       

          

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="1.0"
          xmlns="http://java.sun.com/xml/ns/persistence"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

          <persistence-unit name="XtrJPA">
              <provider>org.hibernate.ejb.HibernatePersistence</provider>
              <jta-data-source>java:jboss/eazypracticedb</jta-data-source>

              <properties>
                  <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
                  <property name="hibernate.dialect" value="xtremum.health.us.api.report.LongVarcharHSQLDialect"/>
                  <property name="jboss.entity.manager.jndi.name" value="java:jboss/XtrJPA"/>
                  <property name="jboss.entity.manager.factory.jndi.name" value="java:jboss/XtrJPAFactory"/>
                  <property name="hibernate.dialect" value="xtremum.health.us.api.BitwiseHSQLDialect"/>
                  <property name="hibernate.show_sql" value="true"/> 
               </properties>

          </persistence-unit>
      </persistence>

      Error -

       

          

      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
      at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]
      at xtremum.health.us.api.audit.pojo.AuditListener.onPrePersist(AuditListener.java:27) [XtrAPI.jar:]
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]
      at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]
      at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:48) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:110) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:79) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:70) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:236) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]
      at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:216) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

        • 1. Re: JNDI lookup JBoss Application Server 7
          jaikiran pai Master

          That doesn't look like the entire exception stacktrace. Can you post the entire exception stacktrace?

          • 2. Re: JNDI lookup JBoss Application Server 7
            Sagar Zond Newbie

                   Error full stackstrace -

            javax.ejb.EJBTransactionRolledbackException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:138) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:203) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:305) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at xtremum.health.us.api.PatientBeanLocal$$$view17.addPersonEntity(Unknown Source) [XtrAPI.jar:]

            at xtremum.health.us.api.scheduling.bean.ScheduleBean.addPatient(ScheduleBean.java:5167) [XtrAPI.jar:]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]

            at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]

            at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:227) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:303) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at xtremum.health.us.api.scheduling.ScheduleBeanLocal$$$view24.addPatient(Unknown Source) [XtrAPI.jar:]

            at xtremum.health.us.webservice.scheduling.MedicalApptWrite.addPatient(MedicalApptWrite.java:554)

            at xtremum.health.us.webservice.scheduling.MedicalApptWrite.doPost(MedicalApptWrite.java:224)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

            at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)

            at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

            Caused by: javax.persistence.PersistenceException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

            at xtremum.health.us.api.audit.pojo.AuditListener.onPrePersist(AuditListener.java:27) [XtrAPI.jar:]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]

            at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]

            at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:48) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:110) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:79) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:70) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:236) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:216) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:154) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:76) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:871) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:855) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:859) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:873) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.jboss.as.jpa.container.AbstractEntityManager.merge(AbstractEntityManager.java:548) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at xtremum.health.us.api.bean.PatientBean.addPersonEntity(PatientBean.java:1240) [XtrAPI.jar:]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]

            at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]

            at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:201) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            ... 84 more

            Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jta.platform.spi.JtaPlatform]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:186) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:96) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2274) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2270) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1739) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:93) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            ... 128 more

            Caused by: org.hibernate.service.jta.platform.spi.JtaPlatformException: Unable to build org.hibernate.service.jta.platform.internal.TransactionManagerLookupBridge from specified org.hibernate.transaction.TransactionManagerLookup implementation: org.hibernate.transaction.TransactionManagerLookup

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.mapLegacyClasses(JtaPlatformInitiator.java:179) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.getConfiguredPlatform(JtaPlatformInitiator.java:102) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:60) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:47) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:69) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            ... 136 more

             

            12:42:21,074 ERROR [org.jboss.as.ejb3.invocation] (http-/0.0.0.0:8080-9) JBAS014134: EJB Invocation failed on component ScheduleBean for method public abstract xtremum.health.us.api.pojo.ENPIResponse xtremum.health.us.api.scheduling.ScheduleBeanLocal.addPatient(xtremum.health.us.api.scheduling.pojo.MedicalAppointment,xtremum.health.us.api.generic.StaticVariable$ClientType,java.util.Hashtable) throws xtremum.health.us.api.exception.InvalidDataException,xtremum.health.us.api.exception.DuplicateRecord,xtremum.health.us.api.exception.InsufficientDataException,xtremum.health.us.api.exception.ThresholdLimitExceeded,xtremum.health.us.api.exception.PatientThresholdLimitExceeded,xtremum.health.us.api.exception.UnauthorizedUserException: javax.ejb.EJBTransactionRolledbackException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:138) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:203) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:305) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at xtremum.health.us.api.PatientBeanLocal$$$view17.addPersonEntity(Unknown Source) [XtrAPI.jar:]

            at xtremum.health.us.api.scheduling.bean.ScheduleBean.addPatient(ScheduleBean.java:5167) [XtrAPI.jar:]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]

            at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]

            at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:227) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:303) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at xtremum.health.us.api.scheduling.ScheduleBeanLocal$$$view24.addPatient(Unknown Source) [XtrAPI.jar:]

            at xtremum.health.us.webservice.scheduling.MedicalApptWrite.addPatient(MedicalApptWrite.java:554)

            at xtremum.health.us.webservice.scheduling.MedicalApptWrite.doPost(MedicalApptWrite.java:224)

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

            at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

            at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)

            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)

            at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_20]

            Caused by: javax.persistence.PersistenceException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

            at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47) [hibernate-jpa-2.0-api-1.0.1.Final.jar:1.0.1.Final]

            at xtremum.health.us.api.audit.pojo.AuditListener.onPrePersist(AuditListener.java:27) [XtrAPI.jar:]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]

            at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]

            at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:48) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:110) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:79) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:70) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:236) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:216) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:154) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:76) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:871) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:855) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:859) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:873) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.jboss.as.jpa.container.AbstractEntityManager.merge(AbstractEntityManager.java:548) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at xtremum.health.us.api.bean.PatientBean.addPersonEntity(PatientBean.java:1240) [XtrAPI.jar:]

            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_20]

            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_20]

            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_20]

            at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_20]

            at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) [jboss-as-jpa-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

            at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:201) [jboss-as-ejb3-7.2.0.Alpha1-SNAPSHOT.jar:7.2.0.Alpha1-SNAPSHOT]

            ... 84 more

            Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jta.platform.spi.JtaPlatform]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:186) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:96) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2274) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2270) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1739) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:93) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905) [hibernate-entitymanager-4.1.2.Final.jar:4.1.2.Final]

            ... 128 more

            Caused by: org.hibernate.service.jta.platform.spi.JtaPlatformException: Unable to build org.hibernate.service.jta.platform.internal.TransactionManagerLookupBridge from specified org.hibernate.transaction.TransactionManagerLookup implementation: org.hibernate.transaction.TransactionManagerLookup

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.mapLegacyClasses(JtaPlatformInitiator.java:179) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.getConfiguredPlatform(JtaPlatformInitiator.java:102) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:60) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:47) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:69) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]

            ... 136 more

             

            12:42:21,136 INFO [stdout] (http-/0.0.0.0:8080-9) I am in main Exception : javax.ejb.EJBTransactionRolledbackException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            12:42:21,136 ERROR [stderr] (http-/0.0.0.0:8080-9) javax.ejb.EJBTransactionRolledbackException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            12:42:21,136 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:138)

            12:42:21,136 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:203)

            12:42:21,136 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:305)

            12:42:21,136 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

            12:42:21,137 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,138 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.api.PatientBeanLocal$$$view17.addPersonEntity(Unknown Source)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.api.scheduling.bean.ScheduleBean.addPatient(ScheduleBean.java:5167)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at java.lang.reflect.Method.invoke(Method.java:597)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

            12:42:21,139 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

            12:42:21,140 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:227)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:303)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:189)

            12:42:21,141 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,142 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32)

            12:42:21,143 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,143 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45)

            12:42:21,143 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,152 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            12:42:21,152 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165)

            12:42:21,152 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:176)

            12:42:21,152 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.api.scheduling.ScheduleBeanLocal$$$view24.addPatient(Unknown Source)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.webservice.scheduling.MedicalApptWrite.addPatient(MedicalApptWrite.java:554)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.webservice.scheduling.MedicalApptWrite.doPost(MedicalApptWrite.java:224)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

            12:42:21,153 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

            12:42:21,161 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

            12:42:21,161 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

            12:42:21,161 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

            12:42:21,161 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

            12:42:21,161 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

            12:42:21,161 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at java.lang.Thread.run(Thread.java:619)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) Caused by: javax.persistence.PersistenceException: [PersistenceUnit: XtrJPA] Unable to build EntityManagerFactory

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)

            12:42:21,162 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.api.audit.pojo.AuditListener.onPrePersist(AuditListener.java:27)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at java.lang.reflect.Method.invoke(Method.java:597)

            12:42:21,163 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.event.ListenerCallback.invoke(ListenerCallback.java:48)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:110)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.event.EntityCallbackHandler.preCreate(EntityCallbackHandler.java:79)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.event.EJB3MergeEventListener.saveWithGeneratedId(EJB3MergeEventListener.java:70)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.event.internal.DefaultMergeEventListener.saveTransientEntity(DefaultMergeEventListener.java:236)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:216)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:154)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:76)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:871)

            12:42:21,164 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:855)

            12:42:21,166 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:859)

            12:42:21,166 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:873)

            12:42:21,166 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.jpa.container.AbstractEntityManager.merge(AbstractEntityManager.java:548)

            12:42:21,166 ERROR [stderr] (http-/0.0.0.0:8080-9) at xtremum.health.us.api.bean.PatientBean.addPersonEntity(PatientBean.java:1240)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at java.lang.reflect.Method.invoke(Method.java:597)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory.java:72)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36)

            12:42:21,167 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

            12:42:21,168 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:201)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) ... 84 more

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jta.platform.spi.JtaPlatform]

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:186)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

            12:42:21,169 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:96)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2274)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2270)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1739)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:93)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) ... 128 more

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) Caused by: org.hibernate.service.jta.platform.spi.JtaPlatformException: Unable to build org.hibernate.service.jta.platform.internal.TransactionManagerLookupBridge from specified org.hibernate.transaction.TransactionManagerLookup implementation: org.hibernate.transaction.TransactionManagerLookup

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.mapLegacyClasses(JtaPlatformInitiator.java:179)

            12:42:21,170 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.getConfiguredPlatform(JtaPlatformInitiator.java:102)

            12:42:21,171 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:60)

            12:42:21,171 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.initiateService(JtaPlatformInitiator.java:47)

            12:42:21,171 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:69)

            12:42:21,171 ERROR [stderr] (http-/0.0.0.0:8080-9) at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176)

            12:42:21,171 ERROR [stderr] (http-/0.0.0.0:8080-9) ... 136 more

             

            • 3. Re: JNDI lookup JBoss Application Server 7
              jaikiran pai Master

              For those of you trying to search for the real error in that stacktrace, here's the relevant part:

               

              Caused by: org.hibernate.service.jta.platform.spi.JtaPlatformException: 
              Unable to build org.hibernate.service.jta.platform.internal.TransactionManagerLookupBridge 
              from specified org.hibernate.transaction.TransactionManagerLookup implementation: org.hibernate.transaction.TransactionManagerLookup
              at  org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.mapLegacyClasses(JtaPlatformInitiator.java:179) [hibernate-core-4.1.2.Final.jar:4.1.2.Final]
              at org.hibernate.service.jta.platform.internal.JtaPlatformInitiator.getConfiguredPlatform(JtaPlatformInitiator.java:102) [hiber