[ERROR ] CWWJP0015E: An error occurred in the com.objectdb.jpa.Provider persistence provider when it attempted to create the container entity manager factory for the TestDataSource persistence unit. The following error occurred: Failed to use JTA (TransactionManager is not found) C:\Users\SM58\Development\Servers\wlp\bin\server.bat run defaultServer [2016-08-09 03:30:00,990] Artifact Gradle : develoment.com : TestServices-1.0-SNAPSHOT.war (exploded): Server is not connected. Deploy is not available. Detected server http port: 9080 Launching defaultServer (WebSphere Application Server 16.0.0.2/wlp-1.0.13.cl160220160526-2258) on Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_91-b14 (en_US) [AUDIT ] CWWKE0001I: The server defaultServer has been launched. TRAS0038E: The system could not delete file C:\Users\SM58\Development\Servers\wlp\usr\servers\defaultServer\logs\messages.log [AUDIT ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/16.0.0.2/lafiles/en.html [AUDIT ] CWWKZ0058I: Monitoring dropins for applications. [2016-08-09 03:30:09,085] Artifact Gradle : develoment.com : TestServices-1.0-SNAPSHOT.war (exploded): Artifact is being deployed, please wait... Connected to server [AUDIT ] CWWKG0016I: Starting server configuration update. [AUDIT ] CWWKG0018I: The server configuration was not updated. No functional changes were detected. [AUDIT ] CWWKI0001I: The CORBA name server is now available at corbaloc:iiop:localhost:2809/NameService. [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/ibm/api/ [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/IBMJMXConnectorREST/ [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/adminCenter/ [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/ibm/adminCenter/explore-1.0/ [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/ibm/adminCenter/serverConfig-1.0/ [ERROR ] CWWJP0015E: An error occurred in the com.objectdb.jpa.Provider persistence provider when it attempted to create the container entity manager factory for the TestDataSource persistence unit. The following error occurred: Failed to use JTA (TransactionManager is not found) [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/Gradle___develoment_com___TestServices_1_0_SNAPSHOT_war__exploded_/ [AUDIT ] CWWKZ0001I: Application Gradle___develoment_com___TestServices_1_0_SNAPSHOT_war__exploded_ started in 5.551 seconds. [AUDIT ] CWWKF0012I: The server installed the following features: [servlet-3.1, beanValidation-1.1, ssl-1.0, jndi-1.0, jca-1.7, ejbPersistentTimer-3.2, appSecurity-2.0, j2eeManagement-1.1, jdbc-4.1, wasJmsServer-1.0, jaxrs-2.0, javaMail-1.5, adminCenter-1.0, cdi-1.2, webProfile-7.0, jcaInboundSecurity-1.0, jpa-2.1, jsp-2.3, ejbLite-3.2, managedBeans-1.0, jsf-2.2, ejbHome-3.2, jaxws-2.2, localConnector-1.0, jsonp-1.0, restConnector-1.0, el-3.0, jaxrsClient-2.0, concurrent-1.0, appClientSupport-1.0, ejbRemote-3.2, javaee-7.0, jaxb-2.2, mdb-3.2, jacc-1.5, batch-1.0, ejb-3.2, json-1.0, jaspic-1.1, distributedMap-1.0, websocket-1.1, wasJmsSecurity-1.0, wasJmsClient-2.0]. [AUDIT ] CWWKF0011I: The server defaultServer is ready to run a smarter planet. [2016-08-09 03:30:15,889] Artifact Gradle : develoment.com : TestServices-1.0-SNAPSHOT.war (exploded): Artifact is deployed successfully [2016-08-09 03:30:15,890] Artifact Gradle : develoment.com : TestServices-1.0-SNAPSHOT.war (exploded): Deploy took 6,806 milliseconds [ERROR ] CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "getAllCategories". Exception data: javax.ejb.EJBException: CWNEN0030E: The server was unable to obtain an object instance for the java:comp/env/TestDataSource reference. The exception message was: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found); nested exception is: java.lang.RuntimeException: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.ibm.ejs.container.util.ExceptionUtil.EJBException(ExceptionUtil.java:461) at [internal classes] at com.develoment.test.services.resources.EJSLocalNSLCategoryService_1214df62.getAllCategories(EJSLocalNSLCategoryService_1214df62.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.ibm.ws.jaxrs20.ejb.JaxRsFactoryBeanEJBCustomizer.serviceInvoke(JaxRsFactoryBeanEJBCustomizer.java:345) at [internal classes] Caused by: java.lang.RuntimeException: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.ibm.ws.jpa.management.JPAPUnitInfo.getEntityManagerFactory(JPAPUnitInfo.java:960) ... 8 more Caused by: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:123) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:32) at com.ibm.ws.jpa.management.JPAPUnitInfo.createEMFactory(JPAPUnitInfo.java:1077) ... 1 more Caused by: com.objectdb.o.UserException: Failed to use JTA (TransactionManager is not found) at com.objectdb.o.MSG.d(MSG.java:75) at com.objectdb.jpa.EMF.initJta(EMF.java:175) at com.objectdb.jpa.EMF.init(EMF.java:97) at com.objectdb.jpa.Provider.newEMF(Provider.java:136) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:120) ... 3 more Caused by: javax.naming.NamingException: CWNEN1000E: A JNDI operation on a java:comp/env name cannot be completed because the current thread is not associated with a Java Enterprise Edition application component. This condition can occur when the JNDI client using the java:comp/env name does not occur on the thread of a server application request. Make sure that a Java EE application does not run JNDI operations on java:comp/env names within static code blocks or in threads created by that application. Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on java:comp/env names. at com.ibm.ws.injectionengine.osgi.internal.naming.InjectionJavaColonHelper.getInjectionScopeData(InjectionJavaColonHelper.java:159) at [internal classes] at javax.naming.InitialContext.lookup(InitialContext.java:417) at com.objectdb.jpa.EMF.initJta(EMF.java:133) ... 6 more [WARNING ] Application {http://resources.services.test.develoment.com/}CategoryService has thrown exception, unwinding now com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. [WARNING ] Exception in handleFault on interceptor org.apache.cxf.jaxrs.interceptor.JAXRSDefaultFaultOutInterceptor@5f9f8b3a com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. [ERROR ] Error occurred during error handling, give up! com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. [ERROR ] SRVE0777E: Exception thrown by application class 'org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage:116' java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116) at [internal classes] Caused by: org.apache.cxf.interceptor.Fault: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:167) ... 1 more Caused by: java.lang.RuntimeException: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.ibm.ws.jpa.management.JPAPUnitInfo.getEntityManagerFactory(JPAPUnitInfo.java:960) at [internal classes] at com.develoment.test.services.resources.EJSLocalNSLCategoryService_1214df62.getAllCategories(EJSLocalNSLCategoryService_1214df62.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.ibm.ws.jaxrs20.ejb.JaxRsFactoryBeanEJBCustomizer.serviceInvoke(JaxRsFactoryBeanEJBCustomizer.java:345) ... 1 more Caused by: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:123) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:32) at com.ibm.ws.jpa.management.JPAPUnitInfo.createEMFactory(JPAPUnitInfo.java:1077) ... 1 more Caused by: com.objectdb.o.UserException: Failed to use JTA (TransactionManager is not found) at com.objectdb.o.MSG.d(MSG.java:75) at com.objectdb.jpa.EMF.initJta(EMF.java:175) at com.objectdb.jpa.EMF.init(EMF.java:97) at com.objectdb.jpa.Provider.newEMF(Provider.java:136) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:120) ... 3 more Caused by: javax.naming.NamingException: CWNEN1000E: A JNDI operation on a java:comp/env name cannot be completed because the current thread is not associated with a Java Enterprise Edition application component. This condition can occur when the JNDI client using the java:comp/env name does not occur on the thread of a server application request. Make sure that a Java EE application does not run JNDI operations on java:comp/env names within static code blocks or in threads created by that application. Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on java:comp/env names. at com.ibm.ws.injectionengine.osgi.internal.naming.InjectionJavaColonHelper.getInjectionScopeData(InjectionJavaColonHelper.java:159) at [internal classes] at javax.naming.InitialContext.lookup(InitialContext.java:417) at com.objectdb.jpa.EMF.initJta(EMF.java:133) ... 6 more [ERROR ] SRVE0315E: An exception occurred: java.lang.Throwable: java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4937) at [internal classes] Caused by: java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:116) ... 1 more Caused by: org.apache.cxf.interceptor.Fault: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) while invoking public javax.ws.rs.core.Response com.develoment.test.services.resources.CategoryService.getAllCategories() with params []. at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:167) ... 1 more Caused by: java.lang.RuntimeException: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.ibm.ws.jpa.management.JPAPUnitInfo.getEntityManagerFactory(JPAPUnitInfo.java:960) at [internal classes] at com.develoment.test.services.resources.EJSLocalNSLCategoryService_1214df62.getAllCategories(EJSLocalNSLCategoryService_1214df62.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.ibm.ws.jaxrs20.ejb.JaxRsFactoryBeanEJBCustomizer.serviceInvoke(JaxRsFactoryBeanEJBCustomizer.java:345) ... 1 more Caused by: com.objectdb.o._PersistenceException: Failed to use JTA (TransactionManager is not found) at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:123) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:32) at com.ibm.ws.jpa.management.JPAPUnitInfo.createEMFactory(JPAPUnitInfo.java:1077) ... 1 more Caused by: com.objectdb.o.UserException: Failed to use JTA (TransactionManager is not found) at com.objectdb.o.MSG.d(MSG.java:75) at com.objectdb.jpa.EMF.initJta(EMF.java:175) at com.objectdb.jpa.EMF.init(EMF.java:97) at com.objectdb.jpa.Provider.newEMF(Provider.java:136) at com.objectdb.jpa.Provider.createContainerEntityManagerFactory(Provider.java:120) ... 3 more Caused by: javax.naming.NamingException: CWNEN1000E: A JNDI operation on a java:comp/env name cannot be completed because the current thread is not associated with a Java Enterprise Edition application component. This condition can occur when the JNDI client using the java:comp/env name does not occur on the thread of a server application request. Make sure that a Java EE application does not run JNDI operations on java:comp/env names within static code blocks or in threads created by that application. Such code does not necessarily run on the thread of a server application request and therefore is not supported by JNDI operations on java:comp/env names. at com.ibm.ws.injectionengine.osgi.internal.naming.InjectionJavaColonHelper.getInjectionScopeData(InjectionJavaColonHelper.java:159) at [internal classes] at javax.naming.InitialContext.lookup(InitialContext.java:417) at com.objectdb.jpa.EMF.initJta(EMF.java:133) ... 6 more