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

[Feature Request]: update java servlet version (javax.servlet -> jakarta.servlet) #5089

Open
jimmybow opened this issue Mar 28, 2025 · 2 comments

Comments

@jimmybow
Copy link

What would you like to happen?

please plan to update java servlet version (javax.servlet -> jakarta.servlet)
I need to integration to springboot 3

Issue Priority

Priority: 3

Issue Component

Component: Website

@hansva
Copy link
Contributor

hansva commented Mar 28, 2025

Thanks for this ticket, I have a WIP where I was attempting to do this but some things are breaking so it will take a bit longer

@jimmybow
Copy link
Author

jimmybow commented Mar 28, 2025

OK, I already try replace javax.servlet to jakarta.servlet , and it work with springboot,
but I need set JettyMode = true

@Bean
public ServletRegistrationBean getStatusServlet() {
    GetStatusServlet servlet = new GetStatusServlet();
    servlet.setJettyMode(true);
    return new ServletRegistrationBean(servlet, "/hop/status/origin");
}

and mark each servlet class code in org.apache.hop.www because request.getRequestURI() is empty string ...

    //if (isJettyMode() && !request.getRequestURI().startsWith(CONTEXT_PATH)) {
    //  return;
    //}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants