mac 8080端口被占用

做项目呢的时候出现如下问题:调试了半天也改不了,tomcat就是启动不了查了查说是Caused by: java.lang.NoSuchMethodException:,气得我直接吧tomcat的文件删了,重新解压,然后链接,然后将8080端口其他占用的程序删除: lsof -i tcp:8080, kill 对应的PID,最后一链接竟然成了,问题倒是解决了,但是原因还是不清楚,好气。。。

10-Apr-2019 10:23:51.496 严重 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [/blog] startup failed due to previous errors
10-Apr-2019 10:24:00.231 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/Users/jiesi/Downloads/software/apache-tomcat-8.5.39/webapps/manager]
10-Apr-2019 10:24:00.302 严重 [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:5225)
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:1135)
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 : 1870 ) 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:1870) at java.util.concurrent.Executors DeployDirectory.run(HostConfig.java:1870)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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
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

10-Apr-2019 10:24:00.302 严重 [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/manager] startup failed due to previous errors
10-Apr-2019 10:24:00.305 信息 [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/Users/jiesi/Downloads/software/apache-tomcat-8.5.39/webapps/manager] has finished in [74] ms

你可能感兴趣的:(JavaWeb内容)