【问题标题】:Struts2 action not getting resolved inside osgi bundleStruts2 动作在 osgi 包中没有得到解决
【发布时间】:2012-07-26 12:59:17
【问题描述】:

我正在使用 struts2osgi 包并尝试将 osgi 容器嵌入到我的 Web 容器中。我已将我的操作部署在一个包中。在动作包中,我放置了动作类、struts.xml、Spring xml 文件和清单文件,其结构如下:

|-bundle
    |-com
       |-HelloAction.class
    |-struts.xml
    |-META-INF
       |-MANIFEST.MF
       |-spring
         |-spring.xml

现在,当我尝试通过将此捆绑包放在 Web 应用程序中来部署 Web 应用程序时,它给了我错误“无法加载 HelloAction”。但它存在于同一个包中。我不知道为什么这会出错。

【问题讨论】:

    标签: struts2 osgi bundle


    【解决方案1】:

    您可能需要导出包,因为 spring dm 或 struts2osgi 包需要保留它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-07
      • 1970-01-01
      • 2020-10-14
      • 2013-09-30
      • 2019-07-18
      • 2011-01-14
      • 2022-01-16
      • 1970-01-01
      相关资源
      最近更新 更多