Menu

#226 hapi-osgi-base: Unneeded statically linked slf4j-api throws error

2.3
closed-fixed
None
5
2015-05-20
2015-05-20
juantxorena
No

The bundle hapi-osgi-base in maven contains a copy of "slf4j-api-1.6.6.jar", and the MANIFEST.MF forces its use, instead of using the maven dependency (this bundle depends on hapi-base, which depends on slf4j-api).

This is causing problems when the application that is using hapi-osgi-bundle also depends on slf4j-api for its own things, the ClassLoader finds two different libraries with the same name and version and it throws an error.

The solution is to remove this jar file, and modify the MANIFEST.MF and the pom.xml file to reflect this (I'm not sure about the pom, though). We have done this in our own maven repository and it's working.

Discussion

  • Christian Ohr

    Christian Ohr - 2015-05-20

    The exclusion still referred to log4j which is not directly used anymore. fixed to exclude slf4j-api

     
  • Christian Ohr

    Christian Ohr - 2015-05-20
    • status: open --> closed-fixed
    • assigned_to: Christian Ohr
    • Group: 2.2 --> 2.3
     

Log in to post a comment.

MongoDB Logo MongoDB