Commits

Anonymous committed e3c9e34

Interceptors only get validated if they are in a stack or applied to an action. If you don't have Spring in the class path and you don't use the Spring interceptor, you won't see any error messages now. This also blows up with an exception instead of printing an error and continuing to run.

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@639e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/config/providers/XmlConfigurationProvider.java

 
             Map params = XmlHelper.getParams(interceptorElement);
             InterceptorConfig config = new InterceptorConfig(name, className, params);
-            if (!verifyInterceptor(className, name, config)) {
-                continue;
-            }
 
             context.addInterceptorConfig(config);
         }
         loadInterceptorStacks(element, context);
     }
 
-    protected boolean verifyInterceptor(String className, String name, InterceptorConfig config) {
-        try {
-            ObjectFactory.getObjectFactory().buildInterceptor(config, new TreeMap());
-            return true;
-        } catch (ConfigurationException e) {
-            String s = "Unable to load class " + className + " for interceptor name " + name + ". " +
-                    "This interceptor will not be available.\n" +
-                    "Cause: " + e.getMessage();
-            LOG.error(s);
-            return false;
-        }
-    }
-
     //    protected void loadPackages(Element rootElement) throws ConfigurationException {
     //        NodeList packageList = rootElement.getElementsByTagName("package");
     //