Javax.servlet.UnavailableException:Parsing Error processing Resource Path/web-inf/struts-config.xml

Source: Internet
Author: User
Tags addchild file copy

Serious: Servlet/luntan threw load () exception
Javax.servlet.UnavailableException:Parsing Error processing Resource Path/web-inf/struts-config.xml
At Org.apache.struts.action.ActionServlet.handleConfigException (actionservlet.java:769)
At Org.apache.struts.action.ActionServlet.parseModuleConfigFile (actionservlet.java:745)
At Org.apache.struts.action.ActionServlet.initModuleConfig (actionservlet.java:687)
At Org.apache.struts.action.ActionServlet.init (actionservlet.java:333)
At Javax.servlet.GenericServlet.init (genericservlet.java:212)
At Org.apache.catalina.core.StandardWrapper.loadServlet (standardwrapper.java:1161)
At Org.apache.catalina.core.StandardWrapper.load (standardwrapper.java:981)
At Org.apache.catalina.core.StandardContext.loadOnStartup (standardcontext.java:4042)
At Org.apache.catalina.core.StandardContext.start (standardcontext.java:4348)
At Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:791)
At Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:771)
At Org.apache.catalina.core.StandardHost.addChild (standardhost.java:525)
At Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:920)
At Org.apache.catalina.startup.HostConfig.deployDirectories (hostconfig.java:883)
At Org.apache.catalina.startup.HostConfig.deployApps (hostconfig.java:492)
At Org.apache.catalina.startup.HostConfig.start (hostconfig.java:1138)
At Org.apache.catalina.startup.HostConfig.lifecycleEvent (hostconfig.java:311)
At Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:117)
At Org.apache.catalina.core.ContainerBase.start (containerbase.java:1053)
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:566)
At Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method)
At Sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
At Sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
At Java.lang.reflect.Method.invoke (Unknown Source)
At Org.apache.catalina.startup.Bootstrap.start (bootstrap.java:288)
At Org.apache.catalina.startup.Bootstrap.main (bootstrap.java:413)
2008-7-18 2:33:25 Org.apache.coyote.http11.Http11Protocol Start
Info: Starting Coyote http/1.1 on http-8080
2008-7-18 2:33:25 org.apache.jk.common.ChannelSocket Init
Info: jk:ajp13 Listening on/0.0.0.0:8009
2008-7-18 2:33:25 Org.apache.jk.server.JkMain Start
Info: Jk running id=0 time=0/94 config=null
2008-7-18 2:33:25 Org.apache.catalina.startup.Catalina Start
Info: Server Startup in 3362 MS
2008-7-18 2:33:28 Org.apache.catalina.core.StandardWrapperValve Invoke
Info: Servlet action is currently unavailable
2008-7-18 2:33:28 Org.apache.catalina.core.StandardWrapperValve Invoke
Info: Servlet action is currently unavailable

The previous procedure is no problem. The above error occurs later in the run. And it will cause the same error to myeclipse when you run another project ....

Solution: Finally take the approach--the Struts-config.xml file copy down to the other place, and then in project to delete it, so that after casually looking for the right Struts-config.xml file Peast to project, if there is not the above error is explained the original s Truts-config.xml there are problems, and then from the copy down Struts-config.xml File copy some into the correct struts-config.xml, run, no more than the above error description copy of the content is not wrong, similar practices can find the wrong configuration content ....

Said to himself: 1. The same error occurred in the running of other projects may: run another project in the new workspace

2. The cause of the above error (case): In the same workspace run other works, the emergence of some porblem make the struts-config.xml appear some wrong label (used in other works) and the rules are in more than <action >.

Experience: Try to open only one project in the Myeclipe, or be especially careful not to interfere with different project.

Related Article

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.