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

在使用struts编程时出现下例错误,总结网上解决方法,汇总如下

严重: Dispatcher initialization failed

Unable to load configuration.

报上面错误的原因有多种,得看后面提示是什么原因引起的,再动手解决。

*****************************************

情况一:

严重: Dispatcher initialization failed

Unable to load configuration. - action - file:/D:/Program%20Files/Tomcat7.0/webapps/sshtest1/WEB-INF/classes/struts.xml:8:83

......

......

Caused by: Action class [com.lib.action.Loginactionr] not found

上面说struts.xml第8行出现错误,看后面提示说是Action class找不到,

解决方法:查看struts.xml中的第8行代码,看看类的包或类名是否正确

***********************************************

情况二:

严重: Dispatcher initialization failed

Unable to load configuration. - bean - jar:file:/D:/apache-tomcat-6.0.29/webapps/myKj/WEB-INF/lib/struts2-spring-plugin-2.1.8.1.jar!/struts-plugin.xml:29:132

说明错误在struts-plugin.xml的第29行

解决方法:

这个是因为多加了struts2-spring-plugin-2.1.8.1.jar,这个包,没有用到spring的时候不要加。删掉

****************************************************

情况三:

严重: Dispatcher initialization failed

Unable to load configuration. - bean - jar:file:/C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/Struts2Demo01/WEB-INF/lib/struts2-core-2.1.8.jar!/struts-default.xml:47:178

解决方法:

除了

commons-logging-1.0.4.jar

freemarker-2.3.12.jar

ognl-2.6.11.jar

struts2-core-2.1.2.jar

xwork-2.1.1.jar

这五个核心LIB要复制外,

commons-io-1.3.2.jar

commons-fileupload-1.2.1.jar

这两个Jar文件也必须放到指定目录

时间: 2024-11-13 12:17:05

struts报错严重: Dispatcher initialization failed Unable to load configuration.的相关文章

tomcat启动异常(严重: Dispatcher initialization failed Unable to load configuration. - [unknown location] )

严重: Dispatcher initialization failed Unable to load configuration. - [unknown location] at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConf

启动hive报错[ERROR] Terminal initialization failed; falling back to unsupported

启动hive时报如下的错误[ERROR] Terminal initialization failed; falling back to unsupported 解决办法:进入到hadoop安装目录下的share/hadoop/yarn下删除 jline的jar文件.再启动hive即可 版权声明:本文为博主原创文章,未经博主允许不得转载.

hadoop启动后,jps命令后发现nodename启动失败,检查日志报错:FSNamesystem initialization failed

1. 基本信息 hadoop    版本 hadoop-0.20.205.0.tar.gz 操作系统   ubuntu 2. 问题 在使用Hadoop开发初期的时候遇到一个问题. 每次重启系统后发现不能正常运行hadoop.必须执行  bin/hadoop namenode -format  进行格式化才能成功运行hadoop,但是也就意味着以前记录的name等数据丢失. 查询日志发现错误: 21:08:48,103 INFO org.apache.hadoop.hdfs.server.name

Tomcat启动报错[org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed

Tomcat启动报错: [org.apache.struts2.dispatcher.Dispatcher]Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/SoftwareDevelopment/Software/Eclipse4.3/eclipse-jee-kepler-SR1-win32-x86_64/Workspace/.metadata/.plugins/org.ec

【SSH】Dispatcher initialization failed && Exception startingfilter struts2

下午在SSH引入页面过程中,代码照着视频敲完了,显示界面时候一直是这个样子: 然后在Console中查看错误信息如下: 严重: Dispatcher initialization failed Unable to load configuration. - action - file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%207.0/webapps/mystruts2_2/WEB-INF/classes/struts.

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

struts 报错 :Unable to load configuration. - action 的解决

初学Struts, 在idea里写Struts项目, 其实还是挺好操作的, 从官网下载min 的jar包, 然后在idea 里 新建Struts项目的时候 就可以选择用本地包来构建, ctrl shift alt s 配置项目的libraries, 等等在此不表 但是在启动tomcat的时候就遇到了很多莫名其妙的报错, 比如说报错, 找不到class, 感觉有点奇怪啊, 明明已经导入了jar 包了, 还是提示找不到包, 没办法, 只好包jar 包复制进lib 目录, 然后右键add as lib

启动tomcat后struts框架报异常严重: Exception starting filter struts2 Unable to load configuration. - Class: java.net.PlainSocketImpl

今天刚好宿舍断网,打开电脑,打开ide工具,启动tomcat后,访问web项目工程,页面显示404,查看控制台,运行报错信息如下: 严重: Exception starting filter struts2Unable to load configuration. - Class: java.net.PlainSocketImplFile: PlainSocketImpl.javaMethod: connectLine: 177 - java/net/PlainSocketImpl.java:1

启动tomcat后struts框架报异常严重: Exception starting filter struts2 Unable to load configuration.

启动tomcat后struts框架报异常严重: Exception starting filter struts2 Unable to load configuration. 出现此异常是因为,struts.xml定义的版本和 struts2-core-2.1.6.jar里面的struts-default.xml版本不一致!! struts-default.xml文件里面定义的<!DOCTYPE ...>如下: <!DOCTYPE struts PUBLIC "-//Apach