I am having a problem with a camel project that uses both camel-mail and camel-cxf. If only camel-mail is used, it can successfully consume emails from an IMAP endpoint. But if camel-cxf maven dependency is included, even if there is no cxfendpoint route defined in Camel Context, the IMAP consumer would not consume emails if mapMailMessage is set to false. If mapMailMessage is set to true, the IMAP consumer does consume emails, but I get the null exchange exception because the emails may be multipart messages. When the IMAP consumer does not consume, there is no error message in the log. I am running Camel 2.13.0 and cxf-rt-transports-http-jetty 2.7.10. Any help would be greatly appreciated. Another strange thing is that the application would work fine when running under Eclipse.
Here is my camel-context: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> <bean id="myProc" class="com.pci.TestImapConsumer.MailProc" /> <bean id="myGroovyProc" class="com.pci.TestImapConsumer.GroovyMailProc" /> <camel:camelContext xmlns="http://camel.apache.org/schema/spring"> <camel:route> <camel:from uri="imaps://imap.gmail.com:[email protected]&password=partners2014&delete=true&mapMailMessage=false&closeFolder=false&disconnect=false"/> <camel:log message="***** Email received from IMAP." /> <camel:process ref="myGroovyProc" /> </camel:route> </camel:camelContext> </beans> -- View this message in context: http://camel.465427.n5.nabble.com/camel-mail-and-camel-cxf-incompatible-tp5750386.html Sent from the Camel - Users mailing list archive at Nabble.com.
