在网上查了好多资料,大部分童鞋在遇到此问题时的做法是去更改Tomcat的start-timeout配置参数,把超时时间改的长一些。我的eclipse是galileo版本。具体做法是:
双击servers的选项卡里的Tomcat服务器(注意是双击哦),打开Tomcat的配置视图 --> 在页面右半部分有个Timeouts配置项,点开,更改‘start(in seconds)’参数值为100或更大 --> 然后保存配置。
按理说这样就OK了。但是我却惊奇的发现问题并没有解决。我在思考,难道是tomcat出了问题?于是换了个tomcat,果然,tomcat可以正常启动了。但是,问题出在哪了呢?对比这两个Tomcat Server的配置视图时,我发现了在Timeouts配置项下面有个Ports配置项。两者有差别。不正常的server下缺少一个port name 为 "HTTP/1.1" 、port number为 "8080" 的配置项。此时恍然大悟。随后在Project Explorer里打开Servers---server.xml。发现以下代码被注释掉了:
<Connector connectionTimeout="20000" executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
8080端口岂能被注释掉?!随放开。重启Tomcat,问题终于解决。
。低级错误,面壁去。。。。
分享到:
相关推荐
WAS WebSphere 启动 错误 troubleshooting
"Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
techniques are also applicable to Linux systems. The focus of the techniques presented in this document is the multichannel audio serial port (McASP), which is the audio peripheral in the DRA7xxx ...
安装好vncserver,本地pc笔记本能通过vnc viewer远程连接Oracle服务器,但是在执行xhost+报错,尝试过localhost,尝试过127.0.0.1,也试过本机ip地址,都是unable toopen displa,如下所示 [root@orcltest ~]# ...
在linux上启动jmeter-server报错: ...Server failed to start: java.rmi.RemoteException: Cannot start. localhost is a loopback address. An error occurred: Cannot start. localhost is a loopback address.
Can't connect to MySQL server on 'localhost' (10061)解决方法,需要的朋友可以参考下。
apache No input filespecified,今天是我们配置apache RewriteRule时出现这种问题,解决办法很简单如下 打开.htaccess 在RewriteRule 后面的index.php教程后面添加一个“?” 完整代码如下 .htaccess ...
mysql的连接问题,重启电脑登录不上mysql的问题
Server Tomcat v7.0 Server at localhost failed to start清理tomcat。
解决arcgis server跨域问题: 1、停掉ArcGIS Server的服务。 2、 打开<ArcGIS Server> \framework\runtime\tomcat\conf\web.xml,注册跨域bean 3、lib下拷贝 cors-filter-2.5.jar java-property-utils-1.9.1.jar包 4...
Navicat premium连接mysql时出现2003-Can't connect to MySql server on 'localhost'(10061)错误
NULL 博文链接:https://xj84.iteye.com/blog/1171001
首先是不知道怎么忽然mysql用命令行,workbench都登录不了,都提示’Access denied for user ‘root’@’localhost’。 数据库卸载重装了几次都不行。好像感觉数据清理不干净。解决的过程遇到的坑,这里记录分享下。...
解决Can’t connect to MySQL server on ‘localhost’ (10048), 一般见于使用mysql的windows 2003服务器. 错误的出现的原因: 应用程序需要快速释放和创建新连接, 但是由于 TIME_WAIT 中存在的连接超过默认值,导致...
以上这篇解决webpack无法通过IP地址访问localhost的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持软件开发网。 参考地址:...
报错Connection to blog0@localhost failed. [08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up. 解决办法:在url后面拼接?serverTimezone=UTC 连接成功后数据库...
有些时候我们运行php的时候,页面提示Can't connect to MySQL server on 'localhost',那么就需要参考下面的方法来解决。
NULL 博文链接:https://yizhilong28.iteye.com/blog/1137285
等待约一两分钟后出现错误提示:SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0,如下图所示: 开始以为是远程TCP/IP root只能通过...