Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
2.2.3
-
None
-
Windows XP, JBoss AS7 (7.0.2.Final), Struts 2.2.3.1, struts2-convention-plugin-2.2.3.1
Description
Using annotations from the struts2-convention-plugin in Action classes did not work in JBoss AS7 because the com.opensymphony.xwork2.util.finder.ClassFinder was unable to read the classes in WEB-INF/classes.
To get it to work, I made a small change in the readClassDef(String) method:
if (resource == null && StringUtils.contains(className, "WEB-INF/classes")) {
resource = classLoaderInterface.getResource(StringUtils.substringAfter(className, "WEB-INF/classes"));
}
I'm relatively new to this setup/environment, but I didn't see a configuration option or another way to do this without modifying this class or some other class.