• <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

        Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer(无法加载 bean:类型:org.apache.struts2.views.gxp.inject.InjectedObjectContainer)
      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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Java Bytecode Manipulation Library Suggestions(Java 字节码操作库建议)
                  Java CLI UI-design: frameworks or libraries?(Java CLI UI 设计:框架还是库?)
                  About the use of Beans.xml configuration file in Spring Framework application(关于Spring Framework应用中Beans.xml配置文件的使用)
                  What is the difference between Spring, Struts, Hibernate, JavaServer Faces, Tapestry?(Spring、Struts、Hibernate、JavaServer Faces、Tapestry 有什么区别?)
                  Are there any android application framework like spring?(有没有像spring这样的android应用程序框架?)
                  Java Swing based game framework. Any advice?(基于 Java Swing 的游戏框架.有什么建议吗?)

                • <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>
                        <legend id='PoTEl'><style id='PoTEl'><dir id='PoTEl'><q id='PoTEl'></q></dir></style></legend>

                            <tbody id='PoTEl'></tbody>
                          • <small id='PoTEl'></small><noframes id='PoTEl'>