Tomcat启动有时报错有是正常

问题描述

Tomcat启动有时报错有是正常
应用部署好以后启动tomcat,有时会报错,有时能正常启动。
(期间没有对程序做任何修改)

报如下错:

Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:996)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:850)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:637)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1290)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1257)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:262)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1162)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)

解决方案

启动Tomcat时报错,一大堆的
启动tomcat时报错
安装Tomcat 6.0.18时报错

解决方案二:
是不是数据库连接不稳定啊??

解决方案三:
要在任务管理器杀掉占用他端口的进程

时间: 2024-09-13 02:56:50

Tomcat启动有时报错有是正常的相关文章

jbpm5.4启动流程时报错

问题描述 jbpm5.4启动流程时报错 2C 在自己的项目中首先启动HorentQ服务器 没有问题: try { TaskService taskService = new TaskService(entityManagerFactory SystemEventListenerFactory.getSystemEventListener()); // 添加必要的用户 TaskServiceSession taskSession = taskService.createSession(); tas

javaweb项目,tomcat启动异常报错,spring文件初始化问题,大神help

问题描述 javaweb项目,tomcat启动异常报错,spring文件初始化问题,大神help 本地启动没问题,把编译好的项目放到别的机器就不行,tomcat版本是一样的,都是8.0.12,jdk也是一样的,本地的系统是windows,另外一台是linux ERROR 2015-08-13 14:50:01,873 ContextLoader:initWebApplicationContext - Context initialization failed java.lang.NullPoin

java web项目在tomcat中运行时报错,tomcat正常运行

问题描述 java web项目在tomcat中运行时报错,tomcat正常运行 严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener java.lang.AbstractMethodError: org.apache.crimson.tree.ElementNode2.getTextContent()Ljava/lan

maven 项目tomcat启动总是报错,而且项目是直接从团队git仓库下的,是我的环境配置问题吗

问题描述 maven 项目tomcat启动总是报错,而且项目是直接从团队git仓库下的,是我的环境配置问题吗 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.github.diamond.client.spring.MessagePropertyPlaceholderConfigurer#0': Invocation of init method failed;

【报错】项目启动部署时报错:java.lang.NoSuchMethodError

报错: ===================================================================================================== 项目启动部署报错: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.doWithLocalFields(Ljava/lang/Class;Lorg/springframework/util/Ref

启动项目时报错

问题描述 013-4-25 16:31:16 org.apache.catalina.core.AprLifecycleListener init信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:MyWoryToolsCommonbinarycom.sun.java.jd

myeclipse中tomcat启动没有报错,但是没加载项目的任何内容,求高人指点

问题描述 如上图所示,这是这种启动成功界面,根本没有去初始化我设定的一些东西,求问是什么情况?补充一下,tomcat目录下面项目是部署进去了的,里面classess里面也是正确的 解决方案 本帖最后由 LKSfannxi 于 2014-11-14 15:13:06 编辑解决方案二:信息中说明已经成功部署了webapps/OESYS项目.1.如果是修改了,你把tomcat全部停止,重新启动.[有时停止需要停止进程]2.可能是你修改的内容有问题.解决方案三:引用1楼dalor的回复: 信息中说明已经

jbpm5.4启动流程时报错 求助

问题描述 在自己的项目中首先启动HorentQ服务器没有问题:try{TaskServicetaskService=newTaskService(entityManagerFactory,SystemEventListenerFactory.getSystemEventListener());//添加必要的用户TaskServiceSessiontaskSession=taskService.createSession();taskSession.addUser(newUser("krisv&q

javaweb-Eclipse启动Tomcat的时候报错:ClassNotFoundException,题目写不开了

问题描述 Eclipse启动Tomcat的时候报错:ClassNotFoundException,题目写不开了 详细报错如下: 严重: Error configuring application listener of class org.framework.web.system.listener.InitListener java.lang.ClassNotFoundException: org.framework.web.system.listener.InitListener at org