[
http://www.stripesframework.org/jira/browse/STS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter closed STS-96.
-------------------------
> Cannot specify a overridden property binder without an overridden action
> resolver using RuntimeConfig
> -----------------------------------------------------------------------------------------------------
>
> Key: STS-96
> URL: http://www.stripesframework.org/jira/browse/STS-96
> Project: Stripes
> Issue Type: Bug
> Components: ActionBean Dispatching
> Affects Versions: Release 1.0, Release 1.0.1, Release 1.0.2, Release 1.1
> Reporter: Tim Fennell
> Assignee: Tim Fennell
> Fix For: Release 1.1.1
>
>
> Email from Andre Matheus:
> I was playing with the Runtime Configuration, setting my own
> ActionBeanPropertyBinder.Class, like this:
> <init-param>
> <param-name>ActionBeanPropertyBinder.Class</param-name>
> <param-value>base.MyOgnlActionBeanPropertyBinder</param-value>
> </init-param>
> And base.MyOgnlActionBeanPropertyBinder is simple like this:
> public class MyOgnlActionBeanPropertyBinder extends
> OgnlActionBeanPropertyBinder {
> /** Creates a new instance of MyOgnlActionBeanPropertyBinder */
> public MyOgnlActionBeanPropertyBinder() {
> super();
> System.out.println("MyOgnlActionBeanPropertyBinder");
> }
> }
> But it was killing my Tomcat, I mean, the tomcat was not able to start...
> after that I started looking at the code of RuntimeConfiguration,
> pretty clear and well commented, as the rest of the framework, but
> there was no clue on why it would fail. and then I started to follow
> the startup process and discovered that I can not set an
> ActionBeanPropertyBinder.Class without setting an
> ActionResolver.Class, as the property binder needs the action resolver
> to be loaded in order to have the init method executed.
> Then I added also the ActionResolver.Class default to the web.xml, like this
> <init-param>
> <param-name>ActionResolver.Class</param-name>
>
> <param-value>net.sourceforge.stripes.controller.AnnotatedClassActionResolver</param-value>
> </init-param>
> After that it worked fine, with the MyOgnlActionBeanPropertyBinder.
> It is not a big deal, as I can add the same value as the default in
> the web.xml, but as it is already the default value, it is a little
> bit difficult to understand. May be some sort of exception with a
> clear, stripes like, message description would help...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development