Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PathMatchingResourcePatternResolver not working fine on weblogic and websphere [SPR-15950] #20502

Closed
spring-projects-issues opened this issue Sep 11, 2017 · 3 comments
Assignees
Labels
in: core status: declined

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 11, 2017

kk580kk opened SPR-15950 and commented

In my project, I used this code to find resources in jar file. It works nice in tomcat and spring-boot:run but cannot find any resources in jar file in weblogic and websphere .
this is my code:

PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
Resource[] moduleProps = resolver.getResources("classpath*:"+ resourceName + ".properties");

I tried to fix this problem and find out PathMatchingResourcePatternResolver.class.getClassLoader().getResources(path) returns different values between tomcat and weblogic.

So by read this stackoverflow https://stackoverflow.com/questions/17429736/spring-configuration-files-loading-not-working-on-websphere-7
I think rewrite PathMatchingResourcePatternResolver() maybe the best answer.

In my project, I used PathMatchingResourcePatternResolver like this:

              PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver() {
                    /* 重写用来支持file开头的jar包读取*/
                    protected Resource convertClassLoaderURL(URL url) {
                        if (url.getProtocol().equals("file") && url.getFile().endsWith(".jar")) {
                            try {
                                return new UrlResource("jar", url + "!/");
                            } catch (final MalformedURLException ex) {
                                //LOG.catching(ex);
                            }
                        }
                        return new UrlResource(url);
                    }

                    /*重写用来支持遇到classes目录,去读取隔壁目录的lib下面的jar包里面的properties*/
                    protected Set<Resource> doFindPathMatchingFileResources(Resource rootDirResource, String subPattern) throws IOException {
                        Set<Resource> matches = super.doFindPathMatchingFileResources(rootDirResource, subPattern);
                        try {
                            File rootDir = rootDirResource.getFile();
                            /*for mac and linux*/
                            if (rootDir.getAbsolutePath().endsWith("/classes")) {
                                rootDir = new File(rootDir.getAbsolutePath().substring(0, rootDir.getAbsolutePath().lastIndexOf("/classes")) + "/lib");
                            }
                            /*for windows*/
                            if (rootDir.getAbsolutePath().endsWith("\\classes")) {
                                rootDir = new File(rootDir.getAbsolutePath().substring(0, rootDir.getAbsolutePath().lastIndexOf("\\classes")) + "\\lib");
                            }
                            if (rootDir.isDirectory()) {
                                System.out.println("[CONFIG] config doFindPathMatchingJarResources rootDir: " + rootDir.getAbsolutePath());
                                Set<Resource> containedJARs = doFindMatchingFileSystemResources(rootDir, "*.jar");
                                for (Resource jar : containedJARs) {
                                    Set<Resource> matchingResourcesFoundInJar = doFindPathMatchingJarResources(convertClassLoaderURL(jar.getURL()), jar.getURL(), subPattern);
                                    if (matchingResourcesFoundInJar != null && matchingResourcesFoundInJar.size() > 0) {
                                        for (Resource resource : matchingResourcesFoundInJar) {
                                            System.out.println("[CONFIG] config doFindPathMatchingJarResources resource: " + resource.getURL());
                                        }
                                        matches.addAll(matchingResourcesFoundInJar);
                                    }
                                }
                            }
                        } catch (final IOException ex) {
                            ex.printStackTrace();
                        }
                        return matches;
                    }

                };

And finally fixed this problems.

Now I think Spring can fix this problem in the framework or write on the document.

I have submit a pull request to fix this problem .

Kind regards,
kk580kk


Affects: 4.3.8

Reference URL: https://stackoverflow.com/questions/17429736/spring-configuration-files-loading-not-working-on-websphere-7

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 11, 2017

kk580kk commented

I used this code to debug this problem.

public final static String CLASS_PATH_PREFIX = "classpath*:";
Resource[] rootResources = resolver.getResources(CLASS_PATH_PREFIX);
for (Resource rootResource : rootResources) {
    System.out.println("[CONFIG] config rootResource: " + rootResource.getURL());
}

in tomcat ,getResoures return this below and we can find jar file under lib directroy

[CONFIG] config rootResource: file:/Users/JieHuang/Tools/tomcat/apache-tomcat-8.0.30/lib/
[CONFIG] config rootResource: file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/classes/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/ant-1.9.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/ant-launcher-1.9.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/antisamy-1.4.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/aopalliance-1.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/aspectjweaver-1.8.10.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/batik-css-1.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/batik-ext-1.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/batik-util-1.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/bsh-core-2.0b4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/classmate-1.3.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-beanutils-1.9.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-beanutils-core-1.7.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-cli-1.3.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-codec-1.10.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-collections-3.2.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-configuration-1.5.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-digester-2.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-fileupload-1.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-httpclient-3.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-io-2.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-lang-2.6.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-logging-1.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-net-3.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-pool2-2.4.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/commons-validator-1.4.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/compress-lzf-1.0.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/db2jcc4-3.71.22.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/dom4j-1.6.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/elasticsearch-2.4.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/esapi-2.1.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/ezmorph-1.0.6.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/ganymed-ssh2-build210.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/gsp-1.5.2.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/guava-18.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/HdrHistogram-2.1.6.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/hibernate-validator-5.3.5.Final.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/HikariCP-2.5.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/hppc-0.7.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/ibatis-sqlmap-2.3.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/iplat-admin-6.0.0915-SNAPSHOT.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/iplat4j-core-6.0.0915-SNAPSHOT.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-annotations-2.8.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-core-2.8.8.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-core-asl-1.9.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-databind-2.8.8.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-dataformat-cbor-2.8.8.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-dataformat-yaml-2.8.8.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jackson-mapper-asl-1.9.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jacob-1.14.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jboss-logging-3.3.1.Final.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jcl-over-slf4j-1.7.25.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jdom-1.1.3.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jedis-2.9.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/joda-time-2.9.9.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/json-lib-2.4-jdk13.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jsr166e-1.1.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/jstl-1.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/junit-4.12.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/kaptcha-2.3-jdk15.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/log4j-api-2.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/log4j-core-2.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/log4j-over-slf4j-1.7.25.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/log4j-slf4j-impl-2.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-analyzers-common-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-backward-codecs-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-core-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-grouping-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-highlighter-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-join-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-memory-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-misc-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-queries-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-queryparser-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-sandbox-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-spatial-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-spatial3d-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/lucene-suggest-5.5.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/metrics-core-3.1.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/metrics-healthchecks-3.1.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/metrics-json-3.1.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/metrics-jvm-3.1.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/metrics-servlets-3.1.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/mysql-connector-java-5.1.39.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/nekohtml-1.9.22.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/netty-3.10.6.Final.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/oro-2.0.8.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/poi-3.10-FINAL.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/poi-ooxml-3.10-FINAL.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/poi-ooxml-schemas-3.10-FINAL.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/securesm-1.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/slf4j-api-1.7.25.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/snakeyaml-1.17.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spatial4j-0.5.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-aop-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-beans-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-context-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-context-support-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-core-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-data-commons-1.13.3.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-data-elasticsearch-2.1.3.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-data-keyvalue-1.2.3.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-data-redis-1.8.3.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-expression-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-jdbc-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-oxm-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-security-config-4.2.2.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-security-core-4.2.2.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-security-web-4.2.2.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-test-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-tx-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-web-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/spring-webmvc-4.3.8.RELEASE.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/standard-1.1.2.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/stax-api-1.0.1.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/t-digest-3.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/UserAgentUtils-1.2.4.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/validation-api-1.1.0.Final.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/velocity-1.7.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xalan-2.7.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xercesImpl-2.11.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xml-apis-1.4.01.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xml-apis-ext-1.3.04.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xmlbeans-2.3.0.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xom-1.2.5.jar!/
[CONFIG] config rootResource: jar:file:/Users/JieHuang/IdeaProjects/iplat4j6/iplat-deploy/iPlat4j6/target/iPlat4j6-6.0.0915-SNAPSHOT/WEB-INF/lib/xservices-security-1.0.0915-SNAPSHOT.jar!/

but when we deploy on weblogic,only got directroy named classes
[CONFIG] config rootResource: file:/D:/iPlatDAM/WEB-INF/classes/

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 12, 2017

kk580kk commented

Test Environment:
WebSphere :8.5.5.9
weblogic:12.2.1.0.0
Tomcat Version 8.5.20

@spring-projects-issues spring-projects-issues added status: waiting-for-triage type: enhancement in: core and removed type: enhancement labels Jan 11, 2019
@snicoll snicoll added this to the Triage Queue milestone Nov 26, 2021
@jhoeller jhoeller self-assigned this Nov 29, 2021
@jhoeller
Copy link
Contributor

@jhoeller jhoeller commented Nov 29, 2021

Consistent path matching across different servers and deployment layouts is very involved, not least of it all because the target platforms evolve as well. From such a perspective, it is likely that this report is outdated in meantime (sorry for not getting to it back when it was reported).

If this is still a problem, please re-try against recent versions of WebLogic/WebSphere and feel free to reopen this issue.

@jhoeller jhoeller removed the status: waiting-for-triage label Nov 29, 2021
@jhoeller jhoeller removed this from the Triage Queue milestone Nov 29, 2021
@jhoeller jhoeller added the status: declined label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core status: declined
Projects
None yet
Development

No branches or pull requests

3 participants