cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
Date Wed, 23 May 2001 16:58:02 GMT
bloritsch    01/05/23 09:58:01

  Modified:    src/org/apache/cocoon/processor/xsp/library/sql esql.xsl
  Log:
  ClassLoader fix
  
  Revision  Changes    Path
  1.81      +2 -2      xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl
  
  Index: esql.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/sql/esql.xsl,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- esql.xsl	2001/05/21 18:29:20	1.80
  +++ esql.xsl	2001/05/23 16:57:53	1.81
  @@ -1,5 +1,5 @@
   <?xml version="1.0"?>
  -<!-- $Id: esql.xsl,v 1.80 2001/05/21 18:29:20 balld Exp $-->
  +<!-- $Id: esql.xsl,v 1.81 2001/05/23 16:57:53 bloritsch Exp $-->
   <!--
   
    ============================================================================
  @@ -326,7 +326,7 @@
           <xsl:otherwise>
             <xsl:if test="esql:driver">
             try {
  -            Class.forName(String.valueOf(<xsl:copy-of select="$driver"/>)).newInstance();
  +            Thread.currentThread().getContextClassLoader().loadClass(String.valueOf(<xsl:copy-of
select="$driver"/>)).newInstance();
             } catch (Exception _esql_exception_<xsl:value-of select="generate-id(.)"/>)
{
               throw new RuntimeException("Error loading driver: "+String.valueOf(<xsl:copy-of
select="$driver"/>));
             }
  
  
  

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