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)

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment