I faced a very confusing problem today where my email service, I am using simple-java-mail, stopped sending all in a sudden.. and an exception was raised:
Exception in thread "pool-3-thread-1" java.lang.NoSuchMethodError: com.sun.mail.util.TraceInputStream.(Ljava/io/InputStream;Lcom/sun/mail/util/MailLogger;)V
I was going insane as nothing affecting emails was added, I tried to use maven enforcer plugin to discover what was going on but with no clue.
The question was how can I discover which jar or library does a class at runtime come from?