反复测试了下,同样的 tomcat 环境,15 天前的版本是可以运行的,今天更新的版本运行不了,idea 里直接 jetty 跑起来没有问题,貌似是 15 天前更新内嵌 Jetty 容器导致的问题?
日志文件:
10-Apr-2019 23:37:52.025 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property. 10-Apr-2019 23:37:52.244 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Engine/Host/Context] failed to set property [debug] to [0] 10-Apr-2019 23:37:52.434 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib] 10-Apr-2019 23:37:52.539 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 10-Apr-2019 23:37:52.565 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1,212] milliseconds 10-Apr-2019 23:37:52.623 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 10-Apr-2019 23:37:52.644 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.17] [INFO ]-[2019-04-10 23:37:53]-[org.eclipse.jetty.util.log:193]: Logging initialized @2141ms to org.eclipse.jetty.util.log.Slf4jLog 10-Apr-2019 23:37:55.399 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing javax.servlet.ServletException: Not running on Jetty, JSR-356 support unavailable at org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainerInitializer.onStartup(WebSocketServerContainerInitializer.java:200) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139) 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.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) 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.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) 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:423) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:634) 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.start(Bootstrap.java:350) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) 10-Apr-2019 23:37:55.513 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 10-Apr-2019 23:37:55.585 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/wwwroot/ROOT/skins] 10-Apr-2019 23:37:55.682 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/wwwroot/ROOT/skins] has finished in [96] ms 10-Apr-2019 23:37:55.682 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/wwwroot/ROOT/css] 10-Apr-2019 23:37:55.709 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/wwwroot/ROOT/css] has finished in [27] ms 10-Apr-2019 23:37:55.710 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/wwwroot/ROOT/js] 10-Apr-2019 23:37:55.748 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/wwwroot/ROOT/js] has finished in [38] ms 10-Apr-2019 23:37:55.749 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/wwwroot/ROOT/images] 10-Apr-2019 23:37:55.766 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/wwwroot/ROOT/images] has finished in [17] ms 10-Apr-2019 23:37:55.766 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/wwwroot/ROOT/emoji] 10-Apr-2019 23:37:55.776 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/wwwroot/ROOT/emoji] has finished in [10] ms 10-Apr-2019 23:37:55.776 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/data/wwwroot/ROOT/scss] 10-Apr-2019 23:37:55.785 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/data/wwwroot/ROOT/scss] has finished in [9] ms 10-Apr-2019 23:37:55.808 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 10-Apr-2019 23:37:55.818 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [3,252] milliseconds
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于