Guest User

Untitled

a guest
Jul 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. -> % git diff
  2. diff --git a/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java b/demos/web/src/main/java/org/apache/kara
  3. index dad40cd..4c49f01 100644
  4. --- a/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java
  5. +++ b/demos/web/src/main/java/org/apache/karaf/web/WebAppListener.java
  6. @@ -24,9 +24,9 @@ import javax.servlet.ServletContextListener;
  7. import org.apache.karaf.main.Main;
  8.  
  9. public class WebAppListener implements ServletContextListener {
  10. -
  11. +
  12. private Main main;
  13. -
  14. +
  15. public void contextInitialized(ServletContextEvent sce) {
  16. try {
  17. System.err.println("contextInitialized");
  18. @@ -52,7 +52,7 @@ public class WebAppListener implements ServletContextListener {
  19. try {
  20. System.err.println("contextDestroyed");
  21. if (main != null) {
  22. - main.destroy(false);
  23. + main.destroy();
  24. }
  25. } catch (Exception e) {
  26. e.printStackTrace();
Add Comment
Please, Sign In to add comment