Saturday December 28, 2002
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. Posted in Java at Dec 28 2002, 02:00:47 AM MST Add a Comment
Search This Site
Recent Entries
- Happy Birthday Mom!
- 2008 - A Year in Review
- Portland Tech Meetup Tomorrow Night
- My "almost slept in a snow cave" Adventure with Clint Foster
- My Christmas Travel Adventure
- AppFuse Light converted to Maven modules, upgraded to Tapestry 5 and Stripes 1.5
- Dojo/Comet support in Java Web Frameworks
- Abbie is a Blue Skier!
- How I recovered data from my failed Linux box
- Costa Rica was Awesome!