Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session'

, , , ,

The full exception is:


org.springframework.beans.TypeMismatchException: Failed to convert property value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session': no matching editors or conversion strategy found
Caused by:
java.lang.IllegalArgumentException: Cannot convert value of type [javax.mail.Session] to required type [javax.mail.Session] for property 'session': no matching editors or conversion strategy found



In my case when I got this exception, what I did is moved the activation.jar and mail.jar file from the web app lib directory to CATALINA_HOME/common/lib.

And it worked just fine.

ADAM setpassword 0x80005008Perf4J

Comments

Anonymous Monday, April 18, 2011 10:21:13 AM

mrswadge writes: Using Maven when I included Apache CXF runtime core and runtime frontend JAX WS the dependency hierarchy included Apache Geronimo Java Mail 1.4 - which was the cause of my problems. Once I excluded these from my POM the problems went away. org.apache.cxf cxf-rt-core ${cxfVersion} geronimo-javamail_1.4_specorg.apache.geronimo.specs org.apache.cxf cxf-rt-frontend-jaxws ${cxfVersion} geronimo-javamail_1.4_spec org.apache.geronimo.specs

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies