Hello jerry,
Thanks for reporting this issue, I'm not very familiar with the spring
version but from the looks of it the issue has been around for ... a long
time.
It looks like the log4j2.xml file would work with run.sh but not with
james.sh
One option to fix this is to change the 4th line of the file from
> <Property name="logDir">${sys:app.home}/log</Property>
to
> <Property name="logDir">${sys:app.home:-..}/log</Property>
setting the default log directory to '../log'
Here is a sed command to do the edit in place
> sed -i 's/{sys:app.home}/{sys:app.home:-..}/' conf/log4j2.xml
If you can confirm this works I'll push the fix on master
You solution relies on setting an absolute path in the wrapper.conf which
cannot be generalized so I'm looking for an alternative
Cheers (and happy new year!)
Jean
On Tue, Dec 30, 2025 at 7:41 PM Jerry Malcolm <[email protected]>
wrote:
> I'm installing the prebuilt james spring 3.9.0 on aws linux 2025. When
> starting james using "./bin/james start" a parameter is not being
> correctly defined. The logs are being written to
> ./bin/${sys:app.home}/log rather than the correct ./log folder.
>
> Adding:
> "wrapper.java.additional.15=-Dapp.home=/opt/james/james-server-spring-app-3.9.0"
>
> to ./conf/wrapper.conf fixed the problem.
>
> Not sure if this is a known issue already. Just posting in case it
> hasn't been reported.
>
> Thx
>
> Jerry
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>