Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-171

Multiple executions (i.e. sep tomcats clash due to identical JMX naming)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: tomcat6
    • Labels:
      None

      Description

      If two executions are configured, for example to create two tomcat instances running on separate ports, these do not behave independently, as they get identified to JMX using the same names.

      Some disambiguation is required, for which the httpPort might be enough (this works for me for tomcat6)

      // create engine
      Engine engine = container.createEngine();

      • engine.setName( "localEngine" );
        + engine.setName( "localEngine-" + port);
        engine.addChild( host );
        engine.setDefaultHost( host.getName() );

        Attachments

        1. mtomcat-171.patch
          0.8 kB
          Neale Upstone

          Activity

            People

            • Assignee:
              olamy Olivier Lamy
              Reporter:
              nealeu Neale Upstone
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: