-
Notifications
You must be signed in to change notification settings - Fork 698
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
Support jakarta.servlet naming over javax.servlet #2260
Comments
By the way, Google App Engine Java21 now supports the Jakarta names. See https://twitter.com/ludoch/status/1732519005288796264 |
When support of jakarta can be expected? It blocks migration from Spring Boot 2.x to 3.x |
Does anyone know of a workaround for this issue? Doesn't look like it's high on Google's priority list. |
@Edwardiv1 I ran sample project in Jakarta 10 EE and it just worked fine to use google-api-java-client. Would you share a simple Servlet example that fails due to ClassNotFound error? |
Every where you see javax.servlet.* in https://github.com/search?q=repo%3Agoogleapis%2Fgoogle-api-java-client%20javax.servlet&type=code this library will not work on Jakarta web servers. |
For example, try to use google-api-client-servlet/src/main/java/com/google/api/client/googleapis/extensions/servlet/notifications/WebhookUtils.java with your Jarkata servlet request object and you'll see a ClassNotFound at runtime ( Java EE servers provide at runtime the servlet APIs, they should not be bundled with your app) |
@Edwardiv1 @ragnor Are you using NotificationServlet or WebhookUtils that appear in the search query ludoch's comment? Line 31 in fbbc374
|
Yes, I'm using WebhookUtils class.
czw., 9 maj 2024, 02:18 użytkownik Tomo Suzuki ***@***.***>
napisał:
… @Edwardiv1 <https://github.com/Edwardiv1> @ragnor
<https://github.com/ragnor> Are you using NotificationServlet or
WebhookUtils that appear in the search query ludoch's comment?
—
Reply to this email directly, view it on GitHub
<#2260 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEALZMN4AGE57A6VL26TRTZBK6HBAVCNFSM6AAAAAAUZV3TAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBRG4YDGMBQGU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ragnor Thank you. Pardon my ignorance, but is there any document that recommends you to use the WebhookUtils class? Understanding usages helps prioritization. |
I'm using Google Calendar Java SDK. The part the uses servlets is referenced in the following link: |
@Edwardiv1 Thank you. Yes, these servlet classes are in a different repository. Follow googleapis/google-oauth-java-client#1112. |
I see. Thanks. That other link was filed just last week - I suppose that means they might get a response next year sometime. |
@Edwardiv1 We released google-oauth-client-servlet 1.36.0. Would you try the new classes in the new "jakarta" package? |
@ragnor Do you use WebhookUtils for Google Drive? https://developers.google.com/drive/api/guides/push |
Yes, I do. It is a legacy code that I've inherited. Is there any other
recommended way of consuming google drive notifications in Java?
…On Mon, 13 May 2024 at 16:43, Tomo Suzuki ***@***.***> wrote:
@ragnor <https://github.com/ragnor> Do you use WebhookUtils for Google
Drive? https://developers.google.com/drive/api/guides/push
—
Reply to this email directly, view it on GitHub
<#2260 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEALZIAXFHTRZH4IB62JB3ZCDGP7AVCNFSM6AAAAAAUZV3TAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXHAYTAOJSHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I just wanted to confirm the use cases. Thank you. I'll get back to you soon. |
It is the only class from the lib that I use that has javax imports. Simple
copy of the class where all javax are replaced by jakarta have unblocked
migration to Spring Boot 3.x.
Still at some point I hope I will remove this workaround and use only
official classes from the lib.
pon., 13 maj 2024, 17:04 użytkownik Tomo Suzuki ***@***.***>
napisał:
… I just wanted to confirm the use cases. I'll get back to you soon.
—
Reply to this email directly, view it on GitHub
<#2260 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEALZOAZ6HMLXM5NWLQJBDZCDI6XAVCNFSM6AAAAAAUZV3TAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXHA4TSNBZHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Fixes #2260 Copied the implementation with the jakarta.servlet namespace using the same methology as googleapis/google-oauth-java-client#1115. - Replaced javax with jakarta and declared the dependency with provided scope. - Keeping the classes as `Beta` annotated. - No tests exist for the classes. - Added `@since 2.6.0` as the last release was 2.5.1.
* feat: WebHookUtil classes using the jakarta namespace Fixes #2260 Copied the implementation with the jakarta.servlet namespace using the same methology as googleapis/google-oauth-java-client#1115. - Replaced javax with jakarta and declared the dependency with provided scope. - Keeping the classes as `Beta` annotated. - No tests exist for the classes. - Added `@since 2.6.0` as the last release was 2.5.1. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
I'd like to upgrade to newer versions of JakartaEE/JavaEE, but the package names have changed from javax.servlet to jakarta.servlet, so the Google Client SDK won't run (class not found errors).
This request is for the new Jakarta package names to be supported.
The text was updated successfully, but these errors were encountered: