brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorbett <>
Subject [GitHub] incubator-brooklyn pull request: Add Tomcat 8 Support
Date Mon, 11 May 2015 11:13:05 GMT
Github user sjcorbett commented on the pull request:
    @mikezaccardo Thanks for this. What are the differences in the entities between Tomcat
7 and 8? From a scan, there's not much - the new server.xml modifies the AccessLogValve prefix
and removes this line:
      <Listener className="org.apache.catalina.core.JasperListener" />
    The different web.xml file changes the file's schemaLocation and version.
    I don't think this warrants a separate package for v8.
    I wonder if a simpler approach could maintain the package structure and reuse the existing
    * Move server.xml and web.xml to ```.tomcat``` and rename them to something like ~ tomcat8-server.xml
and tomcat8-web.xml.
    * Add a `Tomcat8Server` interface that extends `TomcatServer` and redefines `SERVER_XML_RESOURCE`,
`WEB_XML_RESOURCE` and the appropriate download/version keys. e.g.:
        ConfigKey<String> SERVER_XML_RESOURCE = ConfigKeys.newConfigKeyWithDefault(
                TomcatServer.SERVER_XML_RESOURCE, "tomat8-server.xml");
    The existing driver will handle naming the file correctly when deploying entities.
    * Add a `Tomcat8ServerImpl` class that extends `TomcatServerImpl` and implements `Tomcat8Server`.
It doesn't need to override any existing methods.
    Having compared the v7 files vs. the v8 files - but not tested! - I think this would work
and saves the duplication.
    Any thoughts?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message