ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/mail/MessagingException

后端 未结 4 910
轮回少年
轮回少年 2020-11-30 07:48

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

<         


        
4条回答
  •  误落风尘
    2020-11-30 08:21

    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
    
    

提交回复
热议问题