kinman      2003/02/25 16:04:56

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        TagFileProcessor.java
  Log:
  - When compiling tag files, use the same classloader and classpath used in
    compiling the JSP page that reference them.  This fixes a problem in
    compiling tag files in Jspc.
  
  Revision  Changes    Path
  1.45      +8 -2      
jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java
  
  Index: TagFileProcessor.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/TagFileProcessor.java,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- TagFileProcessor.java     21 Feb 2003 18:23:14 -0000      1.44
  +++ TagFileProcessor.java     26 Feb 2003 00:04:56 -0000      1.45
  @@ -65,6 +65,7 @@
   import java.util.*;
   import java.util.jar.JarFile;
   import java.io.*;
  +import java.net.URLClassLoader;
   
   import javax.servlet.ServletException;
   import javax.servlet.jsp.tagext.*;
  @@ -424,6 +425,11 @@
                                                   ctxt.getRuntimeContext(),
                                                   (JarFile) 
ctxt.getTagFileJars().get(tagFilePath));
                       rctxt.addWrapper(tagFilePath,wrapper);
  +
  +             // Use same classloader and classpath for compiling tag files
  +             wrapper.getJspEngineContext().setClassLoader(
  +                             (URLClassLoader) ctxt.getClassLoader());
  +             wrapper.getJspEngineContext().setClassPath(ctxt.getClassPath());
               }
   
               Class tagClazz;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to