我正在用Jax-rs框架在eclipse中开发一个web应用程序,并在TomEE plus服务器上运行它。我之所以使用TomEE Plus而不是标准tomcat,是因为我想用jax rs编写我的应用程序,而jax rs不受标准tomcat的支持,每次运行应用程序时都会出现404。我下载了TomEE-Plus-9.0.0-M7,并将其添加到eclipse中,方法是将类型设置为Tomcat v10.0服务器,并将安装目录设置为我解压缩下载的TomEE Plus文件的位置。我还将我的应用程序所需的所有JAR都放在web inf/lib目录中。问题是,当我尝试在创建的服务器上运行应用程序时,我收到以下错误:
服务器Tomcat v10.0localhost服务器启动失败
查看控制台,我看到有一些异常被抛出。这是控制台:
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\90\Tools\binn\;D:\matlab\runtime\win64;D:\matlab\bin;D:\matlab\polyspace\bin;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\110\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"]
我读过很多解决方案,包括删除。快照文件,删除服务器并创建新服务器,从目标运行时中删除服务器,以及。我真的不知道问题出在哪里,我已经两天没有解决这个问题了。我感谢任何能帮忙的人。提前谢谢。
当我在Eclipse中的服务器上运行我的应用程序时,我会得到这样的消息:“Tomcat V8.0服务器在localhost上所需的端口8080已经在使用中。该服务器可能已经在另一个进程中运行,或者某个系统进程正在使用该端口。要启动该服务器,您需要停止其他进程或更改端口号”。其他项目关闭。有人能帮我解决这个问题吗?我是爪哇初学者。
问题内容: 我正在尝试建立一个PHP网站,并且想要测试我的PHP文件而不将其上传到主机。在上载它们之前,基本上在我自己的机器上对其进行测试。我怎么做? 问题答案: 安装并运行XAMPP:http : //www.apachefriends.org/en/xampp.html
问题内容: 我最近在Windows 2003上安装了MySQL 5,并尝试配置实例。一切正常,直到我进入“应用安全设置”,这时才出现上述错误()。 我的防火墙中确实存在“ MySQL Server”的端口3306异常。 问题答案: 您可能必须向用户授予表上的“ localhost”特权。请参阅语法文档。这是一个示例(来自C语言)。 “在%s上授予所有特权。*由’%s’标识为’%s’@’本地主机’”
向整个社区致意。我的payara 5.2020应用程序服务器有问题。当我想用命令systemctl start payara.service启动它时,它不会启动并向我显示此错误消息: 启动服务器需要主密码。没有控制台,没有提示。您应该创建域java[3370]:命令启动域失败。 我试图改变我的域名的默认密码,但它仍然不起作用。 谢谢大家
我已经用WinRun4J创建了一个windows服务。应用程序已成功安装为服务。但是,当我尝试在命令提示符下使用run
我在MAMP上的Mysql服务器无法启动。这是错误: 161224 00:15:00 mysqld\u安全日志记录到“/Applications/MAMP/logs/mysql\u error\u log.err”。161224 00:15:00 mysqld_safe使用/Applications/MAMP/db/mysql56中的数据库启动mysqld守护进程161224 00:15:01 m