我知道这可能被视为重复,但其他答案都不适用于我。
我正在将一个WAR文件部署到ubuntu 14.04。 无论我用(1.6,1.7,1.8)编译的版本,我都会继续得到这个错误。 我的tomcat版本
ubuntu@HOST:/opt/tomcat/bin$ ./version.sh Using CATALINA_BASE: /opt/tomcat Using CATALINA_HOME: /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-8-oracle Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar Server version: Apache Tomcat/8.0.23 Server built: May 19 2015 14:58:38 UTC Server number: 8.0.23.0 OS Name: Linux OS Version: 3.11.0-15-generic Architecture: amd64 JVM Version: 1.8.0_111-b14 JVM Vendor: Oracle Corporation请注意它是1.8.0,但网络管理员说这个
这毫无意义。 请注意,tomcat7当前已安装但未运行。
附加信息:
ubuntu@HOST:/opt/tomcat/bin$ java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
I understand this may be considered a duplicate but none of the other answers worked for me.
I'm deploying a WAR file to ubuntu 14.04. No matter the version I compile with (1.6,1.7,1.8) I continue to get this error. My tomcat versions
ubuntu@HOST:/opt/tomcat/bin$ ./version.sh Using CATALINA_BASE: /opt/tomcat Using CATALINA_HOME: /opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/temp Using JRE_HOME: /usr/lib/jvm/java-8-oracle Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar Server version: Apache Tomcat/8.0.23 Server built: May 19 2015 14:58:38 UTC Server number: 8.0.23.0 OS Name: Linux OS Version: 3.11.0-15-generic Architecture: amd64 JVM Version: 1.8.0_111-b14 JVM Vendor: Oracle Corporationnote that it's 1.8.0 but the web mananger says this
which makes no sense. Note that tomcat7 is currently installed but not running.
Additional Info:
ubuntu@HOST:/opt/tomcat/bin$ java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)最满意答案
很明显,您正在运行带有1.7 JVM的tomcat(请参阅管理器输出)。 仔细检查你启动tomcat的方式。 你在某个地方在启动脚本中设置JAVA_HOME吗?
这取决于操作系统版本以及安装tomcat的方式,以便在何处查找配置设置。 对于Ubuntu 16.04上的标准安装,tomcat 7设置位于/etc/default/tomcat7 。
It is clear that you are running tomcat with a 1.7 JVM (see managers output). Double check the way you start tomcat. Do you somewhere set JAVA_HOME in the startup script?
It depends on the OS version and the way tomcat is installed where to find the configuration settings. For a standard install on Ubuntu 16.04 the tomcat 7 settings are found in /etc/default/tomcat7.
更多推荐
发布评论