Unable to load configuration. - bean - jar:file:../../ComputerScience/JavaEE/workspace/.metadata解决办法

在运行一个JavaEE的项目时,出现了如下的错误:

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)

... 15 more

Caused by: Unable to load bean: type:org.apache.struts2.dispatcher.multipart.MultiPartRequest class:org.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)

... 17 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)

... 20 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)

... 24 more

出现这种情况的原因一般只有两个:第一,xwork的版本号太低;第二,未将所有的struts2必需的类库添加进去,一般来说使用struts2需要添加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和xwork-core-x.x.x.jar,其中x.x.x为相应的版本号。

检查了一下,发现自己的struts2-core.2.3.16.3.jar与xwork-core-2.3.16.3.jar兼容,所以是缺少jar包的原因,仔细检查后发现是缺少了   commons-fileupload-x.x.x.jar,commons-io-x.x.x.jar,freemarker-x.x.x.jar,javassist-x.x.ga.jar这几个类库。

时间: 2024-08-02 06:58:59

Unable to load configuration. - bean - jar:file:../../ComputerScience/JavaEE/workspace/.metadata解决办法的相关文章

Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-8.0.30/web

问题描述: Unable to load configuration. - bean - jar:file:/F:/Web/homesite/jsp/struts/WEB-INF/lib/struts2-convention-plugin-2.1.6.jar!/struts-plugin.xml:30:119 jar包冲突问题 myeclipse中lib下的jar包冲突 tomcat中lib下的jir包冲突 3.缺少必须的包,

【j2ee spring】25、Unable to load configuration. - bean - jar:file:

配置SSH的时候出错 Unable to load configuration. - bean - jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/testjson/WEB-INF/lib/struts2-core-2.1.8.1.jar!/struts-default.xml:53:89 对于刚刚开始配置struts2的新手们来说,可能会遇到的这些问题,当初我也遇到这种问题,网上搜

Unable to load performance pack. Using Java I/O instead的解决办法?

启动的时候报下面的错误: <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'D:\Weblogic\jdk_64\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\Weblogic\patch_wls1033\profiles\default\n

struts2 jar包导入Unable to load configuration. - bean问题 (404 源服务器未能找到目标资源的表示或者是不愿公开一个已经存在的资源表示。)

用eclipse配置好了struts2,一运行tomcat就报错,我这里原因是我吧struts2的jar包都放进去了,太多了所以报错,然后我去掉了大部分留下几个核心jar包,还是报错, java.lang.NoClassDefFoundError: com/opensymphony/xwork2/ActionContext at org.apache.struts2.dispatcher.ng.InitOperations.cleanup(InitOperations.java:114) at

struts报错严重: Dispatcher initialization failed Unable to load configuration.

在使用struts编程时出现下例错误,总结网上解决方法,汇总如下 严重: Dispatcher initialization failed Unable to load configuration. 报上面错误的原因有多种,得看后面提示是什么原因引起的,再动手解决. ***************************************** 情况一: 严重: Dispatcher initialization failed Unable to load configuration. -

Caused by: Unable to load configuration. - action - file:/C:/apache-tomcat-7.0.70/webapps/Structs/WEB-INF/classes/struts.xml:7:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfigurati

Unable to load configuration. - action - file:/C:/apache-tomcat-7.0.70/webapps/Structs/WEB-INF/classes/struts.xml:7:72 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431) at org.apache.struts2.dispatcher.ng.InitOperations.initDispat

idea整合struts和spring和hibernate时候的导jar错误:Unable to load configuration. - action -

org.apache.struts2.dispatcher.Dispatcher.error Dispatcher initialization failed Unable to load configuration. - action - file:/F:/Documents/MyJava/SSH001/out/artifacts/SSH001_war_exploded/WEB-INF/classes/struts.xml:11:66 Caused by: Action class [empl

出现错误:Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43

严重: Exception starting filter struts2 Unable to load configuration. - action - file:/E:/Java/Tomcat7.0/apache-tomcat-7.0.68-windows-x64/apache-tomcat-7.0.68/webapps/SSH2Integrate/WEB-INF/classes/struts.xml:8:43 at org.apache.struts2.dispatcher.Dispat

Unable to load configuration. - action - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/Teacher04/WEB-INF/classes/struts.xml:9:54

发布一个struts2项目的时候tomcat显示下面这个错误,我的本能感觉就是我的struts.xml或者web.xml写错了,可是我字母找都没发现,于是百度一番,可是我对那些人的回答表示怀疑,感觉应该不行,直到我一直找下去,发现一个不起眼的回答说出了我需要的回答 我回来一看,发现我的错误里的确有这个struts.xml:9:54,于是看一下我的struts.xml,我要哭了 严重: Exception starting filter struts2 Unable to load configu