zhaidw opened a new issue, #10386:
URL: https://github.com/apache/skywalking/issues/10386

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar feature requirement.
   
   
   ### Description
   
   When use  skywalking-agent for springboot3 project , it is base servlet 5.0, 
package javax.servlet. has removed to jakarta.servlet , so the agent runs with 
many  NoSuchMethodError, please consider to support.
   
   ### Use case
   
   skywalking-agent/logs/skywalking-api.log :
   
   `
   InstMethodsInter : class[class 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod]
 after method[getBean] intercept failure 
   java.lang.NoSuchMethodError: 'javax.servlet.http.HttpServletRequest 
org.springframework.web.context.request.ServletRequestAttributes.getRequest()'
        at 
org.apache.skywalking.apm.plugin.spring.mvc.v5.GetBeanInterceptor.afterMethod(GetBeanInterceptor.java:51)
        at 
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:97)
        at 
org.springframework.web.method.HandlerMethod.getBean(HandlerMethod.java)
        at 
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:207)
        at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:152)
        at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:117)
        at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:884)
        at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
        at 
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)
        at 
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1080)
        at 
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:973)
        at 
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1010)
        at 
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:913)
        **at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:520)**
        at 
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:884)
        at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:587)
        at 
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
        at 
org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)
   `
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
notifications-unsubscr...@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to