cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/servlet CocoonServlet.java
Date Sun, 24 Mar 2002 21:56:35 GMT
sylvain     02/03/24 13:56:35

  Modified:    src/java/org/apache/cocoon/servlet CocoonServlet.java
  Log:
  Hopefully fix bug #4221 (needs cross-check on InQMy server)
  
  Revision  Changes    Path
  1.19      +8 -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.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- CocoonServlet.java	20 Mar 2002 11:00:06 -0000	1.18
  +++ CocoonServlet.java	24 Mar 2002 21:56:35 -0000	1.19
  @@ -118,7 +118,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 $Id: CocoonServlet.java,v 1.18 2002/03/20 11:00:06 sylvain Exp $
  + * @version CVS $Id: CocoonServlet.java,v 1.19 2002/03/24 21:56:35 sylvain Exp $
    */
   public class CocoonServlet extends HttpServlet {
   
  @@ -199,6 +199,13 @@
       throws ServletException {
   
           super.init(conf);
  +
  +        // Force context classloader so that JAXP can work correctly
  +        // (see javax.xml.parsers.FactoryFinder.findClassLoader())
  +        try {
  +            Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
  +        } catch (Exception e){}
  +
           String value;
   
           // FIXME (VG): We shouldn't have to specify these. Need to override 
  
  
  

----------------------------------------------------------------------
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