问题描述
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没有找到这个类