tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1486891 - in /tomcat/tc7.0.x/trunk: ./ java/org/apache/jasper/compiler/TagPluginManager.java webapps/docs/changelog.xml
Date Tue, 28 May 2013 11:57:49 GMT
Author: markt
Date: Tue May 28 11:57:49 2013
New Revision: 1486891

URL: http://svn.apache.org/r1486891
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=54964
Enable tag plug-ins to be packaged with a web application.
Patch by Sheldon Shao.

Modified:
    tomcat/tc7.0.x/trunk/   (props changed)
    tomcat/tc7.0.x/trunk/java/org/apache/jasper/compiler/TagPluginManager.java
    tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml

Propchange: tomcat/tc7.0.x/trunk/
------------------------------------------------------------------------------
  Merged /tomcat/trunk:r1486890

Modified: tomcat/tc7.0.x/trunk/java/org/apache/jasper/compiler/TagPluginManager.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/jasper/compiler/TagPluginManager.java?rev=1486891&r1=1486890&r2=1486891&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/jasper/compiler/TagPluginManager.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/jasper/compiler/TagPluginManager.java Tue May 28
11:57:49 2013
@@ -160,7 +160,8 @@ public class TagPluginManager {
             String pluginClassStr = pluginClassNode.getBody();
             TagPlugin tagPlugin = null;
             try {
-                Class<?> pluginClass = Class.forName(pluginClassStr);
+                Class<?> pluginClass =
+                        ctxt.getClassLoader().loadClass(pluginClassStr);
                 tagPlugin = (TagPlugin) pluginClass.newInstance();
             } catch (Exception e) {
                 throw new JasperException(e);

Modified: tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml?rev=1486891&r1=1486890&r2=1486891&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/tc7.0.x/trunk/webapps/docs/changelog.xml Tue May 28 11:57:49 2013
@@ -121,6 +121,10 @@
   <subsection name="Jasper">
     <changelog>
       <fix>
+        <bug>54964</bug>: Allow tag plug-ins to be packaged with a web
+        application. Patch provided by Sheldon Shao. (markt)
+      </fix>
+      <fix>
         <bug>54968</bug>: Return the correct version number (2.2) of the JSP
         specification that is supported by the JSP engine when
         <code>javax.servlet.jsp.JspEngineInfo#getSpecificationVersion()</code>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message