Struts2的dispatcher.FilterDispatcher

问题描述

2011-3-2220:08:35org.apache.catalina.core.ApplicationContextlog严重:ErrorloadingWebappClassLoaderdelegate:falserepositories:/WEB-INF/classes/---------->ParentClassloader:org.apache.catalina.loader.StandardClassLoader@3bc473org.apache.struts.action.ActionServletjava.lang.ClassNotFoundException:org.apache.struts.action.ActionServletatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4496)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:546)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)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:785)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:519)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)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.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-3-2220:08:35org.apache.catalina.core.StandardContextloadOnStartup严重:Servlet/gxthrewload()exceptionjava.lang.ClassNotFoundException:org.apache.struts.action.ActionServletatorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4496)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:546)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)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:785)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:519)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)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.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-3-2220:08:35org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectoryhibernate2011-3-2220:08:36com.opensymphony.xwork2.config.providers.XmlConfigurationProviderregister信息:Parsingconfigurationfile[struts-default.xml]2011-3-2220:08:36com.opensymphony.xwork2.config.providers.XmlConfigurationProviderregister信息:Parsingconfigurationfile[struts-plugin.xml]2011-3-2220:08:37com.opensymphony.xwork2.config.providers.XmlConfigurationProviderregister信息:Parsingconfigurationfile[struts.xml]2011-3-2220:08:37org.apache.struts2.config.SettingsgetLocale警告:Settings:Couldnotparsestruts.localesetting,substitutingdefaultVMlocale2011-3-2220:08:39com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory<clinit>信息:SettingDefaultObjectTypeDeterminerasdefault...2011-3-2220:08:40org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectoryliaotian2011-3-2220:08:41org.apache.catalina.startup.HostConfigdeployDirectory信息:DeployingwebapplicationdirectoryROOT2011-3-2220:08:41org.apache.catalina.startup.HostConfigdeployDirectory信息:Deployingwebapplicationdirectorystruts22011-3-2220:08:41org.apache.catalina.core.StandardContextfilterStart严重:Exceptionstartingfilterstrutsjava.lang.ClassNotFoundException:org.apache.struts2.dispatcher.FilterDispatcheratorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)atorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)atorg.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:269)atorg.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)atorg.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)atorg.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4488)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:546)atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)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:785)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:519)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:581)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.catalina.startup.Bootstrap.start(Bootstrap.java:289)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)2011-3-2220:08:41org.apache.catalina.core.StandardContextstart严重:ErrorfilterStart2011-3-2220:08:41org.apache.catalina.core.StandardContextstart严重:Context[/struts2]startupfailedduetopreviouserrors麻烦各位帮我看一下,我是错在那,我引commons-fileuploadcommons-iocommons-logging-api-1.1.jarfreemarker-2.3.8.jarognl-2.6.11.jarstruts2-co-2.0.12.jarxwork-2[align=center]**********************************************欢迎使用CSDN小秘书**********************************************[/align]

解决方案

解决方案二:
org.apache.struts2.dispatcher.FilterDispatcher这个类在struts2-core中。还有,你Strut1的ActionServlet也没有找到么。
解决方案三:
java.lang.ClassNotFoundException:org.apache.struts.action.ActionServlet没有找到这个类

时间: 2024-09-29 18:59:13

Struts2的dispatcher.FilterDispatcher的相关文章

struts2.0 Dispatcher initialization failed错误,求大神给指点

问题描述 struts2.0 Dispatcher initialization failed错误,求大神给指点 webxml: <?xml version="1.0" encoding="UTF-8"?> xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schem

初学structs2出现的问题

问题描述 严重:ExceptionstartingfilterStruts2.0java.lang.ClassNotFoundException:org.apache.Struts2.0.dispatcher.FilterDispatcher去掉web.xml中的file的内容就不会出现上面的错误,web.xml中应该怎么写啊<?xmlversion="1.0"encoding="UTF-8"?><web-app><display-na

Struts2配置web.xml

  任何MVC框架都需要与Web应用整合,这就不得不借助于web.xml文件,只有配置在web.xml文件中Servlet才会被应用加载. 所有的MVC框架都需要Web应用加载一个核心控制器,对于Struts2框架而言,需要加载FilterDispatcher   只要Web应用负责加载FilterDispatcher,FilterDispatcher将会加载应用的Struts2框架.   因为Struts 2将核心控制器设计成Filter,而不是一个普通Servlet.故为了让Web应用加载F

Struts2+JFreeChart

前言      关于Struts2入门以及提高等在这里就不介绍了,但是关于Struts2的学习有以下推荐: struts2-showcase-2.0.6.war:这个是官方自带的Demo(struts-2.0.6-all.zip\struts-2.0.6\apps目录下),非常全面,直接部署就可以了(很多朋友Struts2能学很好我估计还是直接从这里学来的). wiki-WebWork:入了门的朋友应该都知道,strust2由webwork2和struts1.x合并起来的,但主要还是以webwo

struts2框架安装及配置

1.打开http://struts.apache.org/网站,点击右上角的struts2,在进入的页面点击Download Now,下载Full Distribution(完整版),并解压. 2.复制lib目录下的commons-logging-1.0.4.jar,freemarker-2.3.13.jar,ognl-2.6.11.jar,struts2-core-2.1.6.jar,xwork-2.1.2.jar到/WEB-INF/lib目录下(其他jar文件请根据需要复制). 3.在/WE

米子SSH之路(二) SSH的配置 (2) 集成Struts2

上一篇已经讲了Spring2.5的配置,这章讲的就是怎么在Spring2.5上集成Struts. 三,在Spring2.5 集成 Struts2 3.1 修改现有的web.xml . 加上下面两段代码: <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> <

Struts2.x学习:第一个Struts2.0例子

具体相关页面及相应配置如下: 在struts1.x系列中,所有的请求是通过一个servlet(ActionServlet)来管理控制的,在Struts2.0而是经过一个Filter来处理请求的 web.xml : <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter- class&g

配置Struts2的struts.properties

struts.properties文件在WEB-INF/classes目录下存放. 这个文件用来配置Struts2系统的一些基本规约,所有在struts.properties中配置的内容都可以在struts.xml中配置,或者web.xml中在struts2 filter中配置,例如: Struts.properties中的如下配置: struts.i18n.encoding=UTF-8 相当于struts.xml中的如下配置: <constant name="struts.i18n.en

struts2笔记

与Struts 1.X不同,Struts2引入了WebWork的配置机制,在很大程度上提高了配置的灵活度.通过使用配置可以配置如下内容: 配置类型 配置文件 Struts2 参数配置 struts.properties Struts2 Action 配置 struts.xml Struts2 Result 配置 struts.xml Struts2 Exception Handling 配置 struts.xml Struts2 Intercept 配置 struts.xml Struts2 多