This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247318

Summary: Tomcat/TomEE server plugin doesn't support server.xml with references to catalina.properties
Product: serverplugins Reporter: jan.cetkovsky
Component: TomcatAssignee: Petr Hejl <phejl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description jan.cetkovsky 2014-09-19 22:39:58 UTC
The Tomcat/TomEE plugin doesn't support server.xml with references to catalina.properties

e.g. if server.xml contains

<Executor name="tomcatThreadPool"
                  namePrefix="catalina-exec-"
                  maxThreads="${executor.1.threads.max}"
                  minSpareThreads="${executor.1.threads.spare.min}"
                  prestartminSpareThreads="true"/>

and catalina.properties 

executor.1.threads.max=150
executor.1.threads.spare.min=25

Netbeans shows the following message in the Add server wizard:

The <CATALINA_HOME>/conf/server.xml configuration file seems to be corrupted


If the properties names are manually replaced by the values, the wizard proceeds without a problem.

Reference to Tomcat documentation describing the usage of properties in server.xml:
http://tomcat.apache.org/tomcat-7.0-doc/config/

I tested it on Mac, however the problem is most likely platform independent.