ApacheTomcat says it is enabled but it is not running
Posted: 24 Dec 2025, 04:05
So I am not happy right now. I am going to says something that I should not, but would you people at Terra Master get your collective heads out of your arsses. Now that I got that off of my chest. Let me tell you the problem. Most of the apps that have anything to do with the web don't work. I have uninstalled and reinstalled many times, but they just will not work. I am ok with navigating and doing some sleuthing in Linux. I first check to see if the Tomcat server was running. Well, I knew it wasn't, or at least I was pretty sure that was the case. Then I tracked down the script in the Tomcat folder that starts the daemon. Ran it and this is what it reports.
kerplatz@TNAS:/usr/local/ApacheTomcat/ApacheTomcat/bin# bash startup.sh
Using CATALINA_BASE: /usr/local/ApacheTomcat/ApacheTomcat
Using CATALINA_HOME: /usr/local/ApacheTomcat/ApacheTomcat
Using CATALINA_TMPDIR: /usr/local/ApacheTomcat/ApacheTomcat/temp
Using JRE_HOME: /usr/local/java/jdk-17.0.11
Using CLASSPATH: /usr/local/ApacheTomcat/ApacheTomcat/bin/bootstrap.jar:/usr/local/ApacheTomcat/ApacheTomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
That was a lie. The Tomcat server did not start because I checked it and was not present. So I noticed it needs java to run so I made sure Java was installed in the Apps, and it said it was and the directory was present. All Good so far, until I tried to run the java executable and this error pops up.
kerplatz@TNAS:/usr/local/ApacheTomcat/ApacheTomcat/bin# java
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
The library does exist under the JDK directory. AI tells me that I need to add this
export LD_LIBRARY_PATH=/path/to/directory/containing/libjli.so:$LD_LIBRARY_PATH
to the bashrc file. Why should I have to do this? I worry that it will just break again when new versions get installed or updated. This really frustrates me because I am relying on Terra Master to make this work without me having to fix their mess. What should I to make this problem go away permanently so I can fix the next problem, whatever that happens to be? Thanks for your input.
kerplatz@TNAS:/usr/local/ApacheTomcat/ApacheTomcat/bin# bash startup.sh
Using CATALINA_BASE: /usr/local/ApacheTomcat/ApacheTomcat
Using CATALINA_HOME: /usr/local/ApacheTomcat/ApacheTomcat
Using CATALINA_TMPDIR: /usr/local/ApacheTomcat/ApacheTomcat/temp
Using JRE_HOME: /usr/local/java/jdk-17.0.11
Using CLASSPATH: /usr/local/ApacheTomcat/ApacheTomcat/bin/bootstrap.jar:/usr/local/ApacheTomcat/ApacheTomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
That was a lie. The Tomcat server did not start because I checked it and was not present. So I noticed it needs java to run so I made sure Java was installed in the Apps, and it said it was and the directory was present. All Good so far, until I tried to run the java executable and this error pops up.
kerplatz@TNAS:/usr/local/ApacheTomcat/ApacheTomcat/bin# java
java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
The library does exist under the JDK directory. AI tells me that I need to add this
export LD_LIBRARY_PATH=/path/to/directory/containing/libjli.so:$LD_LIBRARY_PATH
to the bashrc file. Why should I have to do this? I worry that it will just break again when new versions get installed or updated. This really frustrates me because I am relying on Terra Master to make this work without me having to fix their mess. What should I to make this problem go away permanently so I can fix the next problem, whatever that happens to be? Thanks for your input.