在Atlassian Bamboo的XWwork行动

我在我的atlassian-plugin.xml中设置了webitem并定义了xwork操作。

但是当我试图调用这个将会渲染速度模板的动作时,Bamboo总是说,包和上下文路径的动作没有被定义,并且这个动作是不允许的。 请参阅下方的小堆栈跟踪和错误日志。

这是我为此定义的唯一行为,包名称是唯一的。

[INFO] [talledLocalContainer] 2018-02-01 18:42:35,210 ERROR [http-nio-6990-exec-7] [BambooStrutsUnknownHandler] There is no Action mapped for namespace [/plugins/secsign] and action name [ViewSecSignIDOptions] associated with context path [/bamboo].

[INFO] [talledLocalContainer] 2018-02-01 18:42:49,355 WARN [http-nio-6990-exec-7] [Dispatcher] Could not find action or result: /bamboo/plugins/secsign/ViewSecSignIDOptions!show.action

[INFO] [talledLocalContainer] Method show for action ViewSecSignIDOptions is not allowed! - [unknown location]

[INFO] [talledLocalContainer] at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200)

[INFO] [talledLocalContainer] at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63)

我在相应的类中使用setter注入,该类继承自com.atlassian.bamboo.ww2.BambooActionSupport,它继承自com.opensymphony.xwork2.ActionSupport

我目前正在运行Bamboo 6.0.0 build 60001.但是5.9.x和5.10.x中的错误是相同的

我的atlassian-plugin.xml中的定义如下所示:

<xwork name="secsign-id-options" key="secsign-id-options">
        <description key="secsign-id-options">SecSign ID Options</description>
        <package name="secsign-id-options" extends="default" namespace="/plugins/secsign">
            <default-interceptor-ref name="defaultStack" />
            <action name="ViewSecSignIDOptions!show" class="com.secsign.bamboo.actions.SecSignIDPluginManagementAction" method="doShow">
                <result name="success" type="velocity">/templates/secsignid-options-and-users-page.vm
                </result>
                <result name="input" type="velocity">/templates/secsignid-options-and-users-page.vm
                </result>
                <result name="error" type="velocity">/templates/secsignid-options-and-users-page.vm
                </result>
                <result name="options" type="velocity">/templates/secsignid-options-page.vm
                </result>
                <result name="users" type="velocity">/templates/secsignid-users-page.vm
                </result>
            </action>

        </package>
    </xwork>



<web-item key="secsign_id_menu" name="SecSign ID top navigation menu" i18n-name-key="secsign_id_menu.title"  section="header.global.primary" weight="40">
        <label key="secsignid.menu.label">SecSign ID</label>
        <link linkId="secsignid_options">/plugins/secsign/ViewSecSignIDOptions!show.action</link>
        <!--<condition class="com.atlassian.bamboo.plugins.web.conditions.AdministerPlanPermissionCondition"/>-->
        <description key="secsignid.menu.description">Options and user mappings for SecSign ID</description>
        <tooltip key="secsignid.menu.tooltip">Options and user mappings for SecSign ID</tooltip>
    </web-item>

干杯

泰特斯

链接地址: http://www.djcxy.com/p/87269.html

上一篇: XWwork Actions in Atlassian Bamboo

下一篇: signtool fails to sign installer when i am running from atlassian Bamboo