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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • tomcat6
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: