There is no information in the log that indicates anything is wrong.
The basic code runs some python code by doing a shell exec(). With smaller examples, it works fine.
This library has all the dependencies installed.
The method should return the output from the "Gensim" analysis, but it returns nothing on Windows under the Windows service. When I walk through the code in the debugger, connected to Tomcat, frustratingly, it works then. It also works when Tomcat is standalone.
Same code, same Tomcat version, same endpoints, work perfectly on the Mac (though that's standalone Tomcat).
Same code, same Tomcat version (running as service), same endpoints, work perfectly on Windows 10.
We've had trouble with Python Gensim models in the past. On PythonAnywhere, they would crash and they told us we would need a $149/month special server. We then setup a Linux AWS instance and used Flask (web service for python) and after bumping up the instance, it worked there, too.
Since I can't debug this code and get it to fail (it only fails with the service running normally), not sure what to try next.