Dispatcher initialization failed. java.lang.ClassNotFoundException: org.apache.struts2.views.gxp.inject.InjectedObjectContainer

后端 未结 2 1247
失恋的感觉
失恋的感觉 2020-12-02 01:23

I\'m using Struts 2.3.14.2 jars, but when I created the simple application, I\'m getting the following error/exception. I almost did everything perfectly. I added almost all

相关标签:
2条回答
  • 2020-12-02 01:53

    If you are not using GXP plugin, then remove it from classpath. The referenced class is org.apache.struts2.views.gxp.inject.InjectedObjectContainer absent in the distribution. But you could download it from the SVN repositories if required.

    0 讨论(0)
  • 2020-12-02 02:11

    You must not use plugin libraries unless:

    1. They're actually needed; some change S2 behavior in fundamental ways.
    2. Their dependencies are satisfied; some plugins require additional libraries.
    3. Their version matches the S2 core libraries versions; mixing-and-matching versions may fail.

    Using Maven or equivalent solves version and dependency issues.

    Using only the plugins your app needs solves the others.

    0 讨论(0)
提交回复
热议问题