struts2-struts配置文件 全部报错

问题描述

struts配置文件 全部报错

倒入项目到eclipse里以后 出现了 红色 大叹号 ?后来在java build path里发现 jre的问题 ,从新添加libary以后还是有叹号 可是运行项目 以后 发现 能够显示页面 可是 页面的主显示区域的东西没有 ?strus配置文件 全部也都报错了
严重: Dispatcher initialization failed
Unable to load configuration. - action - file:/D:/workspace_YFB_1016/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dangdangD/WEB-INF/classes/config/struts/struts-user.xml:58:81
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
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.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Action class [com.tarena.web.action.user.RegistValiAction] not found - action - file:/D:/workspace_YFB_1016/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dangdangD/WEB-INF/classes/config/struts/struts-user.xml:58:81
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:409)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:354)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 18 more
2013-12-18 15:52:21 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts
Unable to load configuration. - action - file:/D:/workspace_YFB_1016/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dangdangD/WEB-INF/classes/config/struts/struts-user.xml:58:81
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
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.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:277)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:258)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:382)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:103)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4650)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5306)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: Unable to load configuration. - action - file:/D:/workspace_YFB_1016/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dangdangD/WEB-INF/classes/config/struts/struts-user.xml:58:81
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
... 16 more
Caused by: Action class [com.tarena.web.action.user.RegistValiAction] not found - action - file:/D:/workspace_YFB_1016/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dangdangD/WEB-INF/classes/config/struts/struts-user.xml:58:81
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:409)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:354)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:468)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:264)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:193)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
... 18 more
2013-12-18 15:52:21 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
2013-12-18 15:52:21 org.apache.catalina.core.StandardContext startInternal
严重: Context [/dangdang] startup failed due to previous errors
2013-12-18 15:52:21 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/dangdang] created a ThreadLocal with key of type com.opensymphony.xwork2.inject.ContainerImpl$10 and a value of type java.lang.Object[] but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2013-12-18 15:52:21 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/dangdang] created a ThreadLocal with key of type com.opensymphony.xwork2.inject.ContainerImpl$10 and a value of type java.lang.Object[] but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2013-12-18 15:52:21 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
2013-12-18 15:52:21 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
2013-12-18 15:52:21 org.apache.catalina.startup.Catalina start
信息: Server startup in 763 ms

解决方案

新导入项目之后 要是报错,证明你没有所需要的jar包。你可以在Buide Path 路径 看下 那个jar包 报错了
想清楚了再做。

时间: 2024-10-19 15:25:16

struts2-struts配置文件 全部报错的相关文章

spring aop 配置文件提示报错,但程序能正常运行

问题描述 spring aop 配置文件提示报错,但程序能正常运行 spring aop 配置的时候报错导入的jar包如下: 程序运行没有问题,但是这个报错总是存在,找了很多资料,始终没有解决,求大神赐教! 解决方案 未导入spring对应的DTD标签库

struts2.0-struts2配置启动报错

问题描述 struts2配置启动报错 按照 视频导入了 struts2基础jar包:根据报错提示最终放了8个jar包 启动的时候myEclipse控制台报错: 2015-9-14 14:19:42 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2015-9-14 14:19:42 org.apache.catalina.core.StandardContext start 严重: Context star

android studio-为什么在studio集成mob分享sdk,配置文件就报错

问题描述 为什么在studio集成mob分享sdk,配置文件就报错 为什么在在studio集成mob分享sdk,配置文件就报错,刚开始以为文件覆盖错误,后来导入一个eclipse运行好的也报错 解决方案 Dubbo配置文件报错

android-Android : phonegap 配置文件一直报错,不知道什么情况 (1C别嫌少,全部家产了)

问题描述 Android : phonegap 配置文件一直报错,不知道什么情况 (1C别嫌少,全部家产了) 解决方案 动态请求权限应该是6.0的吧,你的项目依赖5.0,把项目android版本提高到6.0,并且manifest也对应修改,就应该有这个方法了.考虑兼容低版本手机的话不要使用这个版本的cordova吧 解决方案二: 哦这里做了版本兼容,你的android关联6.0就好 解决方案三: android:targetSdkVersion="23"

漏洞-升级struts2 2.3.16 报错 BeanCreationException

问题描述 升级struts2 2.3.16 报错 BeanCreationException org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'treeMenuDao' defined in ServletContext resource [/WEB-INF/dataAccessContext-local.xml]: Instantiation of bean faile

Windows 7登录时出现“您已使用临时配置文件登录” 报错信息问题分析

Windows 7登录时出现"您已使用临时配置文件登录" 报错,如下所示:   原因分析: 出现上述提示是用户配置文件损坏导致无法登录到之前的账户,产生损坏的原因可能有杀毒软件误杀.第三方软件设置有误等原因.这个时候系统会生成一个临时的账户,我们对该账户的任何设置以及保存的文件,在重启之后都会失效.所以请不要在该账户中保存文件.通常情况该问题在我们重新启动计算机之后会解决,如果重启多次都是同样的结果,那么很有可能是之前使用的账户已经损坏,导致无法修复. 解决方案: 一.新建管理账号解决

struts 2-Struts2始终报错,请各位大神讲解

问题描述 Struts2始终报错,请各位大神讲解 刚刚开始学习Struts2,配置正确但是始终不能运行.错误信息:Unable to load configuration. - action - file:/E:/workplace/j2eeworkplace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ActionContext/WEB-INF/classes/struts.xml:10:67 at com.op

struts2 的标签老是报错The requested resource () is not available.

问题描述 我的struts.xml如下:<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstrutsPUBLIC"-//ApacheSoftwareFoundation//DTDStrutsConfiguration2.0//EN""http://struts.apache.org/dtds/struts-2.0.dtd"><struts><c

struts2 0-java poi getInpuStream报错

问题描述 java poi getInpuStream报错 是这样的,我写了重载了两个getInputStream方法,当调用不带参数的方法时,运行正常,当调用带参的方法则报 Can not find a java.io.InputStream with the name [inputStream] in the invocation stack的错误 代码如下: Struts2配置: <action name="ajaxUserDataExportAction" class=&