原本在 WebSphere 跑得好好的程式,怎麼換到 Tomcat 又出問題了?
2014/2/23 下午 09:30:16 org.apache.catalina.core.StandardContext filterStart
嚴重的: Exception starting filter struts2
Unable to load configuration. - bean - jar:file:/D:/WebServer/tomcat-7.0.33/webapps/1qrcardadm/WEB-INF/lib/struts2-core-2.3.15.1.jar!/struts-default.xml:53:178
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:502)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
... 19 more
Caused by: Unable to load configuration. - bean - jar:file:/D:/WebServer/tomcat-7.0.33/webapps/1qrcardadm/WEB-INF/lib/struts2-core-2.3.15.1.jar!/struts-default.xml:53:178
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:446)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:490)
... 20 more
Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - bean - jar:file:/D:/WebServer/tomcat-7.0.33/webapps/1qrcardadm/WEB-INF/lib/struts2-core-2.3.15.1.jar!/struts-default.xml:53:178
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:226)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
... 22 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUploadBase$SizeLimitExceededException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getDeclaredConstructors(Class.java:1836)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:235)
... 25 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
... 29 more


最後從 Caused by: java.lang.NoClassDefFoundError: org/apache/commons/fileupload 看出個大概,將 commons-fileupload-1.3.jar 丟到 lib 去,問題解決。

mark528 發表在 痞客邦 PIXNET 留言(0) 人氣()