Hi Vincent,

Thanks for posting your findings.
>From what I understand, what was probably a bug (feature?) was to
accept "com.mypackage.*" in 1.4.x. The documentation states to configure
package /fragments/, so com.mypackage automatically includes all subpackages.

http://www.stripesframework.org/display/stripes/Configuration+Reference#ConfigurationReference-ActionResolverProperties

Now, ActionResolver.Packages is now required in 1.5, but works the same way,
i.e. a package implies all subpackages, so you specify "com.mypackage".
Perhaps a warning or exception should be logged if you configure
"com.mypackage.*" so that you know right away that it's not valid.
There was a similar "bug" logged not a long time ago - basically giving
a clearer error message when something isn't configured properly - so this
probably falls in the same category of "bug" (I wouldn't call it a bug,
but it's certainly valid to add these things to make debugging easier,
probably after 1.5 has been released.)

Cheers,
Freddy

- 
- 
- OK guys, I found the problem.
- 
- Turns out that the problem is actually to do with resolving actionBeans on
- start up.  Seems that 1.5 doesn't like a '*' in the package filtering config
- - it finds no actionBeans if it's int there in my config.
- 
- To be more specific:
- 
- In my stripes 1.4X config I had the filter packages defined as:
- 
- <init-param>
-   <param-name>ActionResolver.PackageFilters</param-name>
-   <param-value>com.mypackage.*</param-value>
- </init-param>
- 
- So when I upgraded to 1.5 I followed the upgrade guide and changed that to:
- 
- <init-param>
-   <param-name>ActionResolver.Packages</param-name>
-   <param-value>com.mypackage.*</param-value>
- </init-param>
- 
- Now - although the param value is the same the ResolverUtil.find method no
- longer discovers any actionBeans on startup.  
- 
- BUT - this works:
- 
- <init-param>
-   <param-name>ActionResolver.Packages</param-name>
-   <param-value>com.mypackage</param-value>
- </init-param>
- 
- So - It's either a bug or the upgrade guide needs updating to tell people
- not to use '*' char anymore.
- 



-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to