最近在研究“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 开发的相关包
分享到:
相关推荐
部署struts web项目到Tomcat,出错Unable to load configuration. - action,部署另外的web项目依然出错,甚至错误中的提示还是上一个项目名,愕然!!不过解决了
这种异常通常表现为在操作SVN项目时,系统弹出错误提示"Failed to load JavaHL Library"或"Unable to load default SVN Client",导致所有SVN命令无法正常使用。为了解决这个问题,我们可以按照以下步骤进行处理: ...
Unable to load configuration. - [unknown location] ``` 该错误提示通常伴随着一系列的堆栈跟踪信息,指向了问题的具体原因。例如,在提供的部分内容中可以看到以下堆栈跟踪: ``` Caused by: Unable to load ...
* Unable to load configuration. - bean -jar:file:/D:/Tomcat/tomcat/apache-tomcat-6.0.30/webapps/test + 解决方案:检查配置文件的加载过程,是否存在语法错误或格式不正确的问题,尝试使用配置文件的调试工具...
will need to be sent to Microsoft as per the normal process. However, a log entry will be added to the normal BurnInTest log. - Changes to trace logging to reduce activity when trace logging is not...
DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.5//EN" "http://struts.apache.org/dtds/struts-2.5.dtd"> <constant name="struts.enable.DynamicMethodInvocation" value=...
如果出现如`Unable to load configuration.`之类的错误,通常是由于某些JAR包存在问题或版本不兼容导致的。解决方法之一是检查并确保所有库版本兼容,并且正确地配置了项目路径。 3. **配置Struts2 Filter**:接...
Unable to load configuration: -bean-jar: file path...** - **异常描述**:无法加载配置文件。 - **原因分析**:Struts2无法找到指定的配置文件。 - **解决方案**: - 检查配置文件的路径是否正确。 - 确保...
- ADD: Add TFlexPanel.InvalidateControl virtual method which calls from TFlexControl.Invalidate and can be overriden (it is possible now to catch all object invalidation calls). - FIX: The TFlexPanel....
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52...
1)....Added "ECC32TradeSpeedForMemory" option - defaults to 0/False, could be changed to 1 via Custom/Manual tab. This option will switch from fast-methods to slower methods, but which take less ...
# configuration written to /home/wwt/linux_r16/lichee/out/sun8iw5p1/linux/common/buildroot/.config # make:离开目录“/home/wwt/linux_r16/lichee/buildroot” make:进入目录'/home/wwt/linux_r16/lichee/...
to the User's Guide and Reference. For information about using applications with MS-DOS 5.0, see the APPNOTE.TXT file. 2. SOLVING SETUP PROBLEMS ========================= 2.1 Priam and Everex ...
- The field "Default Gateway" has been added to the NetLink's configuration property page - The string write from the OPC Server sometimes failed . This bug has been fixed - After driver uninstall...
unable to process your letter. 4. If you have an urgent problem that cannot wait and you have sent in the license agreement from the front of your manual, you may call the Borland Technical ...
5. **Struts配置错误**: "Unable to load configuration"表示Struts配置文件存在问题,检查类、包、JSP页面的路径是否正确。 6. **SQL语句错误**: "Position beyond number of declared ordinal parameters"提示SQL...
首先,`WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform...` 这个警告意味着Hadoop无法加载本地库。这可能是因为缺少对应操作系统的Hadoop本地库,或者是环境变量没有正确设置...
unable to process your letter. 4. If you have an urgent problem that cannot wait and you have sent in the license agreement from the front of your manual, you may call the Borland Technical ...