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

javax.servlet-api not found jetty #12474

Closed
sahil3390 opened this issue Nov 4, 2024 · 7 comments
Closed

javax.servlet-api not found jetty #12474

sahil3390 opened this issue Nov 4, 2024 · 7 comments
Labels

Comments

@sahil3390
Copy link

Hi Team,

We have a question regarding the Jetty 3PP used in our product. Currently, we are using Jetty version 9.4.56, which depends on javax.servlet-api-3.1.jar. However, as stated on the Jetty 3PP homepage, we downloaded the package from the link "https://github.com/jetty/jetty.project/releases/tag/jetty-9.4.56.v20240826" but could not find the javax.servlet-api-3.1.jar file in the downloaded package.

Could you clarify why javax.servlet-api-3.1.jar is not included in the Jetty package if Jetty v9.4.56 relies on it?

We look forward to your prompt response.

@sbordet
Copy link
Contributor

sbordet commented Nov 4, 2024

@sahil3390 Jetty 9.4.x is at end of community support, see:

Please upgrade to Jetty 12.

FTR. the javax.servlet classes are present, just in a different jar.

@sbordet sbordet closed this as completed Nov 4, 2024
@sahil3390
Copy link
Author

Thanks for the quick support.

Can please mention in which jar we can find the javax.servlet classes, i tried search in the source but unable to find it.

@olamy
Copy link
Member

olamy commented Nov 5, 2024

You can download javax.servlet classes from https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/

@sahil3390
Copy link
Author

Does this mean that we need to download javax.servlet-api compatible version with jetty 9.4.56 separately from: https://repo.maven.apache.org/maven2/javax/servlet/javax.servlet-api/ and it is not part of the jetty.project-jetty-9.4.56.v20240826.tar.gz present on github?

@olamy
Copy link
Member

olamy commented Nov 5, 2024

As far as I can see it's part of the jetty-distribution


olamy@pop-os:~/dev/sources/jetty/jetty.project/target$  unzip -l jetty-distribution-9.4.56.v20240826.zip | grep servlet-api
    95806  2024-08-26 13:21   jetty-distribution-9.4.56.v20240826/lib/servlet-api-3.1.jar


@sahil3390
Copy link
Author

if i am not wrong jetty-distribution is part of jetty.project-jetty-9.4.56, right?

@sbordet
Copy link
Contributor

sbordet commented Nov 5, 2024

@sahil3390 the package you downloaded from GitHub is the Jetty source code, which does not produce the Servlet APIs.

The jetty-home artifact that you can download from Maven Central contains the Servlet API jar.

Update to Jetty 12 and read the documentation:
https://jetty.org/docs/jetty/12/operations-guide/begin/index.html

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

3 participants