• <tfoot id='2a6md'></tfoot>
  • <small id='2a6md'></small><noframes id='2a6md'>

        <legend id='2a6md'><style id='2a6md'><dir id='2a6md'><q id='2a6md'></q></dir></style></legend>

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

        无法加载 bean:类型:org.apache.struts2.views.gxp.inject.InjectedObj

        时间:2023-09-25
      1. <legend id='JIUeY'><style id='JIUeY'><dir id='JIUeY'><q id='JIUeY'></q></dir></style></legend>
            <bdo id='JIUeY'></bdo><ul id='JIUeY'></ul>

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

          • <tfoot id='JIUeY'></tfoot>
          • <small id='JIUeY'></small><noframes id='JIUeY'>

              <tbody id='JIUeY'></tbody>

                • 本文介绍了无法加载 bean:类型:org.apache.struts2.views.gxp.inject.InjectedObjectContainer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 Eclipse 中运行 Struts2 应用程序,但在 Apache Tomcat 服务器中运行时显示错误,我得到的错误是

                  I am running the Struts2 application in eclipse but it is displaying the error while running in the Apache Tomcat server the error I am getting is

                      SEVERE: Dispatcher initialization failed
                  Unable to load configuration. - bean - jar:file:/C:/projectdetails/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FieldError/WEB-INF/lib/struts2-gxp-plugin-2.3.16.3.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:445)
                      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
                      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:4828)
                      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
                      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
                      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
                      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)
                  Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/C:/projectdetails/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FieldError/WEB-INF/lib/struts2-gxp-plugin-2.3.16.3.jar!/struts-plugin.xml:8:162
                      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
                      at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
                      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)
                      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
                      ... 16 more
                  Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
                      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
                      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
                      at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
                      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
                      ... 19 more
                  
                  Aug 29, 2014 11:47:17 AM org.apache.catalina.core.StandardContext filterStart
                  SEVERE: Exception starting filter struts2
                  Unable to load configuration. - bean - jar:file:/C:/projectdetails/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FieldError/WEB-INF/lib/struts2-gxp-plugin-2.3.16.3.jar!/struts-plugin.xml:8:162
                      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:501)
                      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:4828)
                      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5508)
                      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
                      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
                      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)
                  Caused by: Unable to load configuration. - bean - jar:file:/C:/projectdetails/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FieldError/WEB-INF/lib/struts2-gxp-plugin-2.3.16.3.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:445)
                      at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)
                      ... 14 more
                  Caused by: Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apache.struts2.views.gxp.inject.InjectedObjectContainer - bean - jar:file:/C:/projectdetails/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/FieldError/WEB-INF/lib/struts2-gxp-plugin-2.3.16.3.jar!/struts-plugin.xml:8:162
                      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:245)
                      at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
                      at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:234)
                      at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
                      ... 16 more
                  Caused by: java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer
                      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
                      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
                      at com.opensymphony.xwork2.util.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:152)
                      at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216)
                      ... 19 more
                  

                  我将所有 jar 文件保存在 eclipse 的 lib 文件夹中,即使当我尝试运行基本应用程序时出现上述错误?

                  I kept all the jar files in the lib folder in eclipse even though when I am trying to run the basic application it is getting the above error?

                  推荐答案

                  该错误是由应用程序部署的 GXP 插件引起的,如果您没有使用 GXP,请将其从类路径中删除.引用的类是 org.apache.struts2.views.gxp.inject.InjectedObjectContainer 在分发中不存在.您可能需要其他库来满足依赖关系才能正确使用此插件.当然是 google-gxp,你可以在 maven 仓库.

                  The error is caused by GXP plugin deployed with the application, if you are not using GXPs then remove it from classpath. The referenced class is org.apache.struts2.views.gxp.inject.InjectedObjectContainer absent in the distribution. You might need additional libraries to satisfy dependency to use this plugin correctly. Certainly it is google-gxp, you can look up required libraries in the maven repository.

                  这篇关于无法加载 bean:类型:org.apache.struts2.views.gxp.inject.InjectedObjectContainer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:Struts 2 表单标签中的多个提交按钮 下一篇:Struts 2 #{} 在 Netbeans 7.3 中给出编译错误

                  相关文章

                • <tfoot id='PoTEl'></tfoot>

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

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