You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by gn...@apache.org on 2013/03/26 08:10:56 UTC

svn commit: r1460997 - /aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java

Author: gnodet
Date: Tue Mar 26 07:10:56 2013
New Revision: 1460997

URL: http://svn.apache.org/r1460997
Log:
improvement for ARIES-1038 to avoid the ServletContext.getResourcePaths as we should only really use the classpath to avoid errors in tomcat6

Modified:
    aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java

Modified: aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java
URL: http://svn.apache.org/viewvc/aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java?rev=1460997&r1=1460996&r2=1460997&view=diff
==============================================================================
--- aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java (original)
+++ aries/trunk/blueprint/blueprint-web/src/main/java/org/apache/aries/blueprint/web/BlueprintContextListener.java Tue Mar 26 07:10:56 2013
@@ -45,8 +45,7 @@ public class BlueprintContextListener im
         if (location == null) {
             location = DEFAULT_LOCATION;
         }
-        Set<URL> resourcePathSet = servletContext.getResourcePaths(location);
-        List<URL> resourcePaths = new ArrayList<URL>(resourcePathSet);
+        List<URL> resourcePaths = new ArrayList<URL>();
         ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
         try {
             Enumeration<URL> resources = classLoader.getResources(location);