when running a Java EE project, the following error occurred:
Unable to load configuration. -bean-jar:file:/. /workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/worksystem/web-inf/lib/ struts2-core-2.3.16.3.jar!/struts-default.xml:64:179
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:501)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:74)
At Org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init ( STRUTSPREPAREANDEXECUTEFILTER.JAVA:57)
At Org.apache.catalina.core.ApplicationFilterConfig.initFilter (applicationfilterconfig.java:279)
At Org.apache.catalina.core.ApplicationFilterConfig.getFilter (applicationfilterconfig.java:260)
At Org.apache.catalina.core.applicationfilterconfig.<init> (applicationfilterconfig.java:105)
At Org.apache.catalina.core.StandardContext.filterStart (standardcontext.java:4828)
At Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5508)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1575)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1565)
At Java.util.concurrent.futuretask$sync.innerrun (Unknown Source)
At Java.util.concurrent.FutureTask.run (Unknown Source)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source)
At Java.util.concurrent.threadpoolexecutor$worker.run (Unknown Source)
At Java.lang.Thread.run (Unknown Source)
caused By:unable to load configuration. -bean-jar:file:/. /workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/worksystem/web-inf/lib/ struts2-core-2.3.16.3.jar!/struts-default.xml:64:179
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:70)
At Org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (dispatcher.java:445)
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:489)
... More
caused By:unable to load bean:type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:o rg.apache.struts2.dispatcher.multipart.jakartamultipartrequest-bean-jar:file:/. /workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/worksystem/web-inf/lib/ struts2-core-2.3.16.3.jar!/struts-default.xml:64:179
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:234)
At Com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (configurationmanager.java:67)
... More
caused By:java.lang.noclassdeffounderror:org/apache/commons/fileupload/requestcontext
At Java.lang.Class.getDeclaredConstructors0 (Native Method)
At Java.lang.Class.privateGetDeclaredConstructors (Unknown Source)
At Java.lang.Class.getDeclaredConstructors (Unknown Source)
At Com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register (xmlconfigurationprovider.java:235 )
... More
caused By:java.lang.ClassNotFoundException:org.apache.commons.fileupload.RequestContext
At Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1720)
At Org.apache.catalina.loader.WebappClassLoader.loadClass (webappclassloader.java:1571)
... More
There are typically only two reasons for this: first, the xwork version number is too low, and the second is that all struts2 required class libraries are not added, generally using struts2 to add Commons-fileupload-x.x.x.jar, Commons-io-x.x.x.jar,freemarker-x.x.x.jar,javassist-x.x.ga.jar, Struts2-core.x.x.x.jar and Xwork-core-x.x.x.jar, where x.x.x is the corresponding version number.
Check, found that their struts2-core.2.3.16.3.jar and Xwork-core-2.3.16.3.jar compatible, so is missing the cause of the jar package, after careful examination found that is missing Commons-fileupload-x.x.x.jar,commons-io-x.x.x.jar,freemarker-x.x.x.jar,javassist-x.x.ga.jar these class libraries.
Unable to load configuration. -Bean-jar:file:.. /.. /computerscience/javaee/workspace/.metadata Solutions