tomcat启动报错 java.net.ConnectException: Connection refused: connect

严重: Catalina.stop: 
java.net.ConnectException: Connection refused: connect 
at java.net.PlainSocketImpl.socketConnect(Native Method) 
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) 
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) 
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) 
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) 
at java.net.Socket.connect(Socket.java:507) 
at java.net.Socket.connect(Socket.java:457) 
at java.net.Socket.(Socket.java:365) 
at java.net.Socket.(Socket.java:17 
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395) 
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:585) 
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344) 
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435) 

 

tomcat已启动就报这个错误,然后也不能关闭了,已关闭也报这个错误。报错时是首先debug窗口会显示信息!

解决方案:

tomcat的launch的选项改成Run mode.重新启动tomcat之后好了。

先点击菜单栏中的windows,选preference–myeclipes–servers–tomcat–tomcat 6.0–launch

 

时间: 2025-01-31 06:19:48

tomcat启动报错 java.net.ConnectException: Connection refused: connect的相关文章

java网络编程错误java.net.ConnectException: Connection refused: connect求教

问题描述 java网络编程错误java.net.ConnectException: Connection refused: connect求教 刚开始学习java网络编程,在书上看到一段代码,就动手试一下,结果出现下面错误: java.net.ConnectException: Connection refused: connect 源代码如下: import java.io.*; import java.net.*; class lx01 { public static void main(S

tomcat启动报错java.net.SocketException: select failed

问题描述 2011-4-2117:29:03org.apache.tomcat.util.net.JIoEndpoint$Acceptorrun严重:Socketacceptfailedjava.net.SocketException:selectfailedatjava.net.PlainSocketImpl.socketAccept(NativeMethod)atjava.net.PlainSocketImpl.accept(PlainSocketImpl.java:390)atjava.n

tomcat启动报错-java开发使用struts2框架后,启动tomcat会出现异常,希望大家帮帮忙。

问题描述 java开发使用struts2框架后,启动tomcat会出现异常,希望大家帮帮忙. comcat版本 6.0.30 struts2 jar包 struts2-core-2.1.8.1.jar org.xml.sax.SAXParseException: The element type "servlet-class" must be terminated by the matching end-tag "". at com.sun.org.apache.x

java.net.ConnectException: Connection refused问题解决办法_java

Socket异常 客户端异常 java.net.ConnectException: Connection refused: connect. 该异常发生在客户端进行new Socket(ip, port)操作时,该异常发生的原因是或者具有ip地址的机器不能找到(也就是说从当前机器不存在到指定ip路由),或者是该ip存在,但找不到指定的端口进行监听.出现该问题,首先检查客户端的ip和port是否写错了,如果正确则从客户端ping一下服务器看是否能ping通,如果能ping通(服务服务器端把ping

RMI异常,java.rmi.ConnectException: Connection refused to host

问题描述 String name = "Compute"; HelloWorldCompute engine = new HelloWorldEngine(); HelloWorldCompute stub = (HelloWorldCompute) UnicastRemoteObject.exportObject(engine, 8888); Registry registry = LocateRegistry.getRegistry(); registry.rebind(name,

java错误:Connection refused:connect

问题描述 java错误:Connection refused:connect 这是我主界面,我想在这点开文件,然后可以发送给连接的人,目前的测试就是自己给自己发. package com.fastSendFile; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.datatransfer.DataFlavor; import java.awt.

DRP问题集结(一)-Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

             问题一:  Tomcat无法启动,报错java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory           问题二:[Error]JavaWeb: 严重: Failed to initialize end point associated with ProtocolHandler ["http-bio-8080"]           问题三:The APR based Apa

tomcat启动报错-Tomcat 启动报错 好像说mysql连接数超了 求帮助

问题描述 Tomcat 启动报错 好像说mysql连接数超了 求帮助 014-06-12 10:37:06500 ERROR [com.neusoft.common.CommonDao] - 公共模块-初始化字典表失败 org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception

ssh事务-SSH配置事务tomcat启动报错问题

问题描述 SSH配置事务tomcat启动报错问题 tomcat启动报错: 严重: Exception sending context initialized event to listener instance of class org.apache.struts.plugin.PluginContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with