I haven't been following this thread so if my answer doesn't help... sorry.
I have configured a default Action setup to catch all unknown actions. The default-action-ref tag [1] sets the action to use when the requested action isn't found. <default-action-ref name="Unknown" /> <action name="Unknown" class="com.nexmobile.server.struts.UnknownAction"> <interceptor-ref name="unknownActionStack" /> <result type="redirectAction">Login</result> </action> I use a restricted interceptor stack since all I'm going to do is log it and redirect to the login action. <interceptor-stack name="unknownActionStack"> <interceptor-ref name="log" /> <interceptor-ref name="servletConfig" /> </interceptor-stack> Your other option would be to configure a wildcard default [2] <action name="*"> <result>/Unknown.jsp</result> </action> [1] http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-ActionDefault [2] http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardDefault On Fri, Nov 13, 2009 at 5:51 AM, RogerV <roger.var...@googlemail.com> wrote: > > > > Brian Thompson-5 wrote: > > > > I can only speculate, but it seems logical that the > ClassNotFoundException > > is being thrown from outside the purview of Struts, in Tomcat's > > ClassLoaders > > - thus the Struts exception mapping never enters into it. > > > > Theres definitely something odd going on. With global mappings disabled and > devmode set to true, entering an invalid action into the browser gives the > Struts formatted "No Action Mapped" exception (it's not > ClassNotFoundException"). With global mappings and devmode set to false, > entering an invalid action give the Tomcat 404 page with the no Action > Mapped message. With global mappings set to catch java.lang.exception and > devmode set to false, Struts seems to catch every exception thrown except > when an invalid action is keyed into the browser. > > The fact that both the error message texts talk about "No Action Mapped" > must surely mean that the error is being caught by Struts as Action Mapping > is a Struts concept, not a Tomcat concept. I would have thought that > catching in Invalid Action was one of the messages you would most want to > catch to stop unfriendly users "experimenting" with your application! > > Regards > > -- > View this message in context: > http://old.nabble.com/Re%3A-Catching%3A-Unable-to-instantiate-Action-tp26303352p26334735.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >