Configuration files
The following pages provide a description of the configuration files.
You will have to restart the server after making changes to the configuration files. Configuration changes will only take effect after a server restart.
If possible, make changes to the configuration only in the admin area in the portal.
Manual changes to the configuration files should always be made very carefully in order to ensure that the server's functionality and stability are not affected. A wrong change might render the server inoperable.
If you need to diagnose startup problems, memory issues, logging behavior, or connector configuration, see Troubleshooting.
If you first need to identify where webPDF stores configuration files, logs, and runtime data on Windows or Linux, see Directory structure.
Loading and invalid entries
The server reads server.xml, application.xml and users.xml at startup and never writes to them. This applies to every start, and there is no setting to change it. A file mounted read-only (for example a Kubernetes ConfigMap) is therefore a supported setup; the server then logs one INFO line per file stating that changes made in the Admin Portal cannot be saved to it.
Entries that the schema does not allow are handled in memory only. The file on disk stays as you wrote it, and the server logs a WARN line with the file name, line and column for each deviation, so the warning appears again at every start until you fix the file:
| Deviation | Behavior |
|---|---|
| Unknown or obsolete element or attribute | Ignored |
| Single-value element that appears more than once | The last one is used, as before |
| Elements in the wrong order | Read in the correct order |
xsi:nil or xsi:type attribute in the wrong place | Ignored |
| Missing required entry that has a default value | The default value is used |
Invalid choice value, invalid true/false value or empty number | The attribute is ignored and its default value is used; the log names the attribute, the invalid value and the default |
Number or text that violates its type (for example port="80a"), or a value listed twice in protocols or ciphers | Startup is aborted |
| Missing required entry without a default value, or mutually exclusive elements together (for example two user storages) | Startup is aborted |
Document type declaration (DOCTYPE), wrong root element or wrong namespace, or a file that is not well-formed | Startup is aborted |
Line and column refer to the end of the start tag in the file after ${...} placeholders have been resolved. Values of secret settings are masked in the log, and the values of ignored entries are never logged. A leading UTF-8 byte order mark is ignored.
To remove a warning, delete or correct the entry in the file. Saving the configuration in the Admin Portal also removes it, but the save replaces ${...} placeholders by their resolved values and drops comments in the file.