首页 新闻 会员 周边 捐助

Struct2搭建出现的问题 ---急

0
悬赏园豆:5 [待解决问题]

严重: Error filterStart
2011-10-6 12:00:43 org.apache.catalina.core.StandardContext start
严重: Context [/struts2] startup failed due to previous errors
2011-10-6 12:00:44 org.apache.tomcat.util.digester.Digester endElemen
严重: End event threw exception
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown So
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.tomcat.util.IntrospectionUtils.callMethod1(Intr
ils.java:925)
        at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRul

        at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
        at org.apache.tomcat.util.digester.Digester.endElement(Digest
0)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXPars
nt(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmen
l.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmen
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScanner
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmen
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configurat
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configurat
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXPars
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXP
arse(Unknown Source)
        at org.apache.tomcat.util.digester.Digester.parse(Digester.ja
        at org.apache.catalina.startup.ContextConfig.applicationWebCo
tConfig.java:365)
        at org.apache.catalina.startup.ContextConfig.start(ContextCon
66)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(C
g.java:261)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEve
eSupport.java:119)
        at org.apache.catalina.core.StandardContext.start(StandardCon
339)
        at org.apache.catalina.core.ContainerBase.addChildInternal(Co
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerB
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHos

        at org.apache.catalina.startup.HostConfig.deployDirectory(Hos
a:987)
        at org.apache.catalina.startup.HostConfig.deployDirectories(H
ava:909)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConf
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.ja
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(Host
:314)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEve
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase

        at org.apache.catalina.core.StandardHost.start(StandardHost.j
        at org.apache.catalina.core.ContainerBase.start(ContainerBase

        at org.apache.catalina.core.StandardEngine.start(StandardEngi
)
        at org.apache.catalina.core.StandardService.start(StandardSer
16)
        at org.apache.catalina.core.StandardServer.start(StandardServ
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:5
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown So
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
Caused by: java.lang.IllegalArgumentException: Filter mapping specifi
wn filter name struts2.0
        at org.apache.catalina.core.StandardContext.addFilterMap(Stan
.java:2237)
        ... 46 more
2011-10-6 12:00:44 org.apache.catalina.startup.ContextConfig applicat
g
严重: Parse error in application web.xml file at jndi:/localhost/Ohte
-INF/web.xml
java.lang.IllegalArgumentException: Filter mapping specifies an unkno
ame struts2.0
        at org.apache.tomcat.util.digester.Digester.createSAXExceptio
java:2808)
        at org.apache.tomcat.util.digester.Digester.createSAXExceptio
java:2834)
        at org.apache.tomcat.util.digester.Digester.endElement(Digest
3)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXPars
nt(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmen
l.scanEndElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmen
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScanner
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmen
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configurat
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configurat
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXPars
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXP
arse(Unknown Source)
        at org.apache.tomcat.util.digester.Digester.parse(Digester.ja
        at org.apache.catalina.startup.ContextConfig.applicationWebCo
tConfig.java:365)
        at org.apache.catalina.startup.ContextConfig.start(ContextCon
66)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(C
g.java:261)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEve
eSupport.java:119)
        at org.apache.catalina.core.StandardContext.start(StandardCon
339)
        at org.apache.catalina.core.ContainerBase.addChildInternal(Co
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerB
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHos

        at org.apache.catalina.startup.HostConfig.deployDirectory(Hos
a:987)
        at org.apache.catalina.startup.HostConfig.deployDirectories(H
ava:909)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConf
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.ja
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(Host
:314)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEve
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase

        at org.apache.catalina.core.StandardHost.start(StandardHost.j
        at org.apache.catalina.core.ContainerBase.start(ContainerBase

        at org.apache.catalina.core.StandardEngine.start(StandardEngi
)
        at org.apache.catalina.core.StandardService.start(StandardSer
16)
        at org.apache.catalina.core.StandardServer.start(StandardServ
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:5
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown So
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:
2011-10-6 12:00:44 org.apache.catalina.startup.ContextConfig applicat
g
严重: Occurred at line 16 column 19
2011-10-6 12:00:44 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2011-10-6 12:00:44 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2011-10-6 12:00:44 org.apache.catalina.core.StandardContext start
严重: Context [/OhterStruts] startup failed due to previous errors

sqljiang的主页 sqljiang | 初学一级 | 园豆:190
提问于:2011-10-06 12:08
< >
分享
所有回答(2)
0

web.xml中的filter配置有错误。

miss you | 园豆:209 (菜鸟二级) | 2012-11-07 14:35
0

我的也有错,

严重:End event threw exception

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:928)
at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:193)
at org.apache.tomcat.util.digester.Rule.end(Rule.java:229)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1138)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
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:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1076)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4540)
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:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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: java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name Struts2
at org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2438)
... 46 more
2013-7-10 9:05:19 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Parse error in application web.xml file at jndi:/localhost/Prodemo2/WEB-INF/web.xml
java.lang.IllegalArgumentException: Filter mapping specifies an unknown filter name Struts2
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2806)
at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2832)
at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1774)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2930)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
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:807)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1642)
at org.apache.catalina.startup.ContextConfig.applicationWebConfig(ContextConfig.java:365)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1076)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4540)
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:546)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
2013-7-10 9:05:19 org.apache.catalina.startup.ContextConfig applicationWebConfig
严重: Occurred at line 16 column 19
2013-7-10 9:05:19 org.apache.catalina.startup.ContextConfig start
严重: Marking this application unavailable due to previous error(s)
2013-7-10 9:05:20 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2013-7-10 9:05:20 org.apache.catalina.core.StandardContext start
严重: Context [/Prodemo2] startup failed due to previous errors

可不可以告诉我你是怎么解决的?我导入了struts2-core-2.1.6.jar这个包,但是当我按住

Ctrl将鼠标放在web.xml中的<filter-class>org.apache.Struts2.dispatcher.FilterDispatcher</filter-class>里时,进不去这个了类,如果你已经解决的话可不可帮我解决这个问题?

谢谢……

lichen辰 | 园豆:196 (初学一级) | 2013-07-10 10:04
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册