Tomcat启动错误 [英] Tomcat start up error

查看:47
本文介绍了Tomcat启动错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 上启动 Tomcat 时,我在 Catalina 日志文件中收到以下错误:

I am getting the following error in the Catalina log file while starting Tomcat on Windows:

Sep 3, 2010 3:22:53 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.lang.Exception: Socket bind failed: [730048] Only one usage of each socket address (protocol/network address/port) is normally permitted.  
    at org.apache.catalina.connector.Connector.start(Connector.java:1138)
    at org.apache.catalina.core.StandardService.start(StandardService.java:531)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Sep 3, 2010 3:22:53 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 67604 ms

但是当我将端口号从 8080 更改为 9000 时,没有错误但请求 http://localhost:9000/ 给出 404 错误 请求的资源 (/) 不可用.

But when I changed the port number from 8080 to 9000 then there was no error but the request to http://localhost:9000/ gives the 404 error The requested resource (/) is not available.

我错过了什么吗?

推荐答案

一个应用程序正在使用 8080 端口.要找出哪一个,请在 Windows 命令提示符下使用以下命令:

One application is using the 8080 port. To find out which one, use the following command on Windows Command Prompt:

C:\>netstat -aon | findstr 0.0:8080

然后取最后一列中的数字(即进程ID)并找出任务管理器中的进程.如果命令没有任何结果,那么您没有使用该端口的应用程序.

Then take the number in the last column (that's the process ID) and find out which is the process in task manager. If nothing comes out of the command, then you have no application using that port.

这篇关于Tomcat启动错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆