cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/servlet CocoonServlet.java
Date Sat, 02 Feb 2002 01:57:08 GMT
dims        02/02/01 17:57:08

  Modified:    src/java/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Patch from Kesha (kesha@cosite.com) for "CocoonServlet destroy classloader problem" in Orion
server
  
  Revision  Changes    Path
  1.5       +5 -1      xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/servlet/CocoonServlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CocoonServlet.java	31 Jan 2002 17:01:16 -0000	1.4
  +++ CocoonServlet.java	2 Feb 2002 01:57:08 -0000	1.5
  @@ -66,7 +66,7 @@
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
    * @author <a href="mailto:cziegeler@apache.org">Carsten Ziegeler</a>
    * @author <a href="mailto:leo.sutic@inspireinfrastructure.com">Leo Sutic</a>
  - * @version CVS $Revision: 1.4 $ $Date: 2002/01/31 17:01:16 $
  + * @version CVS $Revision: 1.5 $ $Date: 2002/02/02 01:57:08 $
    */
   public class CocoonServlet extends HttpServlet {
   
  @@ -316,6 +316,10 @@
        */
       public void destroy()
       {
  +        try {
  +            Thread.currentThread().setContextClassLoader(classLoader);
  +        } catch (Exception e){}
  +
           if (this.cocoon != null)
           {
               if (log.isDebugEnabled()) {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message