Wildfly -9 javax.mail is not working

后端 未结 2 1029
半阙折子戏
半阙折子戏 2021-01-23 23:38

I am making use of Wildfly 9.0.0 Final and javax.mail api in my application.

I am getting the following log:

2015-07-27 15:08:16,318 CONFIG          


        
2条回答
  •  情歌与酒
    2021-01-24 00:05

    Finally I found it is because of mail module in Wildfly9.0.0.Final. We can do this as temporary solution.And it works for me.

    Open standalone-ha.xml from \standalone\configuration

    Releace the following

    
             
                    
              
      
    

    With

    
         
          
     
    

    Now open “module.xml” from \modules\system\layers\base\javax\mail\api\main

    Replace the following line

    
    

    With

    
    

    And copy the “javax.mail-1.5.1.jar” form

    \modules\system\layers\base\javax\mail\api\main
    

    To

    \modules\system\layers\base\javax\mail\api\main
    

    And remove “javax.mail-1.5.3.jar”

    from the

    \modules\system\layers\base\javax\mail\api\main
    

    And restart the server. It works for me.

提交回复
热议问题