Setup: Ubuntu 20.04, Tomcat 9.0.37, Java 8, Postgres 12, MySQL 8,
Hardware: iWhatever with 4 cores, 24G RAM, and screeds of disk space.
Bog standard Tomcat installation, no requirement for SSL, existing apps are happy.
Despite there being no need for SSL, it seems to be expecting APR and TC-Native to be installed.
NO WHERE IN THE INSTALLATION GUIDE IS THIS NOTED, NOR HOW TO DO IT CORRECTLY.
I have tried to get that set up, but am thinking that there has to a saner/simpler way to deal with this.
Current Installation and Catalina logs attached
- I was trying to install JasperServer with Tomcat and Postgresql aleady present/running.
- Installation worked but didn't JasperServer would not run.
- Jasperserver couldn't find files required for encryption. Note that these files had been successfully written/saved.
- They could not be found!?
- Why? Because the installation was saving them in the home directory of the installing user.
- Not cool. Tomcat is generally set to run as a faux user (no home directory etc)
- Create a Tomcat user WITH a home directory
- Install JasperServer as that user (the required files are now where they "should" be)
- Ideal? No.
- Works? Yes.
- Yes, you can create a Tomcat user with a home directory and Install JasperServer as that user (the required files are now where they "should" be), but this isn't necessary.
- Instead, install as anyone you want (root, or any non-root user that can execute the scripts and add files), then you'll need to move the resulting encryption files to a location readable by the user running tomcat, do so follow step #2 here.
Or use step #1 from the same link above in conjunction with the WAR file installation approach to specify the optimal location for the resulting encryption files in advance.