If you run your XAS as a service it is required to define all constants in your application.conf file.
So edit the application.conf and add at the bottom of your file:
Constant_ConstantName = the value you want it to have
Constant_ConstantName2 = another value
Constant_ConstantName3 = 50