Index: components/carrot2-util-common/src/org/carrot2/util/WordLoadingUtils.java
===================================================================
--- components/carrot2-util-common/src/org/carrot2/util/WordLoadingUtils.java	(revision 1503)
+++ components/carrot2-util-common/src/org/carrot2/util/WordLoadingUtils.java	(working copy)
@@ -27,6 +27,7 @@
     private final static Logger logger = Logger.getLogger(WordLoadingUtils.class);
 
     private final static String RESOURCE_PREFIX = "resources/";
+    private final static String RESOURCE_ROOT = "/";
 
     /**
      * A utility method to load a language resource. The language resource
@@ -50,8 +51,18 @@
             is = WordLoadingUtils.class
                 .getResourceAsStream(RESOURCE_PREFIX + resourceName);
         }
-        
+
         if (is == null) {
+            is = Thread.currentThread().getContextClassLoader()
+                    .getResourceAsStream(RESOURCE_ROOT + RESOURCE_PREFIX + resourceName);
+       }
+
+        if (is == null) {
+            is = WordLoadingUtils.class
+                .getResourceAsStream(RESOURCE_ROOT + RESOURCE_PREFIX + resourceName);
+        }
+
+        if (is == null) {
             throw new IOException("Resource could not be found: " + resourceName);
         }
 
