Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
DDupont1610375152
Contributor
Contributor

Error when executing Talend ESB has microservice

Hello,

I have an error when I execute a Talend 8 ESB route.

This error occur when a route is executed has a micro service (Spring boot).

It works fine when the route is executed in Talend Studio.

 

Error at runtime : 

java.lang.NoSuchMethodError:

javax.servlet.http.HttpServletMapping javax.servlet.http.HttpServletRequest.getHttpServletMapping()

 

More precision :
--------------

The route define a REST service.

This error occurs only if this route call another Talend route with a REST service.

What I have analysed :

The method HttpServletRequest.getHttpServletMapping() is only defined for Servlet version 4.0

Servlet version used by Talend 8 is 3.20.

Tomcat used by Talend is version 9.0.84 that use Servlet 4-0

Maybe this can explain the problem.

Labels (1)
  • v8.x

1 Reply
F_B
Specialist
Specialist

Hi @DDupont1610375152 ,

as you already suggested, the main issue appears to be a mismatch between the Servlet API version that Talend is using and the version expected by the embedded Tomcat server. Did you find a way to solve it?