Exception starting filter struts2

问题描述

org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstruts2[unknownlocation]atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:835)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)atorg.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:205)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4450)atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)atorg.apache.catalina.core.StandardHost.start(StandardHost.java:722)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:583)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:585)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)Causedby:Prematureendoffile.-[unknownlocation]atcom.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:123)atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)...34moreCausedby:org.xml.sax.SAXParseException:Prematureendoffile.atorg.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(UnknownSource)atorg.apache.xerces.util.ErrorHandlerWrapper.fatalError(UnknownSource)atorg.apache.xerces.impl.XMLErrorReporter.reportError(UnknownSource)atorg.apache.xerces.impl.XMLErrorReporter.reportError(UnknownSource)atorg.apache.xerces.impl.XMLScanner.reportFatalError(UnknownSource)atorg.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(UnknownSource)atorg.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(UnknownSource)atorg.apache.xerces.parsers.XML11Configuration.parse(UnknownSource)atorg.apache.xerces.parsers.XML11Configuration.parse(UnknownSource)atorg.apache.xerces.parsers.XMLParser.parse(UnknownSource)atorg.apache.xerces.parsers.AbstractSAXParser.parse(UnknownSource)atjavax.xml.parsers.SAXParser.parse(SAXParser.java:375)atcom.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:121)...35more2009-7-2412:46:16org.apache.catalina.core.StandardContextstart严重:ErrorfilterStart

解决方案

解决方案二:
你用的是struts2框架吗?把web.xml文件代码贴出来.
解决方案三:
应该是web.xml中的filter配置不正确把web.xml代码贴出来
解决方案四:
<?xmlversion="1.0"encoding="UTF-8"?><web-appversion="2.5"xmlns="http://java.sun.com/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"><filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping><welcome-file-list><welcome-file>index.jsp</welcome-file></welcome-file-list><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener></web-app>
解决方案五:
STRUTS2里面哪个配置的用了非法的结束符,把一块一块剪切掉再部署,不就查出问题来了!
解决方案六:
好像不是web.xml的错误而是资源包有问题.
解决方案七:
谢谢各位,找出问题了,struts配置出了问题。
解决方案八:
我也遇到这样的问题了,但是我的struts.xml中什么东西都还没写呢。。。不知道是哪里的问题,拜托各位了

时间: 2024-09-18 02:51:09

Exception starting filter struts2的相关文章

tomcat6-struts2下的“Exception starting filter struts2”错误

问题描述 struts2下的"Exception starting filter struts2"错误 这是错误 三月 29, 2015 8:54:05 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error 严重: Dispatcher initialization failed Unable to load configuration. - action - file:/D:/Tomcat6.0/Tom

Struts2 严重: Exception starting filter struts2问题

问题描述 2010-4-2617:21:06org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstruts2Unabletoloadbean:type:class:com.opensymphony.xwork2.ObjectFactory-bean-jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/

struts2配置错误 严重: Exception starting filter struts2

问题描述 错误信息如下:包都全了,2.0的.但是总是失败,请教原因2011-3-2918:55:15com.opensymphony.xwork2.config.providers.XmlConfigurationProviderregister信息:Parsingconfigurationfile[struts-default.xml]2011-3-2918:55:15org.apache.catalina.core.StandardContextfilterStart严重:Exception

严重: Exception starting filter struts2!!!!高手指点

问题描述 严重:Exceptionstartingfilterstruts2java.lang.ClassNotFoundException:org.apache.struts2.dispather.FilterDispacheratorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)atorg.apache.catalina.loader.WebappClassLoader.loa

严重: Exception starting filter characterEncoding

问题描述 web.xml<?xml version="1.0" encoding="UTF-8"?><web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ht

tomcat-Exception starting filter strutsFilterDispatcher

问题描述 Exception starting filter strutsFilterDispatcher 严重: Exception starting filter strutsFilterDispatcher java.lang.ArrayIndexOutOfBoundsException: 0 at org.apache.struts2.convention.SEOActionNameBuilder.build(SEOActionNameBuilder.java:69) at org.ap

MyEclipse搭建SSH框架 Struts2.1+Spring3.0+hibernate3.3

原文http://www.cnblogs.com/AXDY-QIN/archive/2013/01/21/SSH.html 用MyEclipse搭建SSH框架 Struts2.1+Spring3.0+hibernate3.3 1.         配置Tomcat 配置Tomcat所在路径 配置Tomcat使用JDK版本 如果Tomcat为7.0则添加Tomcat-juli.jar包 2.         new一个web project. 2.右键项目,为项目添加Struts支持.   点击F

struts2.0-struts2配置启动报错

问题描述 struts2配置启动报错 按照 视频导入了 struts2基础jar包:根据报错提示最终放了8个jar包 启动的时候myEclipse控制台报错: 2015-9-14 14:19:42 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2015-9-14 14:19:42 org.apache.catalina.core.StandardContext start 严重: Context star

初次搭建struts2开发环境却一直出错,求指教

问题描述 初次搭建struts2开发环境却一直出错,求指教 在初次搭建struts时,总是报错,出现如下代码严重: Dispatcher initialization failedjava.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java