问题描述
信息:action:Mustspecifyoneof"forward","include"or"type"forpath/managerEndeventthrewexceptionjava.lang.reflect.InvocationTargetExceptionatsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.struts.digester.SetNextRule.end(SetNextRule.java:157)atorg.apache.struts.digester.Digester.endElement(Digester.java:409)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:593)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamespaceScope(XMLDTDValidator.java:2077)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2028)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:364)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:142)atorg.apache.struts.digester.Digester.parse(Digester.java:755)atorg.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)atorg.apache.struts.action.ActionServlet.init(ActionServlet.java:466)atjavax.servlet.GenericServlet.init(GenericServlet.java:212)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4458)atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1173)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1271)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)atjava.lang.Thread.run(Thread.java:619)Causedby:java.lang.IllegalArgumentException:Mustspecifyoneof"forward","include"or"type"forpath/manageratorg.apache.struts.action.ActionServlet.addMapping(ActionServlet.java:577)...38more2010-5-616:15:43org.apache.catalina.core.StandardContextloadOnStartup严重:Servlet/05threwload()exceptionjava.lang.IllegalArgumentException:Mustspecifyoneof"forward","include"or"type"forpath/manageratorg.apache.struts.action.ActionServlet.addMapping(ActionServlet.java:577)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.struts.digester.SetNextRule.end(SetNextRule.java:157)atorg.apache.struts.digester.Digester.endElement(Digester.java:409)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:593)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endNamespaceScope(XMLDTDValidator.java:2077)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:2028)atcom.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:901)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)atcom.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)atcom.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)atcom.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)atcom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)atcom.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:364)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:142)atorg.apache.struts.digester.Digester.parse(Digester.java:755)atorg.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)atorg.apache.struts.action.ActionServlet.init(ActionServlet.java:466)atjavax.servlet.GenericServlet.init(GenericServlet.java:212)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4458)atorg.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1173)atorg.apache.catalina.startup.HostConfig.check(HostConfig.java:1271)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:296)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)atorg.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)atjava.lang.Thread.run(Thread.java:619)2010-5-616:24:39org.apache.coyote.http11.Http11Protocolpause异常信息如上,请高手提供解决之道,谢谢
解决方案
解决方案二:
看一下配置文件里,有没有标识forward,要不你在struts中,就不可以使用。
解决方案三:
好长啊
解决方案四:
配置文件错了