PlugIns and Struts Nightly Build
I had a nice frustrating evening tonight trying to get the nightly build of Struts to work with Tiles, Modules and the Struts Menu. Actually, it wasn't a Struts problem so much as a Struts Menu problem. I was getting a java.lang.AbstractMethodError error when hitting the first action class, and couldn't figure out why. I started by bitching to the struts-dev list, and then filed a bug. Eddie Bush was kind enough to suggest that there was something wrong with my PlugIns. I thought - how could there be - I'm using Tiles and Validator? So I looked at my struts-plugins.xml file and there was the culprit - struts-menu. It turns out that I needed to add the following variable and method to MenuPlugIn.java:
/** The plugin config object provided by the ActionServlet initializing
* this plugin.
*/
protected PlugInConfig currentPlugInConfigObject;
/**
* Method used by the ActionServlet initializing this plugin.
* Set the plugin config object read from module config.
* @param currentPlugInConfigObject
*/
public void setCurrentPlugInConfigObject(PlugInConfig currentPlugInConfigObject) {
this.currentPlugInConfigObject = currentPlugInConfigObject;
}
This post was written in hopes of alleviating someone else's troubles with this same problem.

