I am getting the below error for a new action I am trying to add. I verified that the java file is in the right place 'src/main/java/com/test/actions/TestAction.java'
Can Someone help with the possible places I should double check to get this resolved?
------------------------------------------------------------------------------------------------------------
http-2990-1 ERROR anonymous 1169x1x1 - 0:0:0:0:0:0:0:1%0 /secure/MyAction.jspa [jira.web.dispatcher.JiraWebworkActionDispatcher] Exception thrown from action 'MyAction', returning 404
[INFO] [talledLocalContainer] WebworkConfigurationNotFoundException{class=class webwork.config.XMLActionConfiguration, message='No such view mapping', name='MyAction.actionInfo'}
------------------------------------------------------------------------------------------------------------
Webwork config:
<webwork1 key="TestAction" name="Test Action" class="java.lang.Object">
<actions>
<action name="com.test.actions.TestAction" alias="TestAction">
<view name="success">/templates/com/test/success.vm</view>
<view name="error">/templates/com/test/error.vm</view>
<view name="input">/templates/com/test/input.vm</view>
</action>
</actions>
</webwork1>
Thanks,
Krishna
Community moderators have prevented the ability to post new answers.
Hi,
replace alias in <action name="com.test.actions.TestAction" alias="TestAction"> with MyAction
or in the url replace MyAction with TestAction
Hi,
Thanks for the reply. My bad, Mixed up the text here. It was indeed 'TestAction', in all the places, no 'MyAction'. Any other ideas? Is there a way to make-sure/double-check that the TestAction.java file is looked up in 'src/main/java/com/test/actions/'?
Thanks,
Krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Figured it. The application wasn't for some reason loading all the modules(some of them were being loaded) when I (re)started the server ('atlas-run').
'atlas-package'ing and uploading the plugin helped.
Thanks!
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.