If you encounter an error when tomcat is started in the Java Web project
14:39:32, 657 INFO (org. springframework. web. context. ContextLoader: 296
)-Root WebApplicationContext: initialization completed in 3735 MS
14:39:32, 740 INFO (com. opensymphony. xwork2.config. providers. XmlConfi
GurationProvider: 42)-Parsing configuration file [struts-default.xml]
14:39:44, 805 ERROR (org. apache. struts2.dispatcher. Dispatcher: 38)-Di
Spatcher initialization failed
Unable to load configuration.-Class: java.net. PlainSocketImpl
File: PlainSocketImpl. java
Method: connect
Line: 195-java/net/PlainSocketImpl. java: 195:-1
At com. opensymphony. xwork2.config. ConfigurationManager. getConfiguration (
ConfigurationManager. java: 69)
At org. apache. struts2.dispatcher. Dispatcher. init_PreloadConfiguration (Di
Spatcher. java: 380)
At org. apache. struts2.dispatcher. Dispatcher. init (Dispatcher. java: 424)
At org. apache. struts2.dispatcher. FilterDispatcher. init (FilterDispatcher.
Java: 195)
At org. apache. catalina. core. ApplicationFilterConfig. getFilter (Applicatio
NFilterConfig. java: 295)
At org. apache. catalina. core. ApplicationFilterConfig. setFilterDef (Applica
TionFilterConfig. java: 422)
At org. apache. catalina. core. ApplicationFilterConfig. <init> (ApplicationFi
LterConfig. java: 115)
At org. apache. catalina. core. StandardContext. filterStart (StandardContext.
Java: 4071)
At org. apache. catalina. core. StandardContext. start (StandardContext. java: 4
725)
At org. apache. catalina. core. ContainerBase. addChildInternal (ContainerBase
. Java: 799)
At org. apache. catalina. core. ContainerBase. addChild (ContainerBase. java: 77
9)
At org. apache. catalina. core. StandardHost. addChild (StandardHost. java: 601)
At org. apache. catalina. startup. HostConfig. deployDirectory (HostConfig. jav
A: 1079)
At org. apache. catalina. startup. HostConfig. deployDirectories (HostConfig. j
Ava: 1002)
At org. apache. catalina. startup. HostConfig. deployApps (HostConfig. java: 506
)
At org. apache. catalina. startup. HostConfig. start (HostConfig. java: 1315)
At org. apache. catalina. startup. HostConfig. lifecycleEvent (HostConfig. java
: 324)
At org. apache. catalina. util. LifecycleSupport. fireLifecycleEvent (Lifecycl
ESupport. java: 142)
At org. apache. catalina. core. ContainerBase. start (ContainerBase. java: 1061)
At org. apache. catalina. core. StandardHost. start (StandardHost. java: 840)
At org. apache. catalina. core. ContainerBase. start (ContainerBase. java: 1053)
At org. apache. catalina. core. StandardEngine. start (StandardEngine. java: 463
)
At org. apache. catalina. core. StandardService. start (StandardService. java: 5
25)
At org. apache. catalina. core. StandardServer. start (StandardServer. java: 754
)
At org. apache. catalina. startup. Catalina. start (Catalina. java: 595)
At sun. reflect. NativeMethodAccessorImpl. invoke0 (Native Method)
At sun. reflect. NativeMethodAccessorImpl. invoke (NativeMethodAccessorImpl.
Java: 39)
At sun. reflect. DelegatingMethodAccessorImpl. invoke (DelegatingMethodAcces
SorImpl. java: 25)
At java. lang. reflect. Method. invoke (Method. java: 597)
At org. apache. catalina. startup. Bootstrap. start (Bootstrap. java: 289)
At org. apache. catalina. startup. Bootstrap. main (Bootstrap. java: 414)
Caused by: Unable to load jar: file:/D:/apache-tomcat-6.0.32/webapps/LGHBSP/WEB-I
NF/lib/struts2-json-plugin-2.3.14.2.jar! /Struts-plugin.xml-Class: java.net. Pla
InSocketImpl
File: PlainSocketImpl. java
Method: connect
Line: 195-java/net/PlainSocketImpl. java: 195:-1
At com. opensymphony. xwork2.config. providers. XmlConfigurationProvider. loa
DConfigurationFiles (XmlConfigurationProvider. java: 909)
At com. opensymphony. xwork2.config. providers. XmlConfigurationProvider. loa
DDocuments (XmlConfigurationProvider. java: 154)
At com. opensymphony. xwork2.config. providers. XmlConfigurationProvider. ini
T (XmlConfigurationProvider. java: 121)
At com. opensymphony. xwork2.config. impl. DefaultConfiguration. reloadContai
Ner (DefaultConfiguration. java: 179)
At com. opensymphony. xwork2.config. ConfigurationManager. getConfiguration (
ConfigurationManager. java: 66)
... 30 more
Caused by: struts.apache.org-Class: java.net. PlainSocketImpl
File: PlainSocketImpl. java
Method: connect
Line: 195-java/net/PlainSocketImpl. java: 195:-1
At com. opensymphony. xwork2.util. DomHelper. parse (DomHelper. java: 115)
At com. opensymphony. xwork2.config. providers. XmlConfigurationProvider. loa
DConfigurationFiles (XmlConfigurationProvider. java: 904)
... 34 more
Caused by: java.net. UnknownHostException: struts.apache.org
At java.net. PlainSocketImpl. connect (PlainSocketImpl. java: 195)
At java.net. SocksSocketImpl. connect (SocksSocketImpl. java: 366)
At java.net. Socket. connect (Socket. java: 529)
At java.net. Socket. connect (Socket. java: 478)
At sun.net. NetworkClient. doConnect (NetworkClient. java: 163)
At sun.net. www. http. HttpClient. openServer (HttpClient. java: 411)
At sun.net. www. http. HttpClient. openServer (HttpClient. java: 525)
At sun.net. www. http. HttpClient. <init> (HttpClient. java: 208)
At sun.net. www. http. HttpClient. New (HttpClient. java: 291)
At sun.net. www. http. HttpClient. New (HttpClient. java: 310)
At sun.net. www. protocol. http. HttpURLConnection. getNewHttpClient (HttpURLC
Onnection. java: 987)
At sun.net. www. protocol. http. HttpURLConnection. plainConnect (HttpURLConne
Ction. java: 923)
At sun.net. www. protocol. http. HttpURLConnection. connect (HttpURLConnection
. Java: 841)
At sun.net. www. protocol. http. HttpURLConnection. getInputStream (HttpURLCon
New. java: 1195)
At com.sun.org. apache. xerces. internal. impl. XMLEntityManager. setupCurrent
Entity (XMLEntityManager. java: 675)
At com.sun.org. apache. xerces. internal. impl. XMLEntityManager. startEntity (
XMLEntityManager. java: 1313)
At com.sun.org. apache. xerces. internal. impl. XMLEntityManager. startDTDEnti
Ty (XMLEntityManager. java: 1280)
At com.sun.org. apache. xerces. internal. impl. XMLDTDScannerImpl. setInputSou
Rce (XMLDTDScannerImpl. java: 283)
At com.sun.org. apache. xerces. internal. impl. XMLDocumentScannerImpl $ DTDDri
Ver. dispatch (XMLDocumentScannerImpl. java: 1191)
At com.sun.org. apache. xerces. internal. impl. XMLDocumentScannerImpl $ DTDDri
Ver. next (XMLDocumentScannerImpl. java: 1087)
At com.sun.org. apache. xerces. internal. impl. XMLDocumentScannerImpl $ Prolog
Driver. next (XMLDocumentScannerImpl. java: 1000)
At com.sun.org. apache. xerces. internal. impl. XMLDocumentScannerImpl. next (X
MLDocumentScannerImpl. java: 647)
At com.sun.org. apache. xerces. internal. impl. XMLNSDocumentScannerImpl. next
(XMLNSDocumentScannerImpl. java: 140)
At com.sun.org. apache. xerces. internal. impl. XMLDocumentFragmentScannerImp
L. scanDocument (XMLDocumentFragmentScannerImpl. java: 511)
At com.sun.org. apache. xerces. internal. parsers. XML11Configuration. parse (X
ML11Configuration. java: 808)
At com.sun.org. apache. xerces. internal. parsers. XML11Configuration. parse (X
ML11Configuration. java: 737)
At com.sun.org. apache. xerces. internal. parsers. XMLParser. parse (XMLParser.
Java: 119)
At com.sun.org. apache. xerces. internal. parsers. AbstractSAXParser. parse (AB
StractSAXParser. java: 1205)
At com.sun.org. apache. xerces. internal. jaxp. SAXParserImpl $ JAXPSAXParser. p
Arse (SAXParserImpl. java: 522)
At javax. xml. parsers. SAXParser. parse (SAXParser. java: 395)
At com. opensymphony. xwork2.util. DomHelper. parse (DomHelper. java: 113)
... 35 more
2015-3-3 14:39:44 org. apache. catalina. core. StandardContext start
Severe: Error filterStart
2015-3-3 14:39:44 org. apache. catalina. core. StandardContext start
Severe: Context [/LGHBSP] startup failed due to previous errors
14:39:44, 834 INFO (org. springframework. web. context. support. XmlWebApp
LicationContext: 1020)-Closing Root WebApplicationContext: startup date [Tue Ma
R 03 14:39:28 CST 2015]; root of context hierarchy
14:39:44, 835 INFO (org. springframework. beans. factory. support. Default
ListableBeanFactory: 433)-Destroying singletons in org. springframework. beans. fa
Ctory. support. DefaultListableBeanFactory @ 559b808a: defining beans [org. springfra
Mework. context. annotation. internalConfigurationAnnotationProcessor, org. springfra
Mework. context. annotation. internalAutowiredAnnotationProcessor, org. springframewo
Rk. context. annotation. internalRequiredAnnotationProcessor, org. springframework. co
Ntext. annotation. internalCommonAnnotationProcessor, org. springframework. context.
Nnotation. internalPersistenceAnnotationProcessor, administrativeVillageAction, aqp
OAction, BffsAction, BlpAction, CappatlbAction, censusAction, CspAction, FertilizerAct
Ion, FishqsAction, define basicaction, GeneralQueryAction, LaketclsAction, LanduseAction
, LifeAction, LlesAction, PlwaterAction, PspAction, PuapAction, PumpingbasicAction, qse
SAction, RdbasicAction, SlappAction, SoilerosionAction, StatisticAnalysisAction, SysD
IctAction, SysLogAction, SysRoleAction, SysUserAction, TourismAreaAction, TourismSewa
GeAction, TudpsAction, WaterfowlsAction, WlmAction, XzqhAction, administrativeVillage
DaoImpl, aqpoDaoImpl, baseDataDaoImpl, bffsDaoImpl, blpDaoImpl, cappatlbDaoImpl, censu
SDaoImpl, cspDaoImpl, fertilizerDaoImpl, fishqsDaoImpl, gatebasicDaoImpl, laketclsDao
Impl, landuseDaoImpl, lifeDaoImpl, llesDaoImpl, plwaterDaoImpl, pspDaoImpl, puapDaoImp
L, pumpingbasicDaoImpl, qsesDaoImpl, rdbasicDaoImpl, slappDaoImpl, soilerosionDaoImpl
, SysDictDaoImpl, sysLogDaoImpl, sysRoleDaoImpl, sysUserDaoImpl, tourismAreaDaoImpl, t
OurismSewageDaoImpl, tudpsDaoImpl, waHabitasDaoImpl, waterfowlsDaoImpl, wlmDaoImpl,
DministrativeVillageManagerImpl, aqpoManagerImpl, baseDataManagerImpl, bffsManagerI
Mpl, blpManagerImpl, cappatlbManagerImpl, censusManagerImpl, cspManagerImpl, fertiliz
ErManagerImpl, fishqsManagerImpl, gatebasicManagerImpl, generalQueryManagerImpl, AK
EtclsManagerImpl, landuseManagerImpl, lifeManagerImpl, llesManagerImpl, mapQueryComm
OnResultManagerImpl, plwaterManagerImpl, pspManagerImpl, puapManagerImpl, pumpingbas
IcManagerImpl, qsesManagerImpl, rdbasicManagerImpl, slappManagerImpl, soilerosionMan
AgerImpl, statisticAnalysisManagerImpl, sysDictManagerImpl, sysLogManagerImpl, sysRo
LeManagerImpl, sysUserManagerImpl, tourismAreaManagerImpl, tourismSewageManagerImpl
, TudpsManagerImpl, waterfowlsManagerImpl, wlmManagerImpl, xzqhManagerImpl, utilTool,
Org. springframework. beans. factory. config. PropertyPlaceholderConfigurer #0, dataSou
Rce, sessionFactory, txManager, mapQueryCommonResultDAO, queryDao, statisticAnalysisD
Ao, xzqhDao, org. springframework. context. annotation. ConfigurationClassPostProcesso
R$ ImportAwareBeanPostProcessor #0]; root of factory hierarchy
14:39:44, 848 INFO (org. springframework. orm. hibernate3.annotation. Ann
OtationSessionFactoryBean: 1440)-Closing Hibernate SessionFactory
14:39:44 org. apache. catalina. loader. WebappClassLoader clearReferencesJd
Bc
Severe: The web application [/LGHBSP] registered the JDBC driver [oracle. jdbc. Orac
LeDriver] but failed to unregister it when the web application was stopped. To p
Revent a memory leak, the JDBC Driver has been forcibly unregistered.
Solution package conflict, replacing the struts2-json-plugin-2.3.14.2.jar package with a struts2-json-plugin-2.2.3.jar can resolve