I am getting a strange ClassFormatError when using the javaMail api to send email on my spring mvc web app.
Below is my mail-cfg.xml
<
I was having a similar issue,... so, when I was running JUnit an error occured:
Absent Code attribute in method that is not native or abstract in class file javax/servlet/http/HttpServlet
I solve it adding the following dependency (first one):
org.glassfish.main.extras
glassfish-embedded-all
3.1.2.2
test