tracker issue : CF-3134440

select a category, or use search below
(searches all categories and all time range)
Title:

Tomcat server.xml Inconsistent when Creating Multiple Instances

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Rob Bilson / Rob Bilson (Rob Bilson)

Created: 03/09/2012

Components: Web Container (Tomcat), Instance/Cluster Manager

Versions: 10.0

Failure Type: Cosmetic Issue

Found In Build/Fixed In Build: Public Beta / 287010

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Win All

Vote Count: 0

Problem Description:

The server.xml file used by the default instance is not formatted the same as the server.xml file that gets created for additional ColdFusion instances.  Functionally they are identical, however the formatting is very different because of comments in the server.xml file of the cfusion instance that aren't present in the server.xml file of subsequent instances.

Here's a snippet from the server.xml file for the default instance:

<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8007" shutdown="SHUTDOWN">

  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

 

And here's the same snippet from the server.xml file that gets created for additional instances:

<Server port="8008" shutdown="SHUTDOWN">
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on">
  </Listener>
  <Listener className="org.apache.catalina.core.JasperListener">
  </Listener>
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener">
  </Listener>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener">
  </Listener>

Again, functionally they are the same. However, for consistency sake, I think all subsequently generated server.xml files should have the same commenting/formatting as the default cfusion instance.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3134440

Deployment Phase:	Release Candidate

Keywords:
FixTested


External Customer Info:
External Company:  
External Customer Name: Rob Brooks-Bilson
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Deferring it since it is not critical to do at this stage.
Comment by Rupesh K.
20152 | March 13, 2012 08:31:29 PM GMT