<legend id='nxQ6W'><style id='nxQ6W'><dir id='nxQ6W'><q id='nxQ6W'></q></dir></style></legend>
    <i id='nxQ6W'><tr id='nxQ6W'><dt id='nxQ6W'><q id='nxQ6W'><span id='nxQ6W'><b id='nxQ6W'><form id='nxQ6W'><ins id='nxQ6W'></ins><ul id='nxQ6W'></ul><sub id='nxQ6W'></sub></form><legend id='nxQ6W'></legend><bdo id='nxQ6W'><pre id='nxQ6W'><center id='nxQ6W'></center></pre></bdo></b><th id='nxQ6W'></th></span></q></dt></tr></i><div id='nxQ6W'><tfoot id='nxQ6W'></tfoot><dl id='nxQ6W'><fieldset id='nxQ6W'></fieldset></dl></div>
      <bdo id='nxQ6W'></bdo><ul id='nxQ6W'></ul>

    <small id='nxQ6W'></small><noframes id='nxQ6W'>

    <tfoot id='nxQ6W'></tfoot>
    1. Struts2教程不起作用

      Struts2 tutorial doesn#39;t work(Struts2教程不起作用)
        <tbody id='izvCL'></tbody>

      <tfoot id='izvCL'></tfoot>

        1. <small id='izvCL'></small><noframes id='izvCL'>

          • <i id='izvCL'><tr id='izvCL'><dt id='izvCL'><q id='izvCL'><span id='izvCL'><b id='izvCL'><form id='izvCL'><ins id='izvCL'></ins><ul id='izvCL'></ul><sub id='izvCL'></sub></form><legend id='izvCL'></legend><bdo id='izvCL'><pre id='izvCL'><center id='izvCL'></center></pre></bdo></b><th id='izvCL'></th></span></q></dt></tr></i><div id='izvCL'><tfoot id='izvCL'></tfoot><dl id='izvCL'><fieldset id='izvCL'></fieldset></dl></div>
              <bdo id='izvCL'></bdo><ul id='izvCL'></ul>
              1. <legend id='izvCL'><style id='izvCL'><dir id='izvCL'><q id='izvCL'></q></dir></style></legend>
              2. 本文介绍了Struts2教程不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在学习struts2.我根据 tutorial 尝试我的 hello world 项目然后我在eclipse中运行代码.但它不起作用.控制台显示很多错误.第一个如下:

                 com.opensymphony.xwork2.util.logging.commons.CommonsLogger 错误严重:调度程序初始化失败无法加载配置.- bean - jar:file:/C:/Users/Administrator/Eclipse/workspace_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyStruts2/WEB-INF/lib/struts2-gxp-plugin-2.3.8.jar!/struts-plugin.xml:8:162在 com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)在 org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)在 org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)在 org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)在 org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)在 org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)在 org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)在 org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)在 org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)在 org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)在 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)在 org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)在 java.util.concurrent.FutureTask$Sync.innerRun(未知来源)在 java.util.concurrent.FutureTask.run(未知来源)在 java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)在 java.util.concurrent.ThreadPoolExecutor$Worker.run(未知来源)在 java.lang.Thread.run(未知来源)

                页面显示:HTTP 状态 404 -/MyStruts2/index.jsp输入状态报告

                消息/MyStruts2/index.jsp

                说明请求的资源不可用.

                这有什么问题.需要我进行更多配置吗?

                解决方案

                首先,删除所有未使用的 S2 插件p>

                S2 插件:

                1. 可能会从根本上改变 S2 功能,并且
                2. 有自己的依赖,如果不满足它们的依赖就会导致失败.

                其次,确保您正在部署所有必需的库.创建 Maven(或等效的)来管理这些依赖项,但对于绝对的准系统应用程序来说,这并不是绝对必要的.

                I'm learning struts2. And I try my hello world projects according to the tutorial Then I run the code in eclipse. But it doesn't work. The Console shows a lot of error. The first is as below:

                 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
                SEVERE: Dispatcher initialization failed
                Unable to load configuration. - bean - jar:file:/C:/Users/Administrator/Eclipse/workspace_2/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyStruts2/WEB-INF/lib/struts2-gxp-plugin-2.3.8.jar!/struts-plugin.xml:8:162
                    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
                    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
                    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:471)
                    at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:193)
                    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
                    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
                    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
                    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4656)
                    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5312)
                    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.runWorker(Unknown Source)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                    at java.lang.Thread.run(Unknown Source)
                

                And the pages shows : HTTP Status 404 - /MyStruts2/index.jsp type Status report

                message /MyStruts2/index.jsp

                description The requested resource is not available.

                What's wrong with it. Need I configure more?

                解决方案

                First, remove all unused S2 plugins If you're following a basic tutorial, you are almost certainly not using GXP.

                S2 plugins:

                1. May alter S2 functionality in fundamental ways, and
                2. Have their own dependencies that will cause failures if their dependencies are not met.

                Second, ensure you are deploying all required libraries. Maven (or the equivalent) was created to manage those dependencies, but for an absolute bare-bones app it's not strictly necessary.

                这篇关于Struts2教程不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Compiling C++ for the JVM(为 JVM 编译 C++)
                Compile to java bytecode (without using Java)(编译成java字节码(不使用Java))
                How to drive C#, C++ or Java compiler to compute 1+2+3+...+1000 at compile time?(如何在编译时驱动 C#、C++ 或 Java 编译器计算 1+2+3+...+1000?)
                Java ClassLoader: load same class twice(Java ClassLoader:两次加载相同的类)
                How to debug .class files in ECLIPSE?(如何在 ECLIPSE 中调试 .class 文件?)
                Java quot;The blank final field may not have been initializedquot; Anonymous Interface vs Lambda Expression(Java“可能尚未初始化空白的最终字段匿名接口与 Lambda 表达式)
                  <tbody id='LBjEY'></tbody>

                      <small id='LBjEY'></small><noframes id='LBjEY'>

                        <bdo id='LBjEY'></bdo><ul id='LBjEY'></ul>
                      • <tfoot id='LBjEY'></tfoot>

                      • <i id='LBjEY'><tr id='LBjEY'><dt id='LBjEY'><q id='LBjEY'><span id='LBjEY'><b id='LBjEY'><form id='LBjEY'><ins id='LBjEY'></ins><ul id='LBjEY'></ul><sub id='LBjEY'></sub></form><legend id='LBjEY'></legend><bdo id='LBjEY'><pre id='LBjEY'><center id='LBjEY'></center></pre></bdo></b><th id='LBjEY'></th></span></q></dt></tr></i><div id='LBjEY'><tfoot id='LBjEY'></tfoot><dl id='LBjEY'><fieldset id='LBjEY'></fieldset></dl></div>
                        <legend id='LBjEY'><style id='LBjEY'><dir id='LBjEY'><q id='LBjEY'></q></dir></style></legend>