struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasserzam...@apache.org>
Subject Re: BUG in struts-2.5.15
Date Fri, 16 Feb 2018 06:44:07 GMT


On 2/15/2018 7:32 PM, liemnguyen@ups.com.INVALID wrote:
> Here is the output:
> 
> COPY ME:
> weblogic.utils.zip.ZipURLConnection:zip:C:/Oracle/Middleware/Oracle_Home12.2.1.0.0/user_projects/domains/iwa_local_domain/servers/AdminServer/tmp/_WL_user/IWA/zfd81u/war/WEB-INF/lib/struts2-core.jar!/struts-default.xml
> 

Thanks! I have a candidate solution (correcting url to "file:/" when
protocol is empty; like Spring Framework [1]) but my JDK here then says
"Unknown protocol: zip". Could you please also run following block to
see if your context there already knows zip protocol?

import com.opensymphony.xwork2.util.ClassLoaderUtil;
import com.opensymphony.xwork2.util.fs.JarEntryRevision;
import com.opensymphony.xwork2.util.fs.Revision;
        Iterator<URL> strutsDefaultXmls =

    public String execute() throws Exception {
ClassLoaderUtil.getResources("struts-default.xml", this.getClass(), true);
        while (strutsDefaultXmls.hasNext()) {
            URL url = strutsDefaultXmls.next();
            URL url2 = new URL(url.getProtocol(), url.getHost(),
url.getPort(), "file:/" + url.getFile());
            Revision r = JarEntryRevision.build(url2);
            System.out.println("COPY ME: " + r.needsReloading());
        }


[1]
https://github.com/spring-projects/spring-framework/blob/aa4bcedad37a9a084e96298f087fec4889c59cdc/spring-core/src/main/java/org/springframework/util/ResourceUtils.java#L316

> 
> Also, below is URL connection object that is passed to
> StrutsJarURLConnection.openConnection(URL url):
> 

Yes I saw ... Thanks!

Sincerely,
Yasser.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message