Is Tomcat 7 now compatible with Java 7?

房东的猫 提交于 2019-11-27 07:38:52

问题


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!


回答1:


Officially Java 1.6 or later is supported.

This post goes into more detail.




回答2:


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




回答3:


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




回答4:


i am using jdk6 with tomcat 7.i have following issues.

INFO: JSR 356 WebSocket (Java WebSocket 1.0) support is not available when running on Java 6.

To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocketJARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties.

Note that the deprecated Tomcat 7 WebSocket API will be available.



来源:https://stackoverflow.com/questions/9294355/is-tomcat-7-now-compatible-with-java-7

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!