Tomcat 7 现在与 Java 7 兼容吗?
如果不是,预计什么时候会发生?
如果是,您是否知道将 Tomcat 7/Java 6 的现有安装迁移到 Tomcat 7/Java 7 是否有特殊的操作?
谢谢!
If not, when is it foreseen for?
If yes, do you know if there is something special to migrate an existing installation of Tomcat 7/Java 6 to Tomcat 7/Java 7?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
正式 支持 Java 1.6 或更高版本。
这篇文章 介绍了更多详细信息。
Officially Java 1.6 or later is supported.
This post goes into more detail.
上个月(2013 年 2 月)我将 Java 从 1.6 更新到 1.7。但是,更新会产生影响 - Tomcat 7.0.37 在 Java 更新后不再运行。
我尝试卸载 Java 1.7,替换为 1.6,Apache Tomcat 再次顺利运行。我忘记捕获确切的错误消息,并且在服务器日志中也找不到。
供参考。
谢谢
Last month (Feb. 2013) I updated my Java from 1.6 to 1.7. However, the update has repercussion - Tomcat 7.0.37 is not running anymore after the Java update.
I tried un-installing the Java 1.7, replace with 1.6 and the Apache Tomcat runs smoothly again. I forgot to capture the exact error message and I couldn't find also on the server logs.
FYI.
Thanks
已编辑
正如sourcedelica 官方文档说你可以使用 JDK 1.6 或更高版本,这样你就可以使用 Tomcat 7 使用 JDK 1.7。
另请查看 Tomcat 7 迁移指南。
顺便说一句,使用 JDK 1.6 开发的应用程序可能会失败,使用 JDK 1.7 时尤其如此,如果您使用
sun.*
包中的类 (这很糟糕)。即使向后兼容性很强,也存在一些极端情况,请参阅 Oracle 不兼容性列表了解更多详细信息。您还可以在这篇文章中找到一些与此相关的内容:新JDK 1.6 和 1.7 中的功能
EDITED
As pointed out by sourcedelica the Official documentation says you can use JDK 1.6 or later so you can use Tomcat 7 with JDK 1.7.
Also check the Tomcat 7 Migration Guide .
By the way your applications developed with JDK 1.6 may fail using JDK 1.7, especially if you use classes in
sun.*
packages (which is bad). Even if retro-compatibility is strong, some corner cases exist, see Oracle list of incompatibilities for more details.You can also find some stuff about this in this SO article : New features in JDK 1.6 and 1.7
我正在使用
jdk6
和tomcat 7
。我有以下问题。要抑制此消息,请在
Java 7
上运行Tomcat
,从$CATALINA_HOME/lib
中删除WebSocket JAR
或将WebSocketJARs
添加到tomcat.util.scan.DefaultJarScanner.jarsToSkip
属性$CATALINA_BASE/conf/catalina.properties
。请注意,已弃用的
Tomcat 7 WebSocket API
将可用。i am using
jdk6
withtomcat 7
.i have following issues.To suppress this message, run
Tomcat
onJava 7
, remove theWebSocket JAR
s from$CATALINA_HOME/lib
or add theWebSocketJARs
to thetomcat.util.scan.DefaultJarScanner.jarsToSkip
property in$CATALINA_BASE/conf/catalina.properties
.Note that the deprecated
Tomcat 7 WebSocket API
will be available.