Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

WebworkConfigurationNotFoundException: Need help with adding a new action

Krishna May 22, 2013

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

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 22, 2013

Hi,

replace alias in <action name="com.test.actions.TestAction" alias="TestAction"> with MyAction

or in the url replace MyAction with TestAction

Krishna May 23, 2013

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

AndrewB January 13, 2016

Awesome!

0 votes
Krishna May 23, 2013

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!

TAGS
AUG Leaders

Atlassian Community Events