struts配置文件 报错

发布于 2021-11-22 00:31:41 字数 9004 浏览 515 评论 4

倒入项目到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.<init>(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.<init>(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] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1bc1fb9]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1c6e818]) 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] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1afb0c7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@17f1841]) 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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

眼眸 2021-11-26 15:43:03

参加翻译啊 :)

反目相谮 2021-11-26 09:01:09

回复
嗯,原文章都是哪里找的...

绝影如岚 2021-11-25 08:43:05

回复
奥 我知道了

累赘 2021-11-25 01:21:04

Action class [com.tarena.web.action.user.RegistValiAction] not found

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文