Jeremy Stein - Brain

« »

There is no Action mapped for namespace and action name

I was puzzled why I was getting this error message from WebWork when I tried to access an action that I had defined:

There is no Action mapped for namespace /mynamespace and action name myactionname. Check if there is such an action name with such namespace defined in the xwork.xml and also if such an action class exists. Check also the log to see if the action class is successfully loaded. - [unknown location]
at com.opensymphony.xwork.DefaultActionProxy.(DefaultActionProxy.java:72)
at com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:46)
at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:216)
at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
...

It turned out that the action class name was mistyped.

I had gotten so used to ignoring stack traces from WebWork I didn’t notice that this one actually indicates the problem in that createActionProxy had failed.

May 31, 2012 No Comments.

No Comments

Be the first to comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?

« »