Enhancement
Critical
Major
Detail
Detail
Until now, if you build a WAR for an application and deploy it in a container, it will not start up by default unless you add another external configuration and define the database connection there.
Improvement
A default deploy creates WAR that boots without errors with a H2 database in WEB-INF.
Code migration
Configuration variables that can be used in the deployment to refer to a directory on the web server are now interpreted as directories and not as file mangager pseudo URLs. I.e. a direct file system path on the target server must now be specified in these variables (without a prefix file://). The variable names have been changed from *_DIR to *_PATH. Affected are:
- %DATA_DIR% -> %DATA_PATH%
- %STORAGE_DIR% -> %STORAGE_PATH%
- %LOG_DIR% -> %LOG_PATH%
- %IMPORT_LOG_DIR% -> %IMPORT_LOG_PATH%
- %VAR_DIR% -> %VAR_PATH%
- %TMP_DIR% -> %TMP_PATH%
- %DOCUMENTS_DIR% -> %DOCUMENTS_PATH%
- %REPOSITORY_DIR% -> %REPOSITORY_PATH%
- %ATTIC_DIR% -> %ATTIC_PATH%
- %VARIANTS_DIR% -> %VARIANTS_PATH%
- %FONT_DIR% -> %FONT_PATH%
- %FAM_DATA_DIR% -> %FAM_DATA_PATH%
- %LUCENE_DIR% -> %LUCENE_PATH%
- %CONF_DATA_DIR% -> %CONF_DATA_PATH%
The same applies to the environment variable that can be used to set the root directory of the application's data directory:
- tl_storage_dir -> tl_storage_path
Accordingly, the interpretation of the following configuration properties has changed (now file system path, previously pseudo file manager URL):
- com.top_logic.base.administration.LoggerAdminBean#config-dir
- com.top_logic.basic.io.BasicFileLog#basicPath
- com.top_logic.dsa.repos.file.FileRepository#attic
- com.top_logic.dsa.repos.file.FileRepository#path
- com.top_logic.dsa.repos.file.FileRepository#workarea
- com.top_logic.basic.util.ResourcesModule#dynamic-bundle#storage
- com.top_logic.knowledge.indexing.lucene.LuceneIndex#index-location
- com.top_logic.dsa.file.FilesystemDataSourceAdaptor#home
The following configuration property is omitted, the value is fixed(/WEB-INF/conf/resources):
- com.top_logic.basic.util.ResourcesModule#static-bundles#storage
Test
- Create a new application myapp.
- Run the war target in it.
- Select the default response for all queries.
- Deploy WAR into local TomCat server.
- Expectation: Application starts up and login is possible.
- The monitor shows "reasonable" paths for the database, repository and image temp-dir components: