You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2013/05/14 08:57:34 UTC

[Bug 54964] New: Class loading issue of "TagPlugin" in TagPluginManager

https://issues.apache.org/bugzilla/show_bug.cgi?id=54964

            Bug ID: 54964
           Summary: Class loading issue of "TagPlugin" in TagPluginManager
           Product: Tomcat 7
           Version: 7.0.40
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: xshao@ebay.com
    Classification: Unclassified

Created attachment 30281
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30281&action=edit
Patch for TagPluginManager.java

TagPluginManager is using "Class.forName" to load extensions of TagPlugin.
It can't work when these extensions are put under the WEB-INF/lib.

Here is the code,

            String pluginClassStr = pluginClassNode.getBody();
            TagPlugin tagPlugin = null;
            try {
                Class<?> pluginClass = Class.forName(pluginClassStr);
                tagPlugin = (TagPlugin) pluginClass.newInstance();
            } catch (Exception e) {
                throw new JasperException(e);
            }

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


[Bug 54964] Class loading issue of "TagPlugin" in TagPluginManager

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54964

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the report and the patch. It has been applied to 7.0.x and will be
included in 7.0.41 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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