Is Tomcat 7 now compatible with Java 7?
Asked Answered
A

4

11

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!

Allayne answered 15/2, 2012 at 13:32 Comment(0)
Q
17

Officially Java 1.6 or later is supported.

enter image description here

This post goes into more detail.

Quean answered 15/2, 2012 at 13:59 Comment(3)
The "later" is not true anymore, documentation has changed. See https://mcmap.net/q/471082/-is-tomcat-7-now-compatible-with-java-7Sampling
I've updated the first link. It was mistakenly pointing to the "Building Tomcat" page which is not for users but for people making changes to Tomcat itself. The page for Tomcat users says Java 6 or later.Quean
Thank you for the update ;) The migration guide also confirm that. I've corrected my answer too.Sampling
S
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

Sampling answered 15/2, 2012 at 13:55 Comment(2)
looks like they updated the documentation page - it no longer says "or later"Liggitt
That's true. I don't see any JDK 1.6 or later as of Feb 27, 2014 from Tomcat 7 document.Griff
F
3

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

Frazzle answered 11/3, 2013 at 10:0 Comment(0)
R
0

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.

Revelation answered 22/5, 2014 at 7:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.