Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2740

OpenEJB in TomEE does not work with current eclipselink version (needs update)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 8.0.0-M3
    • Fix Version/s: None
    • Component/s: TomEE Core Server
    • Labels:
      None
    • Flags:
      Patch

      Description

      Hey guys.

       

      We are currently experimenting with 11-jre-8.0.0-M3-plume.

      Our Applications work with a Java/Jakarta EE Stack with EJB and JPA.

      For some reasons we are sticked to eclipselink, so we tried to use eclipselink as a JPA Provider in our persistence.xml.

       

      Obviously in the current M3 package this does not work.

      I attached a simple project. please try it (you need to adjust the resource.xml for your DB settings. We used a postgres 10.6)

      If you switch to openJPA all works totally fine. If you use eclipselink in the persistence.xml you will get a

      	org.apache.catalina.LifecycleException: An invalid Lifecycle transition was attempted ([before_destroy]) for component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/healthcheck]] in state [STARTING_PREP]
      		at org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:430)
      		at org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:316)
      		at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:814)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1656)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1636)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.undeployWebApps(TomcatWebAppBuilder.java:769)
      		at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2405)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1094)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1308)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1130)
      		at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
      		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
      		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
      15-Nov-2019 07:06:50.316 INFO [main] org.apache.openejb.assembler.classic.Assembler.doResourceDestruction Closing DataSource: healthcheck/jdbc/productservices/healthcheck
      15-Nov-2019 07:06:50.377 SEVERE [main] org.apache.openejb.assembler.classic.Assembler.destroyApplication undeployException original cause
      	java.lang.Exception: deployment not found: HealthcheckBoundary
      		at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2358)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1094)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1308)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1130)
      		at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
      		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
      		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
      15-Nov-2019 07:06:50.378 SEVERE [main] org.apache.openejb.assembler.classic.Assembler.destroyApplication undeployException original cause
      	java.lang.Exception: deployment not found: healthcheck.Comp33299582
      		at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2358)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1094)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1308)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1130)
      		at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
      		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
      		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
      15-Nov-2019 07:06:50.378 SEVERE [main] org.apache.openejb.assembler.classic.Assembler.destroyApplication undeployException original cause
      	java.lang.Exception: persistence-unit: healthcheck -1927070586localhost: Name "openejb/PersistenceUnit/healthcheck -1927070586localhost" not found.
      		at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2517)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1094)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1308)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1130)
      		at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
      		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
      		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
      	Caused by: javax.naming.NameNotFoundException: Name "openejb/PersistenceUnit/healthcheck -1927070586localhost" not found.
      		at org.apache.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:211)
      		at org.apache.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:159)
      		at org.apache.openejb.assembler.classic.Assembler.destroyApplication(Assembler.java:2508)
      		... 46 more
      15-Nov-2019 07:06:50.378 SEVERE [main] org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/healthcheck]
      	org.apache.openejb.OpenEJBException: Creating application failed: /usr/local/tomee/webapps/healthcheck: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException: java.lang.NullPointerException
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1098)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1308)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1130)
      		at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
      		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
      		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
      	Caused by: org.apache.openejb.OpenEJBException: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException: java.lang.NullPointerException
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:924)
      		... 45 more
      	Caused by: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException
      		at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:136)
      		at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:105)
      		at org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:157)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:918)
      		... 45 more
      	Caused by: java.lang.NullPointerException
      		at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:2027)
      		at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:347)
      		at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:313)
      		at org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:112)
      		at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:134)
      		... 48 more
      15-Nov-2019 07:06:50.378 SEVERE [main] jdk.internal.reflect.NativeMethodAccessorImpl.invoke Error deploying web application archive [/usr/local/tomee/webapps/healthcheck.war]
      	java.lang.IllegalStateException: Error starting child
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:716)
      		at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
      		at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
      		at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:978)
      		at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1849)
      		at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
      		at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:773)
      		at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)
      		at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576)
      		at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929)
      		at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377)
      		at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367)
      		at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      		at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      		at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
      		at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902)
      		at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:633)
      		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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
      	Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/healthcheck]]
      		at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
      		at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
      		... 37 more
      	Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Creating application failed: /usr/local/tomee/webapps/healthcheck: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException: java.lang.NullPointerException
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1320)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1130)
      		at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:134)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		... 38 more
      	Caused by: org.apache.openejb.OpenEJBException: Creating application failed: /usr/local/tomee/webapps/healthcheck: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException: java.lang.NullPointerException
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:1098)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:758)
      		at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1308)
      		... 43 more
      	Caused by: org.apache.openejb.OpenEJBException: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException: java.lang.NullPointerException
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:924)
      		... 45 more
      	Caused by: org.apache.openejb.OpenEJBRuntimeException: java.lang.NullPointerException
      		at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:136)
      		at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.<init>(ReloadableEntityManagerFactory.java:105)
      		at org.apache.openejb.assembler.classic.PersistenceBuilder.createEntityManagerFactory(PersistenceBuilder.java:157)
      		at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:918)
      		... 45 more
      	Caused by: java.lang.NullPointerException
      		at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:2027)
      		at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactoryImpl(PersistenceProvider.java:347)
      		at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:313)
      		at org.apache.openejb.assembler.classic.EntityManagerFactoryCallable.call(EntityManagerFactoryCallable.java:112)
      		at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory.createDelegate(ReloadableEntityManagerFactory.java:134)
      		... 48 more
      15-Nov-2019 07:06:50.379 INFO [main] jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke Deployment of web application archive  

      which leads to a server Shutdown.

       

      I investigated some ours to fix the problem: You just need to update the eclipselink version to 2.7.5 or later then the error is gone.

        Attachments

        1. healthcheck.zip
          7 kB
          deratzmann

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              deratzmann deratzmann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: