Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: selenium-server-standalone-2.53.0.jar fails to extract on Windows using Java 21 jar.exe #14202

Closed
chuckdumont opened this issue Jun 27, 2024 · 2 comments
Labels

Comments

@chuckdumont
Copy link

What happened?

When running jar --extract to extract the contents of selenium-server-standalone-2.53.0.jar on Windows, it fails because the META-INF folder contains both a LICENSE file and a license folder. This results in a name collision on Windows systems. Older versions of Java would just silently overwrite the duplicate files/folders, but recent versions of Java (not sure when this change was introduced but it fails with JDK21) fail instead.

This problem causes all kinds of issues. For me it shows up in Eclipse as project build errors for projects that have a dependency on this file.

Please update selenium-server-standalone-2.53.0.jar to avoid the name collision.

How can we reproduce the issue?

On a Windows system using JDK21 or above, run `jar --extract --file selenium-server-standalone-2.53.0.jar`.

Relevant log output

N/A

Operating System

Windows 11

Selenium version

N/A

What are the browser(s) and version(s) where you see this issue?

N/A

What are the browser driver(s) and version(s) where you see this issue?

N/A

Are you using Selenium Grid?

No

Copy link

@chuckdumont, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@diemol
Copy link
Member

diemol commented Jun 28, 2024

That version of Selenium is old and never meant to work flawlessly with Java 21. We don't go back and fix old versions, so I recommend unpacking it with an earlier version of Java.

@diemol diemol closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants