I built a plugin for a web app that uses tomcat. The plugin is registered as a servlet bean. Now I want to use rabbitmq with the latest amqp client lib. Which has a dependency on classes in slf4j-api-1.7.25.jar. Unfortunately the web app has also a dependency on slf4j but an older version. So adding the the new jar file crashes the web app. Is there anything to rescue? I have two dependencies out of my control.
Asked
Active
Viewed 282 times
1 Answers
1
No.
Use an older version of the amqp client which has the dependencies you like.
Then at your leisure upgrade the web app to the version of slf4j pulled in by the client. Might even be due diligence.

Thorbjørn Ravn Andersen
- 73,784
- 33
- 194
- 347
-
Thx. Problem solved. Is this in general called "jar hell"? – mbr Jan 19 '19 at 10:39
-
By some. It is one of the peculiarities of the Maven platform that does not yet have a satisfactory general solution, namely that a newer version of a dependency is expected to always be a direct replacement for any older version. – Thorbjørn Ravn Andersen Jan 19 '19 at 11:49