Please refer below code snippet in liberty server.xml.
<library id="objectFactoryLib">
<fileset dir="" includes="naming-factory-5.5.15.jar"/>
<fileset dir="" includes="javax.mail-1.5.5.jar"/>
</library>
<jndiObjectFactory className="org.apache.naming.factory.MailSessionFactory" id="mailSessionFactory" libraryRef="objectFactoryLib" objectClassName="javax.mail.Session"/>
Getting the below error while deploying application in liberty server version 8.5.5.7.
Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session': no matching editors or conversion strategy found.
I have already removed the mail jar in other places and kept only in ear/web-inf/lib folder alone.but even getting the same error. Can anyone tel how to configure mail session in Liberty . Liberty 8.5.5.7 version not supporting java Mail 1.5 feature.
Note : My Application already running successfully in Tomcat /WAS .