两种情况
1:
tomcat SEVERE: StandardServer.await: create[8005] :
java.net.BindException: Cannot assign requested address
一般是本地机器的hosts文件中localhost指向错了。(windows下C:/Windows/System32/drivers/etc)
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Cannot assign requested address
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
at org.apache.catalina.startup.Catalina.await(Catalina.java:647)
at org.apache.catalina.startup.Catalina.start(Catalina.java:607)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
从日志上看, tomcat是启动了, 但是不能绑定8005端口. 出现Cannot assign requested address的原因是
localhost被路由到了别的机器.
ping localhost
发现确实被理由到了别的机器.
修改localhost让它重新指向本机 127.0.0.1
vi /etc/hosts
删除掉里面关于localhost的转向, 然后增加一行
127.0.0.1 localhost
重新启动tomcat, 问题解决.
2:SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
说明端口被占用:
tomcat已经启动,eclipse或者jbuilder中已经启动了或者独立启动了没有退出或者tomcat在开机时是自启动项。
这时需要打开任务管理器查看一下有没有tomcat进程在运行中即可,有的话干掉即可重新启动。
其他软件占用了8080端口,可以如下面所示查看端口被那个进程占用了
C:/>netstat -aon|findstr "8080"
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 4576
TCP [::]:8080 [::]:0 LISTENING 4576
C:/>tasklist|findstr "4576"
java.exe 4576 Console 1 39,860 K
我这启动了tomcat所以显示被java.exe占用了。
这时可以选择停止占用的进程或者修改tomcat服务端口两种方式。
a、停止对应的进程:在任务管理器中工具栏中-》查看-》选择列中选中PID,在其中找到对应的PID为“4576”的干掉即可
b、修改tomcat的启动端口:Tomcat服务器的conf目录下的server.xml来更改
“
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
”
修改其port=“8080”为其他没被占用的端口即可
分享到:
相关推荐
实现网络聊天工具(服务器)类似腾讯公司的聊天工具
严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Error-附件资源
java dubbo admin 2.5.3 + jdk 1.7 亲试 好用 2.5.3 提示不让上传,上传的是2.5.5 , 5.5 好像不好用 ,就不要下载了 原来用的jdk1.8 提示以下错误,貌似是版本问题 24-Feb-2018 10:15:07.213 SEVERE [localhost-...
forrtl: severe (38): error during write, unit 0, file CONOUT$ ArcGIS 10.2.2运行中出错; forrtl severe (38) error during write 都涉及到这样一个共同与下面DLL文件有关的arcgis visual Fortran runtime ...
SEVERE: The web application [/xxx] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the...
按照步骤来,这个问题 就会解决。你懂的。
搜索引擎java源码版权所有(c)2006、2017 Oracle和/或其分支机构。 版权所有。 版权所有(c)2018 Chris Fraire <>。 FreeGrok-邪恶的快速源浏览器 1.简介 FreeGrok是用Java编写的快速且可用的源代码搜索和交叉...
基本上这个功能已经实现。是在Microsoft SQL Server2005 + Microsoft Visual Studio 2008 下,进行的。主要实现功能模块: 1.用户信息管理模块:用户的添加、修改、删除 2.图书信息管理模块 :图书的添加、修改、...
亲测解决tomcat9.08搭配jkd9,搭建servlet环境。常见问题是,The required Server component failed to start so Tomcat is unable to start。这个问题,直接通过配置eclipse来解决这个问题。
NULL 博文链接:https://navylee.iteye.com/blog/2076985
3.we are not responsible for the severe result of your website or computer caused by the program supplied by our website. 4. 转载本站提供的资源请勿删除本说明文件。 4.when you transfer the resources...
3.we are not responsible for the severe result of your website or computer caused by the program supplied by our website. 4. 转载本站提供的资源请勿删除本说明文件。 4.when you transfer the resources...
Ohio handbook for the identification of children with Severe Behavior Handicaps. Columbus, OH: Author. PHILLIPS, E. L., PHILLIPS, E. A., FIXSEN, D. L., & WOLF, M. M. (1971). Achievement place: The...
Ohio handbook for the identification of children with Severe Behavior Handicaps. Columbus, OH: Author. PHILLIPS, E. L., PHILLIPS, E. A., FIXSEN, D. L., & WOLF, M. M. (1971). Achievement place: The...
<a href="http://android.onlinedown.net" target="_blank">安卓市场 <a href="http://www.onlinedown.net/hits/drive/" target="_blank">驱动下载 <a href="http://...
安装 oracle 软件常见问题解决办法。计算机名与IP没有绑定。5、 ORA-12170:TNS:连接超时
<a href="http://android.onlinedown.net" target="_blank">安卓市场 <a href="http://www.onlinedown.net/hits/drive/" target="_blank">驱动下载 <a href="http://...
开发环境:NetBeans 6.8IDE 和apache-tomcat-6.0.26 开发语言:JSP 系统运行所需软件 本系统所用的服务器是tomcat,tomcat在NetBeans中需要自己添加,默认情况下NetB eans没有自带apache-tomcat- 6.0.26,可以到...
Linux下关闭tomcatLinux下关闭tomcat