java.lang.NoClassDefFoundError: javax/servlet/ServletContext APM agent 1.29.0 in Docker

Hi @jseletz , thanks for reporting this.

I have managed to reproduce it, thus I will open an issue and investigate it further, I'll update this discussion when I have links to issue/PR to share.

In the mean time, you can disable the instrumentation that triggers it by setting
disable_instrumentations=spring-service-name (doc). The downside of this issue is that the agent won't be able to automatically use the application name set in Spring configuration and you will have to add an explicit service_name configuration for your application.

2 Likes