5 Replies Latest reply on Oct 17, 2012 6:50 PM by Stephen Coy

    How to deal with commons-codec version conflict?

    Shawn Johnson Newbie

      I am getting the following error in my logs:


      java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Base64.decodeBase64(Ljava/lang/String;)


      I have version 1.6 of apache commons codec in: war/WEB-INF/lib/commons-codec-1.6.jar


      However, I also have a custom "module" - com.documentum, which includes:  commons-codec-1.3.jar


      Then of course we have the in-built module - org.apache.commons.codec, using: commons-codec-1.4.jar



      This particular method was changed/added in 1.5 or 1.6.  I don't want to needlessly mess with the other modules if not required.  I'm just not sure how to sort this out to tell my calling class, which is in my WEB-INF/classes to look first to the WEB-INF/lib/commons-codec-1.6.jar?