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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jetty-io:9.4.48.v20220622 : while running with mvn test , getting Class not Available #11545

Closed
shivsrivastava opened this issue Mar 21, 2024 · 14 comments
Labels
Bug For general bugs on Jetty side End-of-Life release

Comments

@shivsrivastava
Copy link

Jetty version(s)
jetty-io:9.4.48.v20220622

Jetty Environment

Java version/vendor (use: java -version)
tried with JDK 8 and above

OS type/version
Windows 10 and Linux

Description
jetty-io:9.4.48.v20220622 : while running with mvn test , getting Class not Available

How to reproduce?

We are trying to build source code with test cases , here are the details.

Java version - 8 and above
Maven - 3.3.1 and above

But we are getting this exception. Also attached log.

Please help me to understand on
build-jetty-io-9.4.48.v20220622-2024-02-27-10-56-35-139-6266227635 (1).txt
which jdk version, Maven version and test command it will work.

"[ERROR] Errors:
[27 11:08:49.924] | [ERROR] URIUtilTest.uriLastSegmentSource:679 » NoSuchFile /tmp/pkgs_raw/jetty-io%20/9.4.48.v20220622/jetty-util/src/test/resources/test-base-resource.jar
[27 11:08:49.924] | [ERROR] PathResourceTest.testNonDefaultFileSystemGetFile:104 » NoSuchFile /tmp/pkgs_raw/jetty-io%20/9.4.48.v20220622/jetty-util/src/test/resources/example.jar
[27 11:08:49.924] | [ERROR] PathResourceTest.testNonDefaultFileSystemGetInputStream:56 » NoSuchFile /tmp/pkgs_raw/jetty-io%20/9.4.48.v20220622/jetty-util/src/test/resources/example.jar
[27 11:08:49.924] | [ERROR] PathResourceTest.testNonDefaultFileSystemGetReadableByteChannel:80 » NoSuchFile /tmp/pkgs_raw/jetty-io%20/9.4.48.v20220622/jetty-util/src/test/resources/example.jar
[27 11:08:49.924] | [ERROR] PathResourceTest.testNonDefaultFileSystemWriteTo:125 » NoSuchFile /tmp/pkgs_raw/jetty-io%20/9.4.48.v20220622/jetty-util/src/test/resources/example.jar
[27 11:08:49.924] | [INFO]"

@shivsrivastava shivsrivastava added the Bug For general bugs on Jetty side label Mar 21, 2024
@joakime
Copy link
Contributor

joakime commented Mar 21, 2024

Jetty 9.x is at End of Community Support.

See:

To build Jetty 9, you require OpenJDK 8 (MUST be OpenJDK based, eg: IBM based JVMs do not work.) and Maven 3.9.6
Note: Java 8 based builds will not build + test everything in Jetty.

@joakime
Copy link
Contributor

joakime commented Mar 21, 2024

Oh, and you cannot build Jetty 9 with a OpenJDK versions newer than OpenJDK 11. (so don't attempt to use OpenJDK 17 or OpenJDK 21, it wont work. If you want to use OpenJDK 17 or newer, use Jetty 12)

@shivsrivastava
Copy link
Author

I have taken github code and trying to build using jdk 8 . Requirement is, it should also include test cases while building. I got stuck on this issue.

@gregw
Copy link
Contributor

gregw commented Mar 22, 2024

@shivsrivastava as stated above, jetty-9.4 is end-of-community support.
You can see here that jetty-9.4 can be compiled and is passing tests. The configuration for that jenkins instance is here so you should be able to discover the information you need.

For any further assistance on jetty-9.4, please contact sales@webtide.com to enquire about commercial support.

@shivsrivastava
Copy link
Author

shivsrivastava commented Mar 28, 2024

I have tried with OpenJDK 8 and Maven 3.9.6 . UT status is getting failed still. Please suggest how to build with UT

@joakime
Copy link
Contributor

joakime commented Mar 28, 2024

@shivsrivastava as stated above, jetty-9.4 is end-of-community support.
You can see here that jetty-9.4 can be compiled and is passing tests. The configuration for that jenkins instance is here so you should be able to discover the information you need.

For any further assistance on jetty-9.4, please contact sales@webtide.com to enquire about commercial support.

@shivsrivastava
Copy link
Author

@shivsrivastava as stated above, jetty-9.4 is end-of-community support. You can see here that jetty-9.4 can be compiled and is passing tests. The configuration for that jenkins instance is here so you should be able to discover the information you need.

For any further assistance on jetty-9.4, please contact sales@webtide.com to enquire about commercial support.

sure will check and confirm.

@shivsrivastava
Copy link
Author

Tried with possible JDK version 8 and Maven , but got failed.

@joakime
Copy link
Contributor

joakime commented Apr 2, 2024

@shivsrivastava as stated above, jetty-9.4 is end-of-community support.
You can see here that jetty-9.4 can be compiled and is passing tests. The configuration for that jenkins instance is here so you should be able to discover the information you need.

For any further assistance on jetty-9.4, please contact sales@webtide.com to enquire about commercial support.

@devidandupati
Copy link

I have tried with OpenJDK 17,11,8 and Maven 3.9.6 &3.9.4 . UT status is failing still.

@gregw gregw closed this as completed Apr 4, 2024
@meetankit24
Copy link

At last i also got UT failure with OpenJDK18 and Maven 3.9.6

@sourabhmagdum45
Copy link

I have tried with different JDK version with Maven 3.9.6 but still UT status Failing

@shivsrivastava
Copy link
Author

Please update on it.

@joakime
Copy link
Contributor

joakime commented Apr 15, 2024

@meetankit24 @sourabhmagdum45 @shivsrivastava Jetty 9 is at End of Community Support.

You should not expect support here for that version of Jetty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side End-of-Life release
Projects
None yet
Development

No branches or pull requests

6 participants