For anyone interested in getting it working for a Linux service:
I simply added the line:
Environment='MAIL_CONFIG=/opt/tomcat/conf/mail-config.properties'
to my /etc/systemd/system/tomcat.service.
Before that my MAIL_CONFIG was always null.
For anyone interested in getting it working for a Linux service:
I simply added the line:
Environment='MAIL_CONFIG=/opt/tomcat/conf/mail-config.properties'
to my /etc/systemd/system/tomcat.service.
Before that my MAIL_CONFIG was always null.
Hi,
has anybody seen following exception?
05-Sep-2019 14:15:25.932 WARNUNG [http-nio-8080-exec-3] org.camunda.bpm.engine.rest.exception.ExceptionHandler.toResponse java.lang.IllegalStateException: Unable to load mail configuration from: here is the correct path
…
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: here is the correct path (Zugriff verweigert)
at java.io.FileInputStream.open0(Native Method)
The environment variable MAIL_CONFIG is defined and pointing to the mail-config.properties file located in tomcat conf directory.
Is it not possible to define an OS wide environment variable?
In Windows, it works like a charm when setting the mail-config as an environment variable. However, under Linux/Ubuntu we are facing troubles. Camunda cannot find the defined properties file.