Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.3
-
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.