<tfoot id='695dT'></tfoot>
    • <bdo id='695dT'></bdo><ul id='695dT'></ul>
  • <legend id='695dT'><style id='695dT'><dir id='695dT'><q id='695dT'></q></dir></style></legend>

    <small id='695dT'></small><noframes id='695dT'>

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

        异常启动过滤器 struts2 无法加载配置.- 豆角,扁豆

        Exception starting filter struts2 Unable to load configuration. - bean(异常启动过滤器 struts2 无法加载配置.- 豆角,扁豆)
          <tfoot id='QPtlj'></tfoot>
            <bdo id='QPtlj'></bdo><ul id='QPtlj'></ul>
            <legend id='QPtlj'><style id='QPtlj'><dir id='QPtlj'><q id='QPtlj'></q></dir></style></legend>

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

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

                  <tbody id='QPtlj'></tbody>
                • 本文介绍了异常启动过滤器 struts2 无法加载配置.- 豆角,扁豆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  您好,我是 Struts 的新手,并试图在 struts 中向世界打招呼,但我遇到了错误.我正在尝试解决它但无法做到.错误信息是

                  Hi I am new in Struts and trying to hello world in struts but I got error. I am trying to fixed it out but unable to do. The error message is

                  EVERE: Exception starting filter struts2
                  Unable to load configuration. - bean - jar:file:/home/sudarshan/Desktop/RestFullTuts/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/struts2starter/WEB-INF/lib/struts2-portlet-plugin-2.3.28.jar!/struts-plugin.xml:31:133
                      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
                      at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
                      at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)
                      at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
                      at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
                      at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
                      at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
                      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
                      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
                      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
                      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
                      at java.lang.Thread.run(Thread.java:745)
                  Caused by: Unable to load configuration. - bean - jar:file:/home/sudarshan/Desktop/RestFullTuts/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/struts2starter/WEB-INF/lib/struts2-portlet-plugin-2.3.28.jar!/struts-plugin.xml:31:133
                      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
                      at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:970)
                      at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:438)
                      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:482)
                      ... 14 more
                  

                  我的 struts.xml 文件是

                  My struts.xml file is

                  <!DOCTYPE struts PUBLIC  
                  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"  
                  "http://struts.apache.org/dtds/struts-2.0.dtd">
                  <struts>
                  
                      <package name="default" extends="struts-default">
                  
                          <action name="getTutorial" class="com.sudarshan.action.TutorialAction">
                  
                              <result name="success">success.jsp</result>
                              <result name="failure">error.jsp</result>
                          </action>
                  
                  
                      </package>
                  </struts>
                  

                  Web.xml 是

                  <?xml version="1.0" encoding="UTF-8"?>
                  <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xmlns="http://xmlns.jcp.org/xml/ns/javaee"
                      xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
                      id="WebApp_ID" version="3.1">
                      <display-name>struts2starter</display-name>
                      <welcome-file-list>
                          <welcome-file>index.html</welcome-file>
                          <welcome-file>index.htm</welcome-file>
                          <welcome-file>index.jsp</welcome-file>
                          <welcome-file>default.html</welcome-file>
                          <welcome-file>default.htm</welcome-file>
                          <welcome-file>default.jsp</welcome-file>
                      </welcome-file-list>
                      <filter>
                          <filter-name>struts2</filter-name>
                          <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
                          </filter-class>
                      </filter>
                  
                      <filter-mapping>
                          <filter-name>struts2</filter-name>
                          <url-pattern>/*</url-pattern>
                      </filter-mapping>
                  </web-app>
                  

                  那么这段代码的解决方案是什么.

                  so what is the solution for this code.

                  推荐答案

                  从类路径中移除 struts2-portlet-plugin-2.3.28.jar.但是对于管理库的解决方案,您可以使用 Maven.

                  Remove struts2-portlet-plugin-2.3.28.jar from the classpath. But for the solution to manage libraries you can use Maven.

                  查看使用 Maven 构建的教程:使用 Maven 创建 Struts 2 Web 应用程序以管理工件并构建应用程序.

                  See the tutorial that is built with Maven: Create Struts 2 Web Application Using Maven To Manage Artifacts and To Build The Application.

                  使用下载的最小依赖项

                  <dependency>
                      <groupId>org.apache.struts</groupId>
                      <artifactId>struts2-core</artifactId>
                      <version>2.3.28</version>
                  </dependency>
                  

                  这篇关于异常启动过滤器 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 表达式)

                • <small id='okQgR'></small><noframes id='okQgR'>

                    <tbody id='okQgR'></tbody>
                  <legend id='okQgR'><style id='okQgR'><dir id='okQgR'><q id='okQgR'></q></dir></style></legend>
                    <bdo id='okQgR'></bdo><ul id='okQgR'></ul>

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

                      <tfoot id='okQgR'></tfoot>