javax.ejb.CreateException: > Initialization > failed for Singleton ApplicationBean javax.ejb.CreateException: > Initialization failed for Singleton ApplicationBean at > com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:547) > > at > com.sun.ejb.containers.AbstractSingletonContainer.access$100(AbstractSingletonContainer.java:79) > > at > com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:719) > > at > com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:216) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:177) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:155) > > at > org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:177) > at > org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at > org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294) > > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462) > > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) > > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232) > > at > org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) > at > org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) > at > org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148) > >

Oracle Community | groverblue | 5 years ago
  1. 0

    [SOLVED] Deploying EAR fails on Singleton initialization with "create-tables" configuration

    Oracle Community | 5 years ago | groverblue
    javax.ejb.CreateException: > Initialization > failed for Singleton ApplicationBean javax.ejb.CreateException: > Initialization failed for Singleton ApplicationBean at > com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:547) > > at > com.sun.ejb.containers.AbstractSingletonContainer.access$100(AbstractSingletonContainer.java:79) > > at > com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:719) > > at > com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:216) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:177) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:155) > > at > org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:177) > at > org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at > org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294) > > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462) > > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) > > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232) > > at > org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) > at > org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) > at > org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148) > >
  2. 0

    problem of using connetion pool ?

    Oracle Community | 1 decade ago | 3004
    javax.ejb.CreateException: weblogic/jdbc/pool/Driver at myp5.CustomerBean.ejbCreate(CustomerBean.java:48) at myp5.CustomerBean_b3dzi6_Impl.ejbCreate(CustomerBean_b3dzi6_Impl.java:11 2)
  3. 0

    What's the latest version of the BEA MSQL JDBC driver?

    Oracle Community | 1 decade ago | 3004
    javax.ejb.CreateException: SQLException on Create: com.jnetdirect.jsql.x: Line 1: Incorrect syntax near 'M'. at weblogic.knex.bean.WebProcessBean.ejbCreate(WebProcessBean.java:1032) at > weblogic.knex.bean.WebProcessBean_lrv41b_Impl.ejbCreate(WebProcessBean_lrv41 b_Impl.java:182)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Installing Dataverse on Redhat 6.6

    Google Groups | 2 years ago | TJ Bryant
    javax.ejb.CreateException: Initialization failed for Singleton IngestServiceBean at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:476) at com.sun.ejb.containers.AbstractSingletonContainer.access$000(AbstractSingletonContainer.java:74) at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:647) com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:389) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:219) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:180) org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:158)
  6. 0

    v3 prelude b28c In a singleton with container-managed transaction, its post-construct method should have transaction attribute Required (or RequiresNew), and its transaction context is independent of that of any business methods. But the actual behavior is like this: Singleton is lazily initialized and its post-construct is not called till the first business method invocation. If this business method has no client transaction context (tx attr RequiresNew), there is no transaction context in singleton post-construct method. When doing a EntityManager persist, I got javax.persistence.TransactionRequiredException. If this business method has a client transaction context (tx attr Required), there is a transaction context in post-construct, and no error from EntityManager persist operation. But the data does not exist in table after post-construct and business method invocation. It seems the transaction inside post-construct is silently ended without commit nor rollback. Adding a flush after persist made no difference. Stacktrace for the first symptom: [#|2008-11-10T15:07:46.946-0500|FINE|sun-glassfish|org.eclipse.persistence.session.file:/home/cf126330/prelude/glassfish/domains/domain1/applications/ejblite_tx_cm_singleton_rw_ejblitejsp_vehicle_web/WEB-INF/classes/-ejblite-pu.sql|_ThreadID=15;_ThreadName=Thread-4;ClassName=null;MethodName=null;|SELECT ID, PRICE, BRANDNAME FROM COFFEE WHERE (ID = ?) bind => [0]|#] [#|2008-11-10T15:07:46.948-0500|INFO|sun-glassfish|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=Thread-4;|EJB5070: Exception creating stateless session bean : [{0}] javax.persistence.TransactionRequiredException at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTxRequiredCheck(EntityManagerWrapper.java:152) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTransactionScopedTxCheck(EntityManagerWrapper.java:134) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.persist(EntityManagerWrapper.java:252) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTxBeanBase.updatePersist(RWTxBeanBase.java:60) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.TxBean.postConstruct(TxBean.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:540) at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:85) at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:768) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136) at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1834) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1386) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:185) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy104.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TxBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTestBeanBase0.requiredNoExistingTransaction(RWTestBeanBase0.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:3161) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4269) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:187) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy103.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TestBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWClientBase.requiredNoExistingTransaction(RWClientBase.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:167) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:86) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.EJBLiteJSPTag.doTag(EJBLiteJSPTag.java:40) at org.apache.jsp.ejblitejsp_005fvehicle_jsp._jspService(ejblitejsp_005fvehicle_jsp.java from :79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#] [#|2008-11-10T15:07:46.950-0500|INFO|sun-glassfish|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=Thread-4;TxBean;|EJB5018: An exception was thrown during an ejb invocation on [TxBean]|#] [#|2008-11-10T15:07:46.950-0500|INFO|sun-glassfish|javax.enterprise.system.container.ejb|_ThreadID=15;_ThreadName=Thread-4;| javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:548) at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:85) at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:768) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136) at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1834) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1386) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:185) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy104.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TxBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTestBeanBase0.requiredNoExistingTransaction(RWTestBeanBase0.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:3161) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4269) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:187) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy103.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TestBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWClientBase.requiredNoExistingTransaction(RWClientBase.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:167) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:86) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.EJBLiteJSPTag.doTag(EJBLiteJSPTag.java:40) at org.apache.jsp.ejblitejsp_005fvehicle_jsp._jspService(ejblitejsp_005fvehicle_jsp.java from :79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) Caused by: javax.persistence.TransactionRequiredException at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTxRequiredCheck(EntityManagerWrapper.java:152) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.doTransactionScopedTxCheck(EntityManagerWrapper.java:134) at com.sun.enterprise.container.common.impl.EntityManagerWrapper.persist(EntityManagerWrapper.java:252) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTxBeanBase.updatePersist(RWTxBeanBase.java:60) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.TxBean.postConstruct(TxBean.java:39) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.interceptors.BeanCallbackInterceptor.intercept(InterceptorManager.java:685) at com.sun.ejb.containers.interceptors.CallbackChainImpl.invokeNext(CallbackChainImpl.java:64) at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:209) at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:540) ... 70 more javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:770) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136) at com.sun.ejb.containers.BaseContainer.getContext(BaseContainer.java:1834) at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:1386) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:185) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy104.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TxBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWTestBeanBase0.requiredNoExistingTransaction(RWTestBeanBase0.java:94) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:3161) at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:4269) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:187) at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:82) at $Proxy103.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.__EJB31_Generated__TestBean__Intf____Bean__.requiredNoExistingTransaction(Unknown Source) at com.sun.ts.tests.ejb30.lite.tx.cm.common.RWClientBase.requiredNoExistingTransaction(RWClientBase.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.runTestInVehicle(EJBLiteClientBase.java:167) at com.sun.ts.tests.ejb30.common.lite.EJBLiteClientBase.getStatus(EJBLiteClientBase.java:86) at com.sun.ts.tests.ejb30.lite.tx.cm.singleton.rw.EJBLiteJSPTag.doTag(EJBLiteJSPTag.java:40) at org.apache.jsp.ejblitejsp_005fvehicle_jsp._jspService(ejblitejsp_005fvehicle_jsp.java from :79) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:403) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:366) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431) at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180) at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633) at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570) at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152) at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56) at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325) at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184) |#]

    Java.net JIRA | 8 years ago | Cheng Fang
    javax.ejb.CreateException: Could not create stateless EJB at com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(StatelessSessionContainer.java:548) at com.sun.ejb.containers.StatelessSessionContainer.access$000(StatelessSessionContainer.java:85) at com.sun.ejb.containers.StatelessSessionContainer$SessionContextFactory.create(StatelessSessionContainer.java:768) at com.sun.ejb.containers.SingletonContainer.instantiateSingletonInstance(SingletonContainer.java:87) at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:85) at com.sun.ejb.containers.SingletonContainer._getContext(SingletonContainer.java:136)

    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. javax.ejb.CreateException

      > Initialization > failed for Singleton ApplicationBean javax.ejb.CreateException: > Initialization failed for Singleton ApplicationBean at > com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:547) > > at > com.sun.ejb.containers.AbstractSingletonContainer.access$100(AbstractSingletonContainer.java:79) > > at > com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:719) > > at > com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:451) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:216) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:177) > > at > org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:155) > > at > org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:177) > at > org.glassfish.internal.data.EngineRef.start(EngineRef.java:130) at > org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269) at > org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:294) > > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:462) > > at > com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240) > > at > org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:382) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1064) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1244) > > at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1232) > > at > org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:202) > at > org.glassfish.admin.rest.ResourceUtil.runCommand(ResourceUtil.java:195) > at > org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:148) > >

      at sun.reflect.NativeMethodAccessorImpl.invoke0()
    2. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:597)
      2 frames