Hi Team, I just downloaded a sample app from spring starter io with spring-boot-starter-webflux as a dependency. When I attach special agent and try to instrument. App crashes while starting the application server with below error.
Dependency:
Error:
_main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
Application runs fine without agent. I tried to debug a lot but could not find right solution.
When I add below dependency special agent works fine.
org.springframework.bootspring-boot-starter-web
But my question is, why spring web-flux project requires spring mvc. We cannot demand applicaiton team to include additional dependency right. Agent should able to instrument the code without any changes in app source.
Hi Team, I just downloaded a sample app from spring starter io with spring-boot-starter-webflux as a dependency. When I attach special agent and try to instrument. App crashes while starting the application server with below error. Dependency:
Error: _main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
Application runs fine without agent. I tried to debug a lot but could not find right solution. When I add below dependency special agent works fine.
But my question is, why spring web-flux project requires spring mvc. We cannot demand applicaiton team to include additional dependency right. Agent should able to instrument the code without any changes in app source.
Your help is greatly appreciated.
Regards, Rajiv