首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

关于Unable to load configuration. 错误信息的分析

2012-09-07 
关于Unable to load configuration. 异常信息的分析最近在研究“struts2 in action” 这本书时,在实践书中的

关于Unable to load configuration. 异常信息的分析

最近在研究“struts2 in action” 这本书时,在实践书中的案例过程中,遇到了这样的异常信息:

Unable to load configuration. - action - file:/G:/jboss-4.2.3.GA/server/default/deploy/Struts2Action.war/WEB-INF/classes/struts.xml:42:67
?at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
?at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
?at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
?at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
?at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
?at org.apache.catalina.core.ApplicationFilte

?

弄好长时间才解决掉:

开发环境:Myeclipse7.0 JBoss4.2.3

开发中所应用到的struts2包:

commons-fileupload-1.2.1.jar

commons-io-1.3.2.jar

freemarker-2.3.16.jar

javassist-3.7.ga.jar

ognl-3.0.jar

struts2-core-2.2.1.1.jar

xwork-core-2.2.1.1.jar

?

解决方案:在struts.xml文件中,配置<action name="register" class="dcom.study.web.action.Register">中,class节点出错。

当然,如果各位在实际开发中,遇到这样的异常信息,也要参考网络上的其他方案。多方面,权衡考虑。

?

附struts2 开发的相关包

?

热点排行