@Petr Prochazka Thank you very much.
All the parameters for this JNDIs were correct but it looks like someone was trying to use SQL comments and there were two "rogue" lines: "/*" and "*/".
After removing them the error disappeared. It's interesting that this .properties file is working fine in 9.1 but fails in 9.4. Handling of the .properties file must have changed.