Tomcat start error Java.net.AbstractPlainSocketImpl (java/net/abstractplainsocketimpl.java:178:-1) struts start error resolution in complex network conditions

Source: Internet
Author: User

SSH Project

In the case of network complexity (unknown law), when Tomcat starts, the following error is reported:

[ERROR] 2014-08-12 14:52:58,484 [org.apache.struts2.dispatcher.dispatcher:27]-Dispatcher initialization failed
Unable to load configuration. -Class:java.net.AbstractPlainSocketImpl
File:AbstractPlainSocketImpl.java
Method:connect
Line:178-java/net/abstractplainsocketimpl.java:178:-1
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:58)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:374)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:418)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:69)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:51)
At Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:275)
At Org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (applicationfilterconfig.java:397)
At Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:108)
At Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:3709)
At Org.apache.catalina.core.StandardContext.start (standardcontext.java:4363)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1045)
At Org.apache.catalina.core.StandardHost.start (standardhost.java:719)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1045)
At Org.apache.catalina.core.StandardEngine.start (standardengine.java:443)
At Org.apache.catalina.core.StandardService.start (standardservice.java:516)
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 (nativemethodaccessorimpl.java:57)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (delegatingmethodaccessorimpl.java:43)
At Java.lang.reflect.Method.invoke (method.java:601)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
caused By:unable to load File:/e:/work/workspace/ws4szzt71/thethirdaffiliatedhospitalofsunyatsenuniversity/webroot /web-inf/classes/struts.xml-class:java.net.abstractplainsocketimpl
File:AbstractPlainSocketImpl.java
Method:connect
Line:178-java/net/abstractplainsocketimpl.java:178:-1

Here's how to fix it:

Error message prompt cannot load:struts.xml file.

View the DOCTYPE definition for the Struts.xml file The discovery version is inconsistent with Struts2-core-2.1.8.1.jar and is modified as follows:
Modify the Declarations section in Struts.xml to the file declaration Struts-default.xml in the jar package Struts2-core-2.1.8.1.jar for the project.
That
Will: <! DOCTYPE struts Public "-//apache software foundation//dtd struts Configuration 2.3//en" "http://struts.apache.org/dtds/ Struts-2.3.dtd ">
Modified to: <! DOCTYPE struts Public "-//apache software foundation//dtd struts Configuration 2.1.7//en" "http://struts.apache.org/ Dtds/struts-2.1.7.dtd ">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.