Wednesday, January 28, 2015

Handling classpath issues

Came across this issue today
java.lang.NoSuchMethodError    org.apache.commons.codec.binary.Base64.encodebase64

Eventually realized this was because the class Base64 was picked from wrong jar file... the ques was which one , I mean as i got this in web application ... so the hierarchy is not easy to trace.

I tried adding the following line before the exception

And then eventually modified the classpath settings to modify the issue.

No comments: