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

New constructor for UrlSet with custom ClassLoader protocols. (Allows WebLogic deployment)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4
    • Configuration
    • None
    • WebLogic 10
    • Patch

    Description

      New constructor for UrlSet:

      public UrlSet(ClassLoaderInterface classLoader, Set<String> protocols) throws IOException {}

      The new parameter "protocols" indicates the allowed ClassLoader protocols to search for.

      This is necessary to deploy struts applications in WebLogic, because this server packages the WEB-INF/classes of the WAR in a JAR, and then move it to WEB-INF/lib. And in WebLogic all JARs in WEB-INF/lib are read using the zip protocol.

      In Struts2 2.1.7 there is the "struts.convention.action.fileProtocols" property to specify the protocols to use, but its values are not used in the search algorithm.

      Attachments

        Activity

          People

            rainerh Rainer Hermanns
            panxito Jordi Albert
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: