tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Gamache <>
Subject Parallel deployment URL issue
Date Thu, 01 Oct 2015 15:51:47 GMT
Hi all,

I'm stuck using axis2-1.5.4.

Here's what I think is happening:

Axis2 does this sort of container-in-a-container thing. It creates its own
classloader and pulls in all of its jar libraries dynamically. The problem
is that it uses a to target the files. This would be fine
except for the problem that the folder name, when using parallel
deployment, is


So (from org.apache.axis2.deployment.util.Utils)

    public static URL[] getURLsForAllJars(URL url, File tmpDir) {
        FileInputStream fin = null;
        InputStream in = null;
        ZipInputStream zin = null;
        try {
            ArrayList array = new ArrayList();
            in = url.openStream();

The problem is that URL was constructed from a File object in the
ClassLoader, File) method using the toURL() method. The toURL() method is
deprecated because it doesn't escape special characters, namely the "##" in
the path.

When it hits url.openStream() it is discarding everything after the ##nnnnn
part of the path (think hash value in a web URL). It throws a
" /path/to/yourWar (No such file or

Getting in there and patching axis2-1.5.4 is less-than-desirable. So many
things to go wrong.

Is there a way to alter the way tomcat unpacks the warfile? Is there a way
to configure the version delimiters from ## to perhaps ~~ or $$ ?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message