Apache Tomcat Maven Plugin
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-140

Allow specifying the classloader to use for loading webapps.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-1
    • Fix Version/s: 2.0
    • Component/s: tomcat6, tomcat7
    • Labels:
      None

      Description

      If one uses a context.xml with a <loader> element to specify the class loader implementation to use with the tomcat7:run goal, this causes Tomcat to override the WebAppLoader carefully created by the plugin, without the
      benefit of a properly configured class path.

      The attached patch adds a <classLoaderClass> property to configure which class loader implementation to use. This is probably of limited utility as most classes will be loaded by the parent classloader anyway.

      1. loader.patch
        1 kB
        Leigh Anderson

        Activity

        Leigh Anderson created issue -
        Leigh Anderson made changes -
        Field Original Value New Value
        Attachment loader.patch [ 12522541 ]
        Olivier Lamy (*$^¨%`£) made changes -
        Fix Version/s 2.0 [ 12319450 ]
        Component/s tomcat6 [ 12316300 ]
        Hide
        Olivier Lamy (*$^¨%`£) added a comment -

        fixed.
        Thanks for the patch.

        Show
        Olivier Lamy (*$^¨%`£) added a comment - fixed. Thanks for the patch.
        Olivier Lamy (*$^¨%`£) made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Hide
        Hudson added a comment -

        Integrated in TomcatMavenPlugin-mvn3.x #129 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/129/)
        MTOMCAT-140 Allow specifying the classloader to use for loading webapps.
        Submitted by Leigh Anderson. (Revision 1325700)

        Result = SUCCESS
        olamy : http://svn.apache.org/viewvc/?view=rev&rev=1325700
        Files :

        • /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java
        • /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
        Show
        Hudson added a comment - Integrated in TomcatMavenPlugin-mvn3.x #129 (See https://builds.apache.org/job/TomcatMavenPlugin-mvn3.x/129/ ) MTOMCAT-140 Allow specifying the classloader to use for loading webapps. Submitted by Leigh Anderson. (Revision 1325700) Result = SUCCESS olamy : http://svn.apache.org/viewvc/?view=rev&rev=1325700 Files : /tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat6/AbstractRunMojo.java /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java

          People

          • Assignee:
            Olivier Lamy (*$^¨%`£)
            Reporter:
            Leigh Anderson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development