Tomcat 7.0.73 doesn't work with java 9

后端 未结 8 585
难免孤独
难免孤独 2020-11-30 10:14

Unable to start tomcat based app with java 9 because of default \"java.endorsed.dirs\" option in catalina.sh.

-Djava.endorsed.dirs=/usr/local/share/tomcat/en         


        
相关标签:
8条回答
  • 2020-11-30 10:44

    To fix this bug, you need to install/update the Eclipse Web Tools Platform (WTP) to version 3.9.4 or later.

    Select Help > Install new Software... Select or add following URL: http://download.eclipse.org/webtools/repository/oxygen Check Web Tools Platform (WTP) 3.9.4 Select "Next" and follow instructions

    Reconfigure the tomcat in eclipse.

    0 讨论(0)
  • 2020-11-30 10:45

    In my case, what I did to answer the problem of Tomcat not running was to set Tomcat (version 7) with a lower Java version (e.g. Java 8).

    Then, in startup.sh, shutdown.sh and catalina.sh I added the following:

    export JAVA_HOME=`/usr/libexec/java_home -v 1.8`;
    
    0 讨论(0)
提交回复
热议问题