服务器 Tomcat v10.0 位于本地主机的服务器无法启动

Server Tomcat v10.0 Server at localhost failed to start

我正在使用 Jax-rs 框架在 eclipse 中开发一个 Web 应用程序,我 运行 它在 TomEE plus 服务器上。我使用 TomEE Plus 而不是标准 tomcat 的原因是我想用 jax-rs 编写我的应用程序,而标准 tomcat 不支持 jax-rs 并且每次都会导致 404该应用程序是 运行。我已经下载了 TomEE-Plus-9.0.0-M7 并将其添加到 Eclipse,方法是将类型设置为 Tomcat v10.0 Server 并将安装目录设置为我解压下载的 TomEE Plus files.i 的位置还在 web-inf/lib directory.the 中放置了我的应用程序所需的所有 jar 问题是,当我尝试 运行 创建的服务器上的应用程序时,我收到此错误:

Server Tomcat v10.0 Server at localhost failed to start

查看控制台,我发现抛出了一些异常。这是控制台:

May 20, 2022 5:10:00 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Server version name:   Apache Tomcat/10.0.4
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Server built:          Mar 5 2021 11:07:15 UTC
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Server version number: 10.0.4.0
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: OS Name:               Windows 10
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: OS Version:            10.0
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Architecture:          amd64
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Java Home:             C:\Program Files\Java\jdk-16
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: JVM Version:           16+36-2231
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: JVM Vendor:            Oracle Corporation
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: CATALINA_BASE:         D:\apache-tomee-plus-9.0.0-M7
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: CATALINA_HOME:         D:\apache-tomee-plus-9.0.0-M7
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Command line argument: -Dcatalina.base=D:\apache-tomee-plus-9.0.0-M7
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Command line argument: -Dcatalina.home=D:\apache-tomee-plus-9.0.0-M7
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Command line argument: -Dwtp.deploy=D:\apache-tomee-plus-9.0.0-M7\wtpwebapps
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
May 20, 2022 5:10:01 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
INFO: Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
May 20, 2022 5:10:01 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED
May 20, 2022 5:10:01 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED
May 20, 2022 5:10:01 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
May 20, 2022 5:10:01 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Command line argument: -Dfile.encoding=Cp1252
May 20, 2022 5:10:01 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Command line argument: -XX:+ShowCodeDetailsInExceptionMessages
May 20, 2022 5:10:01 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [C:\Program Files\Java\jdk-16\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Microsoft SQL Server\Tools\binn\;D:\matlab\runtime\win64;D:\matlab\bin;D:\matlab\polyspace\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server0\Tools\Binn\;C:\maxplus2\bin;C:\Program Files\Java\jdk-16;\bin;C:\Users\LENOVO\AppData\Local\Microsoft\WindowsApps;;.]
May 20, 2022 5:10:02 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Initializing ProtocolHandler ["http-nio-8888"]
May 20, 2022 5:10:03 PM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.jdbc.datasource-creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: ********************************************************************************
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: OpenEJB http://tomee.apache.org/
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Startup: Fri May 20 17:10:03 IRDT 2022
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Copyright 1999-2021 (C) Apache TomEE Project, All Rights Reserved.
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Version: 9.0.0-M7
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build date: 20210503
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: Build time: 02:36
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: ********************************************************************************
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.home = D:\apache-tomee-plus-9.0.0-M7
May 20, 2022 5:10:03 PM org.apache.openejb.OpenEJB$Instance <init>
INFO: openejb.base = D:\apache-tomee-plus-9.0.0-M7
May 20, 2022 5:10:03 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Created new singletonService org.apache.openejb.cdi.ThreadSingletonServiceImpl@47f9738
May 20, 2022 5:10:03 PM org.apache.openejb.cdi.CdiBuilder initializeOWB
INFO: Succeeded in installing singleton service
May 20, 2022 5:10:03 PM org.apache.openejb.config.ConfigurationFactory init
INFO: TomEE configuration file is 'D:\apache-tomee-plus-9.0.0-M7\conf\tomee.xml'
May 20, 2022 5:10:03 PM org.apache.openejb.config.ConfigurationFactory configureService
INFO: Configuring Service(id=Tomcat Security Service, type=SecurityService, provider-id=Tomcat Security Service)
May 20, 2022 5:10:03 PM org.apache.openejb.config.ConfigurationFactory configureService
INFO: Configuring Service(id=Default Transaction Manager, type=TransactionManager, provider-id=Default Transaction Manager)
May 20, 2022 5:10:03 PM org.apache.openejb.util.OptionsLog info
INFO: Using 'openejb.deployments.classpath=false'
May 20, 2022 5:10:03 PM org.apache.openejb.assembler.classic.Assembler createRecipe
INFO: Creating TransactionManager(id=Default Transaction Manager)
May 20, 2022 5:10:04 PM org.apache.openejb.assembler.classic.Assembler createRecipe
INFO: Creating SecurityService(id=Tomcat Security Service)
May 20, 2022 5:10:04 PM org.apache.openejb.server.ServiceManager initServer
INFO: Creating ServerService(id=cxf)
May 20, 2022 5:10:04 PM org.apache.openejb.server.ServiceManager initServer
INFO: Creating ServerService(id=cxf-rs)
May 20, 2022 5:10:04 PM org.apache.openejb.server.SimpleServiceManager start
INFO:   ** Bound Services **
May 20, 2022 5:10:04 PM org.apache.openejb.server.SimpleServiceManager printRow
INFO:   NAME                 IP              PORT  
May 20, 2022 5:10:04 PM org.apache.openejb.server.SimpleServiceManager start
INFO: -------
May 20, 2022 5:10:04 PM org.apache.openejb.server.SimpleServiceManager start
INFO: Ready!
May 20, 2022 5:10:04 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Server initialization in [4366] milliseconds
May 20, 2022 5:10:04 PM org.apache.tomee.catalina.OpenEJBNamingContextListener bindResource
INFO: Importing a Tomcat Resource with id 'UserDatabase' of type 'org.apache.catalina.UserDatabase'.
May 20, 2022 5:10:04 PM org.apache.openejb.assembler.classic.Assembler createRecipe
INFO: Creating Resource(id=UserDatabase)
May 20, 2022 5:10:04 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Starting service [Catalina]
May 20, 2022 5:10:04 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Starting Servlet engine: [Apache Tomcat/10.0.4]
May 20, 2022 5:10:04 PM org.apache.tomee.catalina.TomcatWebAppBuilder init
INFO: ------------------------- localhost -> /Form
May 20, 2022 5:10:05 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Form]]
    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:880)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
    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:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
    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:434)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Form]]
    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$StartChild.call(ContainerBase.java:1384)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
    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:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
    ... 21 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module Form: Unable to read class definition for api.AppTest
    at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2392)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1227)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1160)
    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:5031)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    ... 27 more
Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module Form: Unable to read class definition for api.AppTest
    at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:886)
    at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:233)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2390)
    ... 33 more
Caused by: java.lang.RuntimeException: Unable to read class definition for api.AppTest
    at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1180)
    at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:153)
    at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:166)
    at org.apache.openejb.config.FinderFactory$OpenEJBAnnotationFinder.<init>(FinderFactory.java:546)
    at org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:267)
    at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:80)
    at org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:69)
    at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:878)
    ... 35 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 60
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:195)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:176)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:162)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:283)
    at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1176)
    ... 42 more

May 20, 2022 5:10:05 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
    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:434)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:880)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
    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:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
    ... 13 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Form]]
    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
    ... 21 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Form]]
    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$StartChild.call(ContainerBase.java:1384)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
    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:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
    ... 21 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module Form: Unable to read class definition for api.AppTest
    at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2392)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1227)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1160)
    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:5031)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    ... 27 more
Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module Form: Unable to read class definition for api.AppTest
    at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:886)
    at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:233)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2390)
    ... 33 more
Caused by: java.lang.RuntimeException: Unable to read class definition for api.AppTest
    at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1180)
    at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:153)
    at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:166)
    at org.apache.openejb.config.FinderFactory$OpenEJBAnnotationFinder.<init>(FinderFactory.java:546)
    at org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:267)
    at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:80)
    at org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:69)
    at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:878)
    ... 35 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 60
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:195)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:176)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:162)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:283)
    at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1176)
    ... 42 more

May 20, 2022 5:10:05 PM jdk.internal.reflect.NativeMethodAccessorImpl invoke
SEVERE: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: A child container failed during start
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)
    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:434)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
    ... 13 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:880)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
    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:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
    ... 13 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Form]]
    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916)
    ... 21 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Form]]
    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$StartChild.call(ContainerBase.java:1384)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374)
    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:145)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909)
    ... 21 more
Caused by: org.apache.tomee.catalina.TomEERuntimeException: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module Form: Unable to read class definition for api.AppTest
    at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2392)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1227)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1160)
    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:5031)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    ... 27 more
Caused by: org.apache.openejb.OpenEJBException: Unable to create annotation scanner for web module Form: Unable to read class definition for api.AppTest
    at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:886)
    at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:233)
    at org.apache.tomee.catalina.TomcatWebAppBuilder.loadApplication(TomcatWebAppBuilder.java:2390)
    ... 33 more
Caused by: java.lang.RuntimeException: Unable to read class definition for api.AppTest
    at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1180)
    at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:153)
    at org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:166)
    at org.apache.openejb.config.FinderFactory$OpenEJBAnnotationFinder.<init>(FinderFactory.java:546)
    at org.apache.openejb.config.FinderFactory.newFinder(FinderFactory.java:267)
    at org.apache.openejb.config.FinderFactory.create(FinderFactory.java:80)
    at org.apache.openejb.config.FinderFactory.createFinder(FinderFactory.java:69)
    at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:878)
    ... 35 more
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 60
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:195)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:176)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:162)
    at org.apache.xbean.asm7.ClassReader.<init>(ClassReader.java:283)
    at org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1176)
    ... 42 more

May 20, 2022 5:10:05 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Pausing ProtocolHandler ["http-nio-8888"]
May 20, 2022 5:10:05 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Stopping service [Catalina]
May 20, 2022 5:10:05 PM org.apache.openejb.server.SimpleServiceManager stop
INFO: Stopping server services
May 20, 2022 5:10:05 PM jdk.internal.reflect.DelegatingMethodAccessorImpl invoke
INFO: Destroying ProtocolHandler ["http-nio-8888"]

我已经阅读了很多解决方案,包括删除 .snap 文件、删除服务器并创建新服务器、从目标 运行 次中删除服务器以及...。我真的不知道问题出在哪里,我已经坚持了两天了。我感谢任何能提供帮助的人。提前致谢。

我可以在日志中看到:不支持 class 文件主要版本 60

是否有可能您使用 Java 16 编译了代码,但现在正试图在下面的东西上执行?

另见