You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2025/02/10 08:23:41 UTC
[Bug 69574] New: tomcat 10.1.34 has java 22 build in libs and can't be run on java 11.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69574
Bug ID: 69574
Summary: tomcat 10.1.34 has java 22 build in libs and can't be
run on java 11.
Product: Tomcat 10
Version: 10.1.34
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: Packaging
Assignee: dev@tomcat.apache.org
Reporter: valentin.po@gmail.com
Target Milestone: ------
admin@m3 lib % unzip -p tomcat-coyote-ffm.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Bundle-License: https://www.apache.org/licenses/LICENSE-2.0.txt
Bundle-ManifestVersion: 2
Bundle-Name: tomcat-coyote-ffm
Bundle-SymbolicName: org.apache.tomcat-coyote-ffm
Bundle-Version: 10.1.34
Export-Package: org.apache.tomcat.util.net.openssl.panama;uses:="javax
.net.ssl,org.apache.juli.logging,org.apache.tomcat.util.net,org.apach
e.tomcat.util.res";version="10.1.34",org.apache.tomcat.util.openssl;v
ersion="10.1.34"
Implementation-Title: Apache Tomcat
Implementation-Vendor: Apache Software Foundation
Implementation-Version: 10.1.34
Import-Package: java.io,java.lang,java.lang.foreign,java.lang.invoke,j
ava.lang.ref,java.math,java.net,java.nio,java.nio.charset,java.securi
ty,java.security.cert,java.util,java.util.concurrent,java.util.functi
on,java.util.stream,javax.net.ssl,javax.security.auth.x500,org.apache
.juli.logging;version="[10.1,11)",org.apache.tomcat.util.buf;version=
"[10.1,11)",org.apache.tomcat.util.compat;version="[10.1,11)",org.apa
che.tomcat.util.file;version="[10.1,11)",org.apache.tomcat.util.net;v
ersion="[10.1,11)",org.apache.tomcat.util.net.jsse;version="[10.1,11)
",org.apache.tomcat.util.net.openssl;version="[10.1,11)",org.apache.t
omcat.util.net.openssl.ciphers;version="[10.1,11)",org.apache.tomcat.
util.res;version="[10.1,11)"
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=22))"
Specification-Title: Apache Tomcat
Specification-Vendor: Apache Software Foundation
Specification-Version: 10.1
X-Compile-Source-JDK: 22
X-Compile-Target-JDK: 22
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 69574] tomcat 10.1.34 has java 22 build in libs and can't be run on java 11.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69574
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|NEEDINFO |RESOLVED
--- Comment #3 from Remy Maucherat <re...@apache.org> ---
Ok, so it seems you are using a build system to process Tomcat. Then you are
using proguard which in turn only seems to support Java 21 bytecode, given the
error. In that case, the tomcat-coyote-ffm.jar JAR needs to be handled in some
way (most likely deleted).
This does not change the Java requirements that we advertise with Tomcat 10.1
since we support either our scripts for Tomcat standalone or the Tomcat
embedded packaging (which will not include the Java 22 classes) for running
Tomcat, and neither option requires Java 22.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 69574] tomcat 10.1.34 has java 22 build in libs and can't be run on java 11.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69574
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
It is normal that Tomcat 10.1 has Java 22+ classes in this JAR. However, it
should not prevent running Tomcat 10.1 on Java 11.
Please give more information on the configuration you are using and error you
are getting.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 69574] tomcat 10.1.34 has java 22 build in libs and can't be run on java 11.
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=69574
--- Comment #2 from Valentin <va...@gmail.com> ---
Remy, thanks for quick reply.
We are using it as servlet container with default settings.
It happened on build system (java 21), after we upgrade from 10.1.16 this lib
prevent from build. On RUNNING.txt where is no any information about java
22 needed to use this lib or run.
/mnt/source/home/bamboo/xml-data/build-dir/AR-RUS-JOB1/archiva3/build.xml:61:
Can't read [/mnt/source/home/bamboo/build/tomcat/tomcat10_tmp/lib] (Can't read
[tomcat-coyote-ffm.jar] (Can't process class
[org/apache/tomcat/util/net/openssl/panama/OpenSSLContext$1.class] (Unsupported
version number [66.0] (maximum 65.65535, Java null))))
at proguard.ant.ProGuardTask.execute(ProGuardTask.java:337)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:299)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
at org.apache.tools.ant.Task.perform(Task.java:350)
at org.apache.tools.ant.Target.execute(Target.java:449)
at org.apache.tools.ant.Target.performTasks(Target.java:470)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1401)
at org.apache.tools.ant.Project.executeTarget(Project.java:1374)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1264)
at org.apache.tools.ant.Main.runBuild(Main.java:818)
at org.apache.tools.ant.Main.startAnt(Main.java:223)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: java.io.IOException: Can't read
[/mnt/source/home/bamboo/build/tomcat/tomcat10_tmp/lib] (Can't read
[tomcat-coyote-ffm.jar] (Can't process class
[org/apache/tomcat/util/net/openssl/panama/OpenSSLContext$1.class] (Unsupported
version number [66.0] (maximum 65.65535, Java null))))
at proguard.InputReader.readInput(InputReader.java:282)
at proguard.InputReader.readInput(InputReader.java:229)
at proguard.InputReader.readInput(InputReader.java:206)
at proguard.InputReader.execute(InputReader.java:157)
at proguard.pass.PassRunner.run(PassRunner.java:24)
at proguard.ProGuard.readInput(ProGuard.java:330)
at proguard.ProGuard.execute(ProGuard.java:123)
at proguard.ant.ProGuardTask.execute(ProGuardTask.java:333)
... 15 more
Caused by: java.io.IOException: Can't read [tomcat-coyote-ffm.jar] (Can't
process class
[org/apache/tomcat/util/net/openssl/panama/OpenSSLContext$1.class] (Unsupported
version number [66.0] (maximum 65.65535, Java null)))
at proguard.io.DirectorySource.readFiles(DirectorySource.java:84)
at proguard.io.DirectorySource.pumpDataEntries(DirectorySource.java:54)
at proguard.InputReader.readInput(InputReader.java:278)
... 22 more
Caused by: java.io.IOException: Can't process class
[org/apache/tomcat/util/net/openssl/panama/OpenSSLContext$1.class] (Unsupported
version number [66.0] (maximum 65.65535, Java null))
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org