struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <>
Subject Re: BUG in struts-2.5.15
Date Thu, 15 Feb 2018 15:12:39 GMT

On 2/14/2018 7:13 PM, wrote:
> Hi all,
> Testing your upcoming struts-2.5.15, when starting Weblogic server (Weblogic server version, JDK v 1.8.0_101), we see exception below.
> Thanks,
> Liem.
> --------------------------------------------
> 2018-02-14 10:28:37.194 WARN  - Could not create JarEntryRevision for [zip:C:/Oracle/Middleware/Oracle_Home12.!/struts-default.xml]!
> unknown protocol: c
>                 at<init>( ~[?:1.8.0_101]
>                 at<init>( ~[?:1.8.0_101]
>                 at<init>( ~[?:1.8.0_101]
>                 at ~[?:1.8.0_101]
>                 at<init>(
>                 at com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.<init>(
>                 at com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.openConnection(
>                 at
>                 at com.opensymphony.xwork2.util.fs.DefaultFileManager.monitorFile(

Hi Liem,

Thank you so much for your report and nice catch!

It seems weblogic is commerical and so I cannot try this myself then may
I ask you to run following code in your action then examine output and
reply me every line starting with "COPY ME:"?

import com.opensymphony.xwork2.util.ClassLoaderUtil;

    public String execute() throws Exception {
        Iterator<URL> strutsDefaultXmls =
ClassLoaderUtil.getResources("struts-default.xml", this.getClass(), true);
        while (strutsDefaultXmls.hasNext()) {
            URLConnection conn =;
            System.out.println("COPY ME: " + conn.toString());

These two days I tried to make StrutsJarURLConnection even more
decoupled from container (e.g. weblogic) but could not pass tests so far :(

The issue is, JDK's JarURLConnection expects url of jars in
jar:<url>!/{entry} format but weblogic reports them as zip:C:/... then
JDK is going to convert C:/... to url then sees it does not know any
protocol named c.

So I'm interested to know if "conn.toString" above contains "jar" or not
i.e. does weblogic report them as jars or not.

I also would like to say it seems it's just a warning and does not block
your app functionality; Only "reloading configs runtime when jar
changes" won't work as expected.

Thanks in advance!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message