当我尝试在STS的服务器上运行项目时,它显示的窗口为this,
STS中的错误如下:
java.lang.Error: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at org.apache.catalina.startup.Catalina.load(Catalina.java:641)
at org.apache.catalina.startup.Catalina.load(Catalina.java:661)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
... 7 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Catalina]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 8 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[org.apache.coyote.http11.Http11AprProtocol-8080]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 10 more
我怀疑端口8080是否被其他程序使用并尝试了this,但未返回任何内容。还可以做什么?
最佳答案
通过创建this图片中的实例时仅选择base
模板已解决了该问题
关于java - 无法在枢纽TC Server 3.2中运行项目,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/54769784/