idea集成Tomcat的错误(换了一个新的环境.)

本文记录了一次使用Apache Tomcat 8.5.31在Windows 10系统上部署Java Web应用时遇到的问题,主要错误为NoSuchMethodException,涉及WebSocket Servlet Container Initializer的处理过程。文章详细展示了启动日志,包括使用的JRE版本、Tomcat配置参数及启动失败的具体错误信息。
摘要由CSDN通过智能技术生成

D:\Develop\Tomcat\apache-tomcat-8.5.31\bin\catalina.bat run
[2019-09-09 10:44:57,584] Artifact day13_tomcat:war exploded: Waiting for server connection to start artifact deployment…
Using CATALINA_BASE: “C:\Users\lenovo.IntelliJIdea2018.2\system\tomcat\Tomcat_8_5_31_JavaWeb_code”
Using CATALINA_HOME: “D:\Develop\Tomcat\apache-tomcat-8.5.31”
Using CATALINA_TMPDIR: “D:\Develop\Tomcat\apache-tomcat-8.5.31\temp”
Using JRE_HOME: “D:\Develop\Java\jdk-8\jre”
Using CLASSPATH: “D:\Develop\Tomcat\apache-tomcat-8.5.31\bin\bootstrap.jar;D:\Develop\Tomcat\apache-tomcat-8.5.31\bin\tomcat-juli.jar”
09-Sep-2019 22:44:58.676 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.31
09-Sep-2019 22:44:58.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Apr 27 2018 20:24:25 UTC
09-Sep-2019 22:44:58.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.31.0
09-Sep-2019 22:44:58.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
09-Sep-2019 22:44:58.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
09-Sep-2019 22:44:58.678 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
09-Sep-2019 22:44:58.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: D:\Develop\Java\jdk-8\jre
09-Sep-2019 22:44:58.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_212-b10
09-Sep-2019 22:44:58.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
09-Sep-2019 22:44:58.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Users\lenovo.IntelliJIdea2018.2\system\tomcat\Tomcat_8_5_31_JavaWeb_code
09-Sep-2019 22:44:58.679 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: D:\Develop\Tomcat\apache-tomcat-8.5.31
09-Sep-2019 22:44:58.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Users\lenovo.IntelliJIdea2018.2\system\tomcat\Tomcat_8_5_31_JavaWeb_code\conf\logging.properties
09-Sep-2019 22:44:58.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
09-Sep-2019 22:44:58.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dvisualvm.id=19400564217903
09-Sep-2019 22:44:58.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote=
09-Sep-2019 22:44:58.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=1099
09-Sep-2019 22:44:58.680 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=127.0.0.1
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Users\lenovo.IntelliJIdea2018.2\system\tomcat\Tomcat_8_5_31_JavaWeb_code
09-Sep-2019 22:44:58.681 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=D:\Develop\Tomcat\apache-tomcat-8.5.31
09-Sep-2019 22:44:58.682 信息 [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=D:\Develop\Tomcat\apache-tomcat-8.5.31\temp
09-Sep-2019 22:44:58.682 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.16] using APR version [1.6.3].
09-Sep-2019 22:44:58.682 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
09-Sep-2019 22:44:58.682 信息 [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
09-Sep-2019 22:44:59.564 信息 [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.0.2m 2 Nov 2017]
09-Sep-2019 22:44:59.660 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
09-Sep-2019 22:44:59.675 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
09-Sep-2019 22:44:59.681 信息 [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“ajp-nio-8009”]
09-Sep-2019 22:44:59.682 信息 [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
09-Sep-2019 22:44:59.683 信息 [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1320 ms
09-Sep-2019 22:44:59.709 信息 [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
09-Sep-2019 22:44:59.709 信息 [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.31
09-Sep-2019 22:44:59.718 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]
09-Sep-2019 22:44:59.728 信息 [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“ajp-nio-8009”]
09-Sep-2019 22:44:59.730 信息 [main] org.apache.catalina.startup.Catalina.start Server startup in 47 ms
Connected to server
[2019-09-09 10:45:00,178] Artifact day13_tomcat:war exploded: Artifact is being deployed, please wait…
09-Sep-2019 22:45:00.548 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
09-Sep-2019 22:45:00.574 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing
javax.servlet.ServletException: java.lang.NoSuchMethodException: org.glassfish.tyrus.server.TyrusServerConfiguration.()
at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:88)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1736)
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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)
at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)
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.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)
at javax.management.remote.rmi.RMIConnectionImpl.access 300 ( R M I C o n n e c t i o n I m p l . j a v a : 76 ) a t j a v a x . m a n a g e m e n t . r e m o t e . r m i . R M I C o n n e c t i o n I m p l 300(RMIConnectionImpl.java:76) at javax.management.remote.rmi.RMIConnectionImpl 300(RMIConnectionImpl.java:76)atjavax.management.remote.rmi.RMIConnectionImplPrivilegedOperation.run(RMIConnectionImpl.java:1309)
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)
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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport 1. r u n ( T r a n s p o r t . j a v a : 197 ) a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t s u n . r m i . t r a n s p o r t . T r a n s p o r t . s e r v i c e C a l l ( T r a n s p o r t . j a v a : 196 ) a t s u n . r m i . t r a n s p o r t . t c p . T C P T r a n s p o r t . h a n d l e M e s s a g e s ( T C P T r a n s p o r t . j a v a : 573 ) a t s u n . r m i . t r a n s p o r t . t c p . T C P T r a n s p o r t 1.run(Transport.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:196) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573) at sun.rmi.transport.tcp.TCPTransport 1.run(Transport.java:197)atjava.security.AccessController.doPrivileged(NativeMethod)atsun.rmi.transport.Transport.serviceCall(Transport.java:196)atsun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)atsun.rmi.transport.tcp.TCPTransportConnectionHandler.run0(TCPTransport.java:834)
at sun.rmi.transport.tcp.TCPTransport C o n n e c t i o n H a n d l e r . l a m b d a ConnectionHandler.lambda ConnectionHandler.lambdarun 0 ( T C P T r a n s p o r t . j a v a : 688 ) a t j a v a . s e c u r i t y . A c c e s s C o n t r o l l e r . d o P r i v i l e g e d ( N a t i v e M e t h o d ) a t s u n . r m i . t r a n s p o r t . t c p . T C P T r a n s p o r t 0(TCPTransport.java:688) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.tcp.TCPTransport 0(TCPTransport.java:688)atjava.security.AccessController.doPrivileged(NativeMethod)atsun.rmi.transport.tcp.TCPTransportConnectionHandler.run(TCPTransport.java:687)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodException: org.glassfish.tyrus.server.TyrusServerConfiguration.()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getConstructor(Class.java:1825)
at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:74)
… 44 more

09-Sep-2019 22:45:00.582 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/day13] startup failed due to previous errors
[2019-09-09 10:45:00,599] Artifact day13_tomcat:war exploded: Error during artifact deployment. See server log for details.
09-Sep-2019 22:45:09.719 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [D:\Develop\Tomcat\apache-tomcat-8.5.31\webapps\manager]
09-Sep-2019 22:45:09.829 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Error during ServletContainerInitializer processing
javax.servlet.ServletException: java.lang.NoSuchMethodException: org.glassfish.tyrus.server.TyrusServerConfiguration.()
at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:88)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5245)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1140)
at org.apache.catalina.startup.HostConfig D e p l o y D i r e c t o r y . r u n ( H o s t C o n f i g . j a v a : 1875 ) a t j a v a . u t i l . c o n c u r r e n t . E x e c u t o r s DeployDirectory.run(HostConfig.java:1875) at java.util.concurrent.Executors DeployDirectory.run(HostConfig.java:1875)atjava.util.concurrent.ExecutorsRunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchMethodException: org.glassfish.tyrus.server.TyrusServerConfiguration.()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getConstructor(Class.java:1825)
at org.apache.tomcat.websocket.server.WsSci.onStartup(WsSci.java:74)
… 12 more

09-Sep-2019 22:45:09.830 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/manager] startup failed due to previous errors
09-Sep-2019 22:45:09.835 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [D:\Develop\Tomcat\apache-tomcat-8.5.31\webapps\manager] has finished in [115] ms
D:\Develop\Tomcat\apache-tomcat-8.5.31\bin\catalina.bat stop
Using CATALINA_BASE: “C:\Users\lenovo.IntelliJIdea2018.2\system\tomcat\Tomcat_8_5_31_JavaWeb_code”
Using CATALINA_HOME: “D:\Develop\Tomcat\apache-tomcat-8.5.31”
Using CATALINA_TMPDIR: “D:\Develop\Tomcat\apache-tomcat-8.5.31\temp”
Using JRE_HOME: “D:\Develop\Java\jdk-8\jre”
Using CLASSPATH: “D:\Develop\Tomcat\apache-tomcat-8.5.31\bin\bootstrap.jar;D:\Develop\Tomcat\apache-tomcat-8.5.31\bin\tomcat-juli.jar”
09-Sep-2019 22:48:48.352 信息 [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.
09-Sep-2019 22:48:48.352 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“http-nio-8080”]
09-Sep-2019 22:48:48.670 信息 [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler [“ajp-nio-8009”]
09-Sep-2019 22:48:48.973 信息 [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]
09-Sep-2019 22:48:48.974 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“http-nio-8080”]
09-Sep-2019 22:48:48.975 信息 [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler [“ajp-nio-8009”]
09-Sep-2019 22:48:48.988 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“http-nio-8080”]
09-Sep-2019 22:48:48.988 信息 [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler [“ajp-nio-8009”]
Disconnected from server

在这里插入图片描述
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*相关的JAR包也导入了.

怎么破…

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值