Skip to content

Commit

Permalink
Added support for Tomcat 8
Browse files Browse the repository at this point in the history
  • Loading branch information
gjordi committed Jun 11, 2015
1 parent 428e7a8 commit c680956
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions opsworks_java/templates/default/server.xml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,21 @@
Documentation at /docs/config/server.html
-->
<Server port="<%= node['opsworks_java']['tomcat']['shutdown_port'] %>" shutdown="SHUTDOWN">

<% if node['opsworks_java']['tomcat']['base_version'].to_i > 7 -%>
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<% end -%>
<% if node['opsworks_java']['tomcat']['base_version'].to_i > 6 -%>
<!-- Security listener. Documentation at /docs/config/listeners.html
<Listener className="org.apache.catalina.security.SecurityListener" />
-->
<% end -%>
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<% if node['opsworks_java']['tomcat']['base_version'].to_i < 8 -%>
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<% end -%>
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<% if node['opsworks_java']['tomcat']['base_version'].to_i < 7 -%>
Expand Down

0 comments on commit c680956

Please sign in to comment.