Commit ddaec013 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '1.1.x'

parents 9a55cc49 950eafe9
......@@ -105,7 +105,13 @@ public class ServletListenerRegistrationBean<T extends EventListener> extends
logger.info("Listener " + this.listener + " was not registered (disabled)");
return;
}
servletContext.addListener(this.listener);
try {
servletContext.addListener(this.listener);
}
catch (RuntimeException ex) {
throw new IllegalStateException("Failed to add listener '" + this.listener
+ "' to servlet context", ex);
}
}
public T getListener() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment