Uploaded image for project: 'XWork'
  1. XWork
  2. XW-753

XWork has problem loading resource from WEB-INF/classes in JBoss AS7

Add voteWatch issue
    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mandrosen Marc Rosenthal

            Dates

              Created:
              Updated:

              Slack

                Issue deployment