Application Deployment Issue

Hello,
Since yesterday evening, we’ve been experiencing a problem on one of our servers . It’s an Ubuntu server where we’re currently deploying our Java application. However, we have encountered an unusual and persistent error throughout the deployment process.
When we deploy a .war file, the deployment fails and we get this error. This problem persists even after the OS has been completely reinstalled, and when we change the Java version from Java 8, Java 11, Java 13, Java 17, it doesn’t change anything, we still get the same error.
The error is: An error has occurred. Error occurred during deployment: Exception while loading the app: EJB Container initialization error. Please see server.log for more details.

Please help us.

OS: Ubuntu 20.04 LTS, 22.04 LTS and CENTOS 7
Payara Version: 5.193, 5.194
Java Version: 8, 11, 13, 17

Regards

Where is the log ?
You should note the reason before that error. Maybe you have a conflict between ejb in different wars ?
Verify the j2ee app with Netbeans.

This the log:

[2023-12-11T15:20:49.643+0000] [Payara 5.194] [INFO] [org.glassfish.admingui] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308049643] [levelValue: 800] [[

Redirecting to /index.jsf]]

[2023-12-11T15:20:51.107+0000] [Payara 5.194] [INFO] [org.glassfish.admingui] [tid: _ThreadID=1623 _ThreadName=admin-thread-pool::admin-listener(18)] [timeMillis: 1702308051107] [levelValue: 800] [[

Admin Console: Initializing Session Attributes…]]

[2023-12-11T15:23:58.370+0000] [Payara 5.194] [INFO] [org.glassfish.admingui] [tid: _ThreadID=1618 _ThreadName=admin-thread-pool::admin-listener(15)] [timeMillis: 1702308238370] [levelValue: 800] [[

GUI deployment: uploadToTempfile]]

[2023-12-11T15:23:58.371+0000] [Payara 5.194] [INFO] [org.glassfish.admingui] [tid: _ThreadID=1618 _ThreadName=admin-thread-pool::admin-listener(15)] [timeMillis: 1702308238371] [levelValue: 800] [[

uploadFileName=ReportingHk.war]]

[2023-12-11T15:23:58.376+0000] [Payara 5.194] [INFO] [tid: _ThreadID=1618 _ThreadName=admin-thread-pool::admin-listener(15)] [timeMillis: 1702308238376] [levelValue: 800] [[

================== availabilityEnabled skipped ]]

[2023-12-11T15:23:59.095+0000] [Payara 5.194] [INFO] [org.eclipse.persistence.session./file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingVgPU] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239095] [levelValue: 800] [[

EclipseLink, version: Eclipse Persistence Services - 2.7.4.payara-p2]]

[2023-12-11T15:23:59.200+0000] [Payara 5.194] [INFO] [org.eclipse.persistence.session./file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingVgPU.connection] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239200] [levelValue: 800] [[

/file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingVgPU login successful]]

[2023-12-11T15:23:59.252+0000] [Payara 5.194] [INFO] [org.eclipse.persistence.session./file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingAnalysePU] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239252] [levelValue: 800] [[

EclipseLink, version: Eclipse Persistence Services - 2.7.4.payara-p2]]

[2023-12-11T15:23:59.342+0000] [Payara 5.194] [INFO] [org.eclipse.persistence.session./file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingAnalysePU.connection] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239342] [levelValue: 800] [[

/file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingAnalysePU login successful]]

[2023-12-11T15:23:59.434+0000] [Payara 5.194] [SEVERE] [javax.enterprise.system.tools.deployment.common] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239434] [levelValue: 1000] [[

Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method

java.lang.RuntimeException: EJB Container initialization error

at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:237)

at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:287)

at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105)

at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:207)

at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:315)

at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:531)

at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:538)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:558)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:554)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at java.base/javax.security.auth.Subject.doAs(Subject.java:361)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:553)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:584)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:576)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at java.base/javax.security.auth.Subject.doAs(Subject.java:361)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:575)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1496)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:120)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1878)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1754)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:272)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:240)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:294)

at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:136)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)

at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80)

at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253)

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)

at org.glassfish.jersey.internal.Errors.process(Errors.java:292)

at org.glassfish.jersey.internal.Errors.process(Errors.java:274)

at org.glassfish.jersey.internal.Errors.process(Errors.java:244)

at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)

at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232)

at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)

at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:353)

at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:335)

at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:189)

at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)

at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)

at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)

at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)

at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)

at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)

at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: java.lang.NullPointerException

at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:690)

at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:141)

at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:136)

at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:61)

at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:225)

... 81 more

]]

[2023-12-11T15:23:59.435+0000] [Payara 5.194] [SEVERE] [NCLS-CORE-00026] [javax.enterprise.system.core] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239435] [levelValue: 1000] [[

Exception during lifecycle processing

java.lang.RuntimeException: EJB Container initialization error

at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:237)

at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:287)

at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105)

at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:207)

at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:315)

at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:531)

at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:538)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:558)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:554)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at java.base/javax.security.auth.Subject.doAs(Subject.java:361)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:553)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:584)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:576)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at java.base/javax.security.auth.Subject.doAs(Subject.java:361)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:575)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1496)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:120)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1878)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1754)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:272)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:240)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:294)

at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:136)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)

at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80)

at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253)

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)

at org.glassfish.jersey.internal.Errors.process(Errors.java:292)

at org.glassfish.jersey.internal.Errors.process(Errors.java:274)

at org.glassfish.jersey.internal.Errors.process(Errors.java:244)

at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)

at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232)

at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)

at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:353)

at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:335)

at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:189)

at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)

at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)

at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)

at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)

at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)

at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)

at java.base/java.lang.Thread.run(Thread.java:829)

Caused by: java.lang.NullPointerException

at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:690)

at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:141)

at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:136)

at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:61)

at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:225)

... 81 more

]]

[2023-12-11T15:23:59.435+0000] [Payara 5.194] [SEVERE] [javax.enterprise.system.core] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239435] [levelValue: 1000] [[

Exception while loading the app]]

[2023-12-11T15:23:59.438+0000] [Payara 5.194] [INFO] [org.eclipse.persistence.session./file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingVgPU.connection] [tid: _ThreadID=1637 _ThreadName=Executor-Service-34] [timeMillis: 1702308239438] [levelValue: 800] [[

/file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingVgPU logout successful]]

[2023-12-11T15:23:59.439+0000] [Payara 5.194] [INFO] [org.eclipse.persistence.session./file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingAnalysePU.connection] [tid: _ThreadID=1637 _ThreadName=Executor-Service-34] [timeMillis: 1702308239439] [levelValue: 800] [[

/file:/opt/payara/glassfish/domains/production/applications/ReportingHk/WEB-INF/classes/_reportingAnalysePU logout successful]]

[2023-12-11T15:23:59.440+0000] [Payara 5.194] [SEVERE] [javax.enterprise.system.core] [tid: _ThreadID=52 _ThreadName=admin-thread-pool::admin-listener(1)] [timeMillis: 1702308239440] [levelValue: 1000] [[

Exception while loading the app : EJB Container initialization error

java.lang.NullPointerException

at com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:690)

at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:141)

at com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:136)

at com.sun.ejb.containers.StatelessContainerFactory.createContainer(StatelessContainerFactory.java:61)

at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:225)

at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:287)

at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:105)

at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:207)

at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:315)

at com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:531)

at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:538)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:558)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2$1.run(CommandRunnerImpl.java:554)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at java.base/javax.security.auth.Subject.doAs(Subject.java:361)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$2.execute(CommandRunnerImpl.java:553)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:584)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$3.run(CommandRunnerImpl.java:576)

at java.base/java.security.AccessController.doPrivileged(Native Method)

at java.base/javax.security.auth.Subject.doAs(Subject.java:361)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:575)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1496)

at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1300(CommandRunnerImpl.java:120)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1878)

at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1754)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:272)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:240)

at org.glassfish.admin.rest.utils.ResourceUtil.runCommand(ResourceUtil.java:294)

at org.glassfish.admin.rest.resources.TemplateListOfResource.createResource(TemplateListOfResource.java:136)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.base/java.lang.reflect.Method.invoke(Method.java:566)

at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)

at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:176)

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:469)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:391)

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:80)

at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:253)

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)

at org.glassfish.jersey.internal.Errors.process(Errors.java:292)

at org.glassfish.jersey.internal.Errors.process(Errors.java:274)

at org.glassfish.jersey.internal.Errors.process(Errors.java:244)

at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)

at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232)

at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:680)

at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:353)

at org.glassfish.admin.rest.adapter.RestAdapter$2.service(RestAdapter.java:335)

at org.glassfish.admin.rest.adapter.RestAdapter.service(RestAdapter.java:189)

at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:520)

at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:217)

at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:182)

at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:156)

at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:218)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.portunif.PUFilter.handleRead(PUFilter.java:208)

at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:95)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:260)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:177)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:109)

at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:88)

at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:53)

at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:524)

at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:89)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:94)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:33)

at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:114)

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:569)

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:549)

at java.base/java.lang.Thread.run(Thread.java:829)

]]

[2023-12-11T15:23:59.453+0000] [Payara 5.194] [INFO] [org.glassfish.admingui] [tid: _ThreadID=1618 _ThreadName=admin-thread-pool::admin-listener(15)] [timeMillis: 1702308239453] [levelValue: 800] [[

Exception Occurred :Error occurred during deployment: Exception while loading the app : EJB Container initialization error. Please see server.log for more details. ]]

We also reinstalled the entire server with a new Ubuntu 20.04 and 22.04 OS, and changed the OS to CENTOS 7. After this reinstallation, we tried to deploy a single War file and we get the same error message and the deployment fails. So the potential EJB conflict problem wasn’t there? Given that only one application was deployed.
We’ve also checked the deployment on Netbeans and it’s running perfectly without errors.

Hello, Nobody can help me ?