Title: [waffle-scm] [943] trunk/waffle-core/src/main/java/org/codehaus/waffle/pico/WaffleListener.java: requires hack to work on GAE
Revision
943
Author
paul
Date
2009-04-14 14:12:03 -0500 (Tue, 14 Apr 2009)

Log Message

requires hack to work on GAE

Modified Paths


Diff

Modified: trunk/waffle-core/src/main/java/org/codehaus/waffle/pico/WaffleListener.java (942 => 943)

--- trunk/waffle-core/src/main/java/org/codehaus/waffle/pico/WaffleListener.java	2009-04-14 18:42:28 UTC (rev 942)
+++ trunk/waffle-core/src/main/java/org/codehaus/waffle/pico/WaffleListener.java	2009-04-14 19:12:03 UTC (rev 943)
@@ -9,9 +9,19 @@
 import org.picocontainer.web.ScopedContainers;
 import org.picocontainer.web.ThreadLocalLifecycleState;
 
+import javax.servlet.ServletContextEvent;
+
+import ognl.OgnlRuntime;
+
 @SuppressWarnings("serial")
 public class WaffleListener extends PicoServletContainerListener {
 
+    public void contextInitialized(ServletContextEvent event) {
+        // AppEngine needs a hack to OGNL
+        OgnlRuntime.setSecurityManager(null);
+        super.contextInitialized(event);
+    }
+
     protected ScopedContainers makeScopedContainers() {
         DefaultPicoContainer application = new DefaultPicoContainer(new Guarding().wrap(new Caching()), new WaffleLifecycleStrategy(makeAppComponentMonitor()), makeParentContainer(), makeAppComponentMonitor());
         Storing sessionStoring = new Storing();


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to