A day ago I have been trying to start mango as a service when the server shut down and startup. For this purpose first of all, I have created a task via Windows Task Scheduler in order to start mango automatically whenever server startup. In this way, I couldn't start mango after restarting the server. Then I created a shortcut of ma-start.bat in the folder C:\Users\user1\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup, mango did not start again after restarting the server.
Then, I have deleted both windows schedular task and shortcut. Before all, method 1 was working properly.
What could cause to that? How can I solve it?
Open C:\Program Files (x86)\mango\bin
Open cmd window
Run command : cd C:\Program Files (x86)\BMS\bin
Run command ma-start.bat
Result: Mango gives error like below
Error: ERROR Null object returned for RollingRandomAccessFile in Appenders.
ERROR Unable to locate appender "logfile" for logger config "root"
- Run cmd as an administrator.
- Run command cd C:\Program Files (x86)\BMS\bin
- Run commandma-start.bat
Result: Mango works properly.
Thanks in advance.