Currently I have the problem, that it seems that two of my plugins interfere with each other. If I activate one xwork module in the first plugin a second gets "disabled" and shows a error like that...
2015-07-06 16:43:25,188 ERROR [http-8443-exec-10] [atlassian.confluence.servlet.
ConfluenceServletDispatcher] serviceAction There is no Action mapped for namespace
/plugins/diaplugin and action name redirect
...when trying to access the action. If I disable and reenable the non-working-xwork module, all is ok for this module, but now the other module shows the error. I think there must be a problem in the xwork module definition...
plugin 1
<xwork key="de.DUMMYNAME.confluence.feedback.Actions">
<package name="actions" extends="default" namespace="/plugins/DUMMYNAME">
<default-interceptor-ref name="defaultStack" />
<action name="feedback" class="de.DUMMYNAME.confluence.feedback.Actions" method="feedback">
<result name="success" type="velocity">/Actions.vm</result>
<result name="html_result" type="velocity">/HtmlResult.vm</result>
</action>
</package>
</xwork>
plugin 2
<xwork name="actions" key="de.DUMMYNAME.confluence.plugins.actions">
<package name="actions" extends="default" namespace="/plugins/diaplugin">
<default-interceptor-ref name="defaultStack"/>
<action name="redirect" class="de.DUMMYNAME.confluence.plugins.actions" method="redirect">
<result name="success" type="redirect">${redirect}</result>
</action>
<action name="markasunread" class="de.DUMMYNAME.confluence.plugins.actions" method="markAsUnread">
<result name="success" type="velocity">/templates/actions.vm</result>
<result name="error" type="velocity">/templates/actions.vm</result>
</action>
</package>
</xwork>
Is it a problem that the package names are equal? In my optinion names are not used to identify things there are keys for?
P.S.: I know the page https://confluence.atlassian.com/x/9YCyEQ, it does not help.
Community moderators have prevented the ability to post new answers.
Hi,
surprisingly the package name needs to be unique, I changed it in the first (newer) plugin and the problem was solved.
<package name="de.DUMMYNAME.confluence.feedback.Actions" extends="default" namespace="/plugins/DUMMYNAME">
I think it's the package names. Try using different names for each package and see if it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.