Re: java.mail inside Karaf

2020-01-28 Thread Oliver Lietz
On Tuesday, January 28, 2020 11:07:27 AM CET Matthias Leinweber wrote: > After some sleep i found the solution .. > > inside the javax-mail.jar is the mailcap file which contains the mappings > from mime-types to java classes. > So i just changed the context classloader to the correct class, direc

Re: java.mail inside Karaf

2020-01-28 Thread Matthias Leinweber
After some sleep i found the solution .. inside the javax-mail.jar is the mailcap file which contains the mappings from mime-types to java classes. So i just changed the context classloader to the correct class, directly before the Transport.send Thread.currentThread().setContextClassLoader(com.su

Re: java.mail inside Karaf

2020-01-27 Thread Jean-Baptiste Onofré
Hi Matthias, Yeah, it's what I thought. Let me take a look. Regards JB On 27/01/2020 22:52, Matthias Leinweber wrote: > Hi JB, > > impressive memory.. found the > ticket: https://issues.apache.org/jira/browse/KARAF-5571 unresolved, but > I encountered the same exception a few hours ago.  > I th

Re: java.mail inside Karaf

2020-01-27 Thread Matthias Leinweber
Hi JB, impressive memory.. found the ticket: https://issues.apache.org/jira/browse/KARAF-5571 unresolved, but I encountered the same exception a few hours ago. I think that the "no object dch for mime type" is a result of the class loader separation... but i have no idea from which class I should

Re: java.mail inside Karaf

2020-01-27 Thread Jean-Baptiste Onofré
Hi Matthias, AFAIR, we have a Jira about that. Are you sure about the activation version you are using ? Regards JB On 27/01/2020 21:16, Matthias Leinweber wrote: > > Hello Karaf Users, > > Hello Karaf-Team, > > I try to create a Component which is able to send mails. I looked into > the deca

java.mail inside Karaf

2020-01-27 Thread Matthias Leinweber
Hello Karaf Users, Hello Karaf-Team, I try to create a Component which is able to send mails. I looked into the decanter email component and basically used it and modified it for multi part. The strange this is, that somehow the client can't read a response. I have no idea what i could do... i r