struts 常见异常(1)
2009-6-3 17:16:38 org.apache.catalina.core.StandardContext filterStart
严重:Exceptionstartingfilterstruts2
Unabletoloadconfiguration.-bean-jar:file:/D:/struts2/struts2/WebRoot/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
atorg.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
atorg.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
atorg.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)
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.start(ContainerBase.java:1045)
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:Unabletoloadbean:type:org.apache.struts2.dispatcher.multipart.MultiPartRequestclass:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest-bean-jar:file:/D:/struts2/struts2/WebRoot/WEB-INF/lib/struts2-core-2.1.6.jar!/struts-default.xml:46:178
atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:222)
atorg.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
atcom.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:165)
atcom.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
...21more
Causedby:java.lang.NoClassDefFoundError:org/apache/commons/fileupload/FileUploadException
atjava.lang.Class.getDeclaredConstructors0(NativeMethod)
atjava.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
atjava.lang.Class.getDeclaredConstructors(Class.java:1808)
atcom.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:212)
...24more
2009-6-317:16:39org.apache.catalina.core.StandardContextstart
严重:ErrorfilterStart
2009-6-317:16:39org.apache.catalina.core.StandardContextstart
严重:Context[/struts2]startupfailedduetopreviouserrors
2009-6-317:16:40org.apache.catalina.core.ApplicationContextlog
信息:ContextListener:contextInitialized()
信息显示如上,解决方法:
少jar包,需要
commons-logging-1.0.4.jar
freemarker-2.3.8.jar
ognl-2.6.11.jar
struts2-core-2.0.11.jar
xwork-2.0.4.jar
commons-io-1.3.2.jar
commons-fileupload-1.2.1.jar