geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/jetty/src/java/org/apache/geronimo/jetty JettyWebApplicationContext.java
Date Fri, 04 Jun 2004 17:47:31 GMT
jboynes     2004/06/04 10:47:31

  Modified:    modules/jetty/src/java/org/apache/geronimo/jetty
                        JettyWebApplicationContext.java
  Log:
  Set TCL when starting jetty context
  
  Revision  Changes    Path
  1.19      +9 -2      incubator-geronimo/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebApplicationContext.java
  
  Index: JettyWebApplicationContext.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/jetty/src/java/org/apache/geronimo/jetty/JettyWebApplicationContext.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- JettyWebApplicationContext.java	2 Jun 2004 05:33:03 -0000	1.18
  +++ JettyWebApplicationContext.java	4 Jun 2004 17:47:31 -0000	1.19
  @@ -230,7 +230,14 @@
               userTransaction.setOnline(true);
           }
           container.addContext(this);
  -        super.start();
  +
  +        ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
  +        try {
  +            Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
  +            super.start();
  +        } finally {
  +            Thread.currentThread().setContextClassLoader(oldCL);
  +        }
   
           try {
               factory = PolicyConfigurationFactory.getPolicyConfigurationFactory();
  
  
  

Mime
View raw message