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 - Tomcat/TomEE server plugin doesn't support server.xml with references to catalina.properties
Summary: Tomcat/TomEE server plugin doesn't support server.xml with references to cata...
Status: NEW
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 8.0.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-19 22:39 UTC by jan.cetkovsky
Modified: 2014-11-14 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.