service tomcat7 start fails, but the process exists and tomcat is running

后端 未结 4 2049
名媛妹妹
名媛妹妹 2021-02-19 10:29

I have been trying to install tomcat7 on ubuntu docker images with apt-get install tomcat7. The installation works fine and starting tomcat from the catalina.sh wo

4条回答
  •  -上瘾入骨i
    2021-02-19 11:12

    I encountered this. I fixed it (finally) by adding JAVA_HOME=/usr/lib/jvm/java-8-oracle to /etc/default/tomcat7. For some reason it was using that JAVA_HOME to actually run the process, but it was using /usr/lib/jvm/default-java to check if the process was running. This confused it, so it never detected that the process was running.

提交回复
热议问题