java.lang.ClassFormatError: Duplicate method name&signature in class file
Problem :
We come across this common exception when using eclipse.
Exception I Encountered Was :
###################################################################################################################
java.lang.ClassFormatError: Duplicate method name signature in class file###################################################################################################################
Solution :
This exception was caused when i was importing maven project in my eclipse. After importing the project and starting the server i came across this common exception. Please see the below explanation to resolve the exception.
Example :
When trying to import a already existing Maven project, select / browse the appropriate folder. Then click on finish rather than clicking the next button.
Clicking the next button created a different package structure which actually caused the exception "java.lang.ClassFormatError".
Similar Exception :
- java.lang.ClassFormatError: Duplicate method name signature in class file