You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by herau <le...@gmail.com> on 2014/09/03 12:12:45 UTC

choose implementation of javax.mail

Hello, 

Currently i have an application which is launched with tomcat 8.
I have a maven dependency for my project : 

<dependency>
     <groupId>com.sun.mail</groupId>
     <artifactId>javax.mail</artifactId>
     <version>1.5.1</version>
</dependency>

I have try to force the loading of this dependency with a declaration in the
conf/system.properties file

openejb.classloader.forced-load = javax.mail

But it seems that it not work. 

Does my declaration is correct ?



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

when I said tomee see it I meant if tomee see your app needs a
javx.mail thing (@Resource Session for instance) then it will use
geronimo-javamail.

Issue of skipping mail impl is not a tomee one but a mail spec one,
Session.getInstance() does a new and doesn't use the default SPI
mecanism.



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-03 19:31 GMT+02:00 herau <le...@gmail.com>:
> It's not possible to configure TomEE to be able to skip The
> geronimo-javaxmail jar present in the TomEE lib directory ?
> Le 3 sept. 2014 19:25, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> ml-node+s979440n4671569h60@n4.nabble.com> a écrit :
>
>> if you only use it from your app and tomee doesnt see it at all yes
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-03 19:20 GMT+02:00 herau <[hidden email]
>> <http://user/SendEmail.jtp?type=node&node=4671569&i=0>>:
>>
>> > The lib is in my war file. If i include The Geronimo-spec dependency in
>> my
>> > pom and i physicaly remove geronimo-javaxmail.jar from the lib
>> directory,
>> > it could be works like with the configured maven plugin ?
>> > Le 3 sept. 2014 19:10, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671569&i=1>>
>> a écrit :
>> >
>> >> I think if you put your mail.jar in /opt/mylibs/ then putting in
>> >> catalina.properties /opt/mylibs/*.jar in common.loader before other
>> >> paths would work
>> >>
>> >>
>> >> Romain Manni-Bucau
>> >> Twitter: @rmannibucau
>> >> Blog: http://rmannibucau.wordpress.com/
>> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> Github: https://github.com/rmannibucau
>> >>
>> >>
>> >> 2014-09-03 18:19 GMT+02:00 herau <[hidden email]
>> >> <http://user/SendEmail.jtp?type=node&node=4671567&i=0>>:
>> >>
>> >> > it works thanks !
>> >> >
>> >> > but what is the equivalent of
>> >> >
>> >> > <lib>remove:geronimo-javamail</lib>
>> >> >
>> >> > in the TomEE configuration (if i launch TomEE without the maven
>> plugin)?
>> >> >
>> >> >
>> >> > 2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
>> >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=1>>:
>>
>> >> >
>> >> >> ok i will try it.
>> >> >> and what about production configuration ?
>> >> >> i have to delete the geronimo-javamail jar in the lib directory of
>> >> tomEE ?
>> >> >> or is it possible to do it with configuration
>> >> >>
>> >> >>
>> >> >> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB]
>> <
>> >> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=2>>:
>>
>> >>
>> >> >>
>> >> >>  add in <libs>:
>> >> >>>
>> >> >>> <lib>remove:geronimo-javamail</lib>
>> >> >>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
>> >> >>>
>> >> >>>
>> >> >>> Romain Manni-Bucau
>> >> >>> Twitter: @rmannibucau
>> >> >>> Blog: http://rmannibucau.wordpress.com/
>> >> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >> >>> Github: https://github.com/rmannibucau
>> >> >>>
>> >> >>>
>> >> >>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
>> >> >>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
>> >> >>>
>> >> >>> > in fact, my problem is when i launch my application with tomcat,
>> and
>> >> so
>> >> >>> with
>> >> >>> > com.sun.mail:javax.mail my code which send a mail works.
>> >> >>> > But when i run the same code on tomEE (with geronimo-javamail), i
>> >> have
>> >> >>> > receive a blank mail.
>> >> >>> >
>> >> >>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > --
>> >> >>> > View this message in context:
>> >> >>>
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
>> >> >>>
>> >> >>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>> >> >>>
>> >> >>>
>> >> >>> ------------------------------
>> >> >>>  If you reply to this email, your message will be added to the
>> >> >>> discussion below:
>> >> >>>
>> >> >>>
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
>> >> >>>  To unsubscribe from choose implementation of javax.mail, click
>> here
>> >> >>> <
>> >> >>> .
>> >> >>> NAML
>> >> >>> <
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> >>
>> >> >>>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Aurélien Leboulanger
>> >> >> Tel : 0687754487
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Aurélien Leboulanger
>> >> > Tel : 0687754487
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > View this message in context:
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
>> >> > Sent from the TomEE Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ------------------------------
>> >>  If you reply to this email, your message will be added to the
>> discussion
>> >> below:
>> >>
>> >>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671567.html
>> >>  To unsubscribe from choose implementation of javax.mail, click here
>> >> <
>> >> .
>> >> NAML
>> >> <
>> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> >>
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671568.html
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671569.html
>>  To unsubscribe from choose implementation of javax.mail, click here
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
>> .
>> NAML
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671571.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
It's not possible to configure TomEE to be able to skip The
geronimo-javaxmail jar present in the TomEE lib directory ?
Le 3 sept. 2014 19:25, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
ml-node+s979440n4671569h60@n4.nabble.com> a écrit :

> if you only use it from your app and tomee doesnt see it at all yes
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-03 19:20 GMT+02:00 herau <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4671569&i=0>>:
>
> > The lib is in my war file. If i include The Geronimo-spec dependency in
> my
> > pom and i physicaly remove geronimo-javaxmail.jar from the lib
> directory,
> > it could be works like with the configured maven plugin ?
> > Le 3 sept. 2014 19:10, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671569&i=1>>
> a écrit :
> >
> >> I think if you put your mail.jar in /opt/mylibs/ then putting in
> >> catalina.properties /opt/mylibs/*.jar in common.loader before other
> >> paths would work
> >>
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >> 2014-09-03 18:19 GMT+02:00 herau <[hidden email]
> >> <http://user/SendEmail.jtp?type=node&node=4671567&i=0>>:
> >>
> >> > it works thanks !
> >> >
> >> > but what is the equivalent of
> >> >
> >> > <lib>remove:geronimo-javamail</lib>
> >> >
> >> > in the TomEE configuration (if i launch TomEE without the maven
> plugin)?
> >> >
> >> >
> >> > 2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
> >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=1>>:
>
> >> >
> >> >> ok i will try it.
> >> >> and what about production configuration ?
> >> >> i have to delete the geronimo-javamail jar in the lib directory of
> >> tomEE ?
> >> >> or is it possible to do it with configuration
> >> >>
> >> >>
> >> >> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB]
> <
> >> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=2>>:
>
> >>
> >> >>
> >> >>  add in <libs>:
> >> >>>
> >> >>> <lib>remove:geronimo-javamail</lib>
> >> >>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
> >> >>>
> >> >>>
> >> >>> Romain Manni-Bucau
> >> >>> Twitter: @rmannibucau
> >> >>> Blog: http://rmannibucau.wordpress.com/
> >> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> >>> Github: https://github.com/rmannibucau
> >> >>>
> >> >>>
> >> >>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
> >> >>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
> >> >>>
> >> >>> > in fact, my problem is when i launch my application with tomcat,
> and
> >> so
> >> >>> with
> >> >>> > com.sun.mail:javax.mail my code which send a mail works.
> >> >>> > But when i run the same code on tomEE (with geronimo-javamail), i
> >> have
> >> >>> > receive a blank mail.
> >> >>> >
> >> >>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > View this message in context:
> >> >>>
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
> >> >>>
> >> >>> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >> >>>
> >> >>>
> >> >>> ------------------------------
> >> >>>  If you reply to this email, your message will be added to the
> >> >>> discussion below:
> >> >>>
> >> >>>
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
> >> >>>  To unsubscribe from choose implementation of javax.mail, click
> here
> >> >>> <
> >> >>> .
> >> >>> NAML
> >> >>> <
> >>
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Aurélien Leboulanger
> >> >> Tel : 0687754487
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Aurélien Leboulanger
> >> > Tel : 0687754487
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
> >> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671567.html
> >>  To unsubscribe from choose implementation of javax.mail, click here
> >> <
> >> .
> >> NAML
> >> <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671568.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671569.html
>  To unsubscribe from choose implementation of javax.mail, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671571.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
The jar is present in tomee/webapps/myApp/WEB-INF/lib so i think TomEE see
it right ?
But it's the same war used for the TomEE maven plugin.
Le 3 sept. 2014 19:25, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
ml-node+s979440n4671569h60@n4.nabble.com> a écrit :

> if you only use it from your app and tomee doesnt see it at all yes
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-03 19:20 GMT+02:00 herau <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4671569&i=0>>:
>
> > The lib is in my war file. If i include The Geronimo-spec dependency in
> my
> > pom and i physicaly remove geronimo-javaxmail.jar from the lib
> directory,
> > it could be works like with the configured maven plugin ?
> > Le 3 sept. 2014 19:10, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671569&i=1>>
> a écrit :
> >
> >> I think if you put your mail.jar in /opt/mylibs/ then putting in
> >> catalina.properties /opt/mylibs/*.jar in common.loader before other
> >> paths would work
> >>
> >>
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >> 2014-09-03 18:19 GMT+02:00 herau <[hidden email]
> >> <http://user/SendEmail.jtp?type=node&node=4671567&i=0>>:
> >>
> >> > it works thanks !
> >> >
> >> > but what is the equivalent of
> >> >
> >> > <lib>remove:geronimo-javamail</lib>
> >> >
> >> > in the TomEE configuration (if i launch TomEE without the maven
> plugin)?
> >> >
> >> >
> >> > 2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
> >> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=1>>:
>
> >> >
> >> >> ok i will try it.
> >> >> and what about production configuration ?
> >> >> i have to delete the geronimo-javamail jar in the lib directory of
> >> tomEE ?
> >> >> or is it possible to do it with configuration
> >> >>
> >> >>
> >> >> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB]
> <
> >> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=2>>:
>
> >>
> >> >>
> >> >>  add in <libs>:
> >> >>>
> >> >>> <lib>remove:geronimo-javamail</lib>
> >> >>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
> >> >>>
> >> >>>
> >> >>> Romain Manni-Bucau
> >> >>> Twitter: @rmannibucau
> >> >>> Blog: http://rmannibucau.wordpress.com/
> >> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> >>> Github: https://github.com/rmannibucau
> >> >>>
> >> >>>
> >> >>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
> >> >>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
> >> >>>
> >> >>> > in fact, my problem is when i launch my application with tomcat,
> and
> >> so
> >> >>> with
> >> >>> > com.sun.mail:javax.mail my code which send a mail works.
> >> >>> > But when i run the same code on tomEE (with geronimo-javamail), i
> >> have
> >> >>> > receive a blank mail.
> >> >>> >
> >> >>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > View this message in context:
> >> >>>
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
> >> >>>
> >> >>> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >> >>>
> >> >>>
> >> >>> ------------------------------
> >> >>>  If you reply to this email, your message will be added to the
> >> >>> discussion below:
> >> >>>
> >> >>>
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
> >> >>>  To unsubscribe from choose implementation of javax.mail, click
> here
> >> >>> <
> >> >>> .
> >> >>> NAML
> >> >>> <
> >>
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >> >>>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Aurélien Leboulanger
> >> >> Tel : 0687754487
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Aurélien Leboulanger
> >> > Tel : 0687754487
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
> >> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >>
> >>
> >> ------------------------------
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671567.html
> >>  To unsubscribe from choose implementation of javax.mail, click here
> >> <
> >> .
> >> NAML
> >> <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671568.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671569.html
>  To unsubscribe from choose implementation of javax.mail, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671570.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by Romain Manni-Bucau <rm...@gmail.com>.
if you only use it from your app and tomee doesnt see it at all yes


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-03 19:20 GMT+02:00 herau <le...@gmail.com>:
> The lib is in my war file. If i include The Geronimo-spec dependency in my
> pom and i physicaly remove geronimo-javaxmail.jar from the lib directory,
> it could be works like with the configured maven plugin ?
> Le 3 sept. 2014 19:10, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
> ml-node+s979440n4671567h98@n4.nabble.com> a écrit :
>
>> I think if you put your mail.jar in /opt/mylibs/ then putting in
>> catalina.properties /opt/mylibs/*.jar in common.loader before other
>> paths would work
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-03 18:19 GMT+02:00 herau <[hidden email]
>> <http://user/SendEmail.jtp?type=node&node=4671567&i=0>>:
>>
>> > it works thanks !
>> >
>> > but what is the equivalent of
>> >
>> > <lib>remove:geronimo-javamail</lib>
>> >
>> > in the TomEE configuration (if i launch TomEE without the maven plugin)?
>> >
>> >
>> > 2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
>> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=1>>:
>> >
>> >> ok i will try it.
>> >> and what about production configuration ?
>> >> i have to delete the geronimo-javamail jar in the lib directory of
>> tomEE ?
>> >> or is it possible to do it with configuration
>> >>
>> >>
>> >> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
>> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=2>>:
>>
>> >>
>> >>  add in <libs>:
>> >>>
>> >>> <lib>remove:geronimo-javamail</lib>
>> >>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
>> >>>
>> >>>
>> >>> Romain Manni-Bucau
>> >>> Twitter: @rmannibucau
>> >>> Blog: http://rmannibucau.wordpress.com/
>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >>> Github: https://github.com/rmannibucau
>> >>>
>> >>>
>> >>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
>> >>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
>> >>>
>> >>> > in fact, my problem is when i launch my application with tomcat, and
>> so
>> >>> with
>> >>> > com.sun.mail:javax.mail my code which send a mail works.
>> >>> > But when i run the same code on tomEE (with geronimo-javamail), i
>> have
>> >>> > receive a blank mail.
>> >>> >
>> >>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > View this message in context:
>> >>>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
>> >>>
>> >>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>> >>>
>> >>>
>> >>> ------------------------------
>> >>>  If you reply to this email, your message will be added to the
>> >>> discussion below:
>> >>>
>> >>>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
>> >>>  To unsubscribe from choose implementation of javax.mail, click here
>> >>> <
>> >>> .
>> >>> NAML
>> >>> <
>> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Aurélien Leboulanger
>> >> Tel : 0687754487
>> >>
>> >
>> >
>> >
>> > --
>> > Aurélien Leboulanger
>> > Tel : 0687754487
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671567.html
>>  To unsubscribe from choose implementation of javax.mail, click here
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
>> .
>> NAML
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671568.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
The lib is in my war file. If i include The Geronimo-spec dependency in my
pom and i physicaly remove geronimo-javaxmail.jar from the lib directory,
it could be works like with the configured maven plugin ?
Le 3 sept. 2014 19:10, "Romain Manni-Bucau [via TomEE & OpenEJB]" <
ml-node+s979440n4671567h98@n4.nabble.com> a écrit :

> I think if you put your mail.jar in /opt/mylibs/ then putting in
> catalina.properties /opt/mylibs/*.jar in common.loader before other
> paths would work
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-03 18:19 GMT+02:00 herau <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4671567&i=0>>:
>
> > it works thanks !
> >
> > but what is the equivalent of
> >
> > <lib>remove:geronimo-javamail</lib>
> >
> > in the TomEE configuration (if i launch TomEE without the maven plugin)?
> >
> >
> > 2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=1>>:
> >
> >> ok i will try it.
> >> and what about production configuration ?
> >> i have to delete the geronimo-javamail jar in the lib directory of
> tomEE ?
> >> or is it possible to do it with configuration
> >>
> >>
> >> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4671567&i=2>>:
>
> >>
> >>  add in <libs>:
> >>>
> >>> <lib>remove:geronimo-javamail</lib>
> >>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
> >>>
> >>>
> >>> Romain Manni-Bucau
> >>> Twitter: @rmannibucau
> >>> Blog: http://rmannibucau.wordpress.com/
> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >>> Github: https://github.com/rmannibucau
> >>>
> >>>
> >>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
> >>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
> >>>
> >>> > in fact, my problem is when i launch my application with tomcat, and
> so
> >>> with
> >>> > com.sun.mail:javax.mail my code which send a mail works.
> >>> > But when i run the same code on tomEE (with geronimo-javamail), i
> have
> >>> > receive a blank mail.
> >>> >
> >>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > View this message in context:
> >>>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
> >>>
> >>> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ------------------------------
> >>>  If you reply to this email, your message will be added to the
> >>> discussion below:
> >>>
> >>>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
> >>>  To unsubscribe from choose implementation of javax.mail, click here
> >>> <
> >>> .
> >>> NAML
> >>> <
> http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>>
> >>
> >>
> >>
> >> --
> >> Aurélien Leboulanger
> >> Tel : 0687754487
> >>
> >
> >
> >
> > --
> > Aurélien Leboulanger
> > Tel : 0687754487
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671567.html
>  To unsubscribe from choose implementation of javax.mail, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671568.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by Romain Manni-Bucau <rm...@gmail.com>.
I think if you put your mail.jar in /opt/mylibs/ then putting in
catalina.properties /opt/mylibs/*.jar in common.loader before other
paths would work


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-03 18:19 GMT+02:00 herau <le...@gmail.com>:
> it works thanks !
>
> but what is the equivalent of
>
> <lib>remove:geronimo-javamail</lib>
>
> in the TomEE configuration (if i launch TomEE without the maven plugin)?
>
>
> 2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
> leboulanger.aurelien@gmail.com>:
>
>> ok i will try it.
>> and what about production configuration ?
>> i have to delete the geronimo-javamail jar in the lib directory of tomEE ?
>> or is it possible to do it with configuration
>>
>>
>> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
>> ml-node+s979440n4671564h5@n4.nabble.com>:
>>
>>  add in <libs>:
>>>
>>> <lib>remove:geronimo-javamail</lib>
>>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
>>>
>>>
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
>>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
>>>
>>> > in fact, my problem is when i launch my application with tomcat, and so
>>> with
>>> > com.sun.mail:javax.mail my code which send a mail works.
>>> > But when i run the same code on tomEE (with geronimo-javamail), i have
>>> > receive a blank mail.
>>> >
>>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
>>>
>>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------
>>>  If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
>>>  To unsubscribe from choose implementation of javax.mail, click here
>>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
>>> .
>>> NAML
>>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>>
>> --
>> Aurélien Leboulanger
>> Tel : 0687754487
>>
>
>
>
> --
> Aurélien Leboulanger
> Tel : 0687754487
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
it works thanks !

but what is the equivalent of

<lib>remove:geronimo-javamail</lib>

in the TomEE configuration (if i launch TomEE without the maven plugin)?


2014-09-03 17:51 GMT+02:00 Aurélien Leboulanger <
leboulanger.aurelien@gmail.com>:

> ok i will try it.
> and what about production configuration ?
> i have to delete the geronimo-javamail jar in the lib directory of tomEE ?
> or is it possible to do it with configuration
>
>
> 2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
> ml-node+s979440n4671564h5@n4.nabble.com>:
>
>  add in <libs>:
>>
>> <lib>remove:geronimo-javamail</lib>
>> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
>>
>>
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
>> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
>>
>> > in fact, my problem is when i launch my application with tomcat, and so
>> with
>> > com.sun.mail:javax.mail my code which send a mail works.
>> > But when i run the same code on tomEE (with geronimo-javamail), i have
>> > receive a blank mail.
>> >
>> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
>> >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
>>
>> > Sent from the TomEE Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
>>  To unsubscribe from choose implementation of javax.mail, click here
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
>> .
>> NAML
>> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
> --
> Aurélien Leboulanger
> Tel : 0687754487
>



-- 
Aurélien Leboulanger
Tel : 0687754487




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671566.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
ok i will try it.
and what about production configuration ?
i have to delete the geronimo-javamail jar in the lib directory of tomEE ?
or is it possible to do it with configuration


2014-09-03 17:38 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
ml-node+s979440n4671564h5@n4.nabble.com>:

> add in <libs>:
>
> <lib>remove:geronimo-javamail</lib>
> <lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-03 16:18 GMT+02:00 herau <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4671564&i=0>>:
>
> > in fact, my problem is when i launch my application with tomcat, and so
> with
> > com.sun.mail:javax.mail my code which send a mail works.
> > But when i run the same code on tomEE (with geronimo-javamail), i have
> > receive a blank mail.
> >
> > code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
>
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671564.html
>  To unsubscribe from choose implementation of javax.mail, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Aurélien Leboulanger
Tel : 0687754487




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671565.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by Romain Manni-Bucau <rm...@gmail.com>.
add in <libs>:

<lib>remove:geronimo-javamail</lib>
<lib>org.apache.geronimo.specs:geronimo-osgi-locator:1.1</lib>


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-03 16:18 GMT+02:00 herau <le...@gmail.com>:
> in fact, my problem is when i launch my application with tomcat, and so with
> com.sun.mail:javax.mail my code which send a mail works.
> But when i run the same code on tomEE (with geronimo-javamail), i have
> receive a blank mail.
>
> code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
in fact, my problem is when i launch my application with tomcat, and so with
com.sun.mail:javax.mail my code which send a mail works.
But when i run the same code on tomEE (with geronimo-javamail), i have
receive a blank mail. 

code link <https://gist.github.com/herau/2449d246c8d6dd9e0df0>  





--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671559.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by herau <le...@gmail.com>.
i use this library in my code.
i try to put the lib (with the tomee plugin) but it doesn't work

<plugin>
                <groupId>org.apache.openejb.maven</groupId>
                <artifactId>tomee-maven-plugin</artifactId>
                <version>1.6.0</version>
                <configuration>
                    <context>wp</context>
                    <classifier>plus</classifier>
                    <libs>
                        <lib>com.sun.mail:javax.mail:1.5.1</lib>
                    </libs>
                </configuration>
            </plugin>




2014-09-03 13:32 GMT+02:00 Romain Manni-Bucau [via TomEE & OpenEJB] <
ml-node+s979440n4671554h95@n4.nabble.com>:

> Hi
>
> how do you use it? if that's a server resource - tomee.xml - you can't.
>
> Best way would be to put it in the container to replace geronimo javamail
>
> Generally having javax.* in webapp libs is forbidden
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
> 2014-09-03 12:12 GMT+02:00 herau <[hidden email]
> <http://user/SendEmail.jtp?type=node&node=4671554&i=0>>:
>
> > Hello,
> >
> > Currently i have an application which is launched with tomcat 8.
> > I have a maven dependency for my project :
> >
> > <dependency>
> >      <groupId>com.sun.mail</groupId>
> >      <artifactId>javax.mail</artifactId>
> >      <version>1.5.1</version>
> > </dependency>
> >
> > I have try to force the loading of this dependency with a declaration in
> the
> > conf/system.properties file
> >
> > openejb.classloader.forced-load = javax.mail
> >
> > But it seems that it not work.
> >
> > Does my declaration is correct ?
> >
> >
> >
> > --
> > View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671554.html
>  To unsubscribe from choose implementation of javax.mail, click here
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4671551&code=bGVib3VsYW5nZXIuYXVyZWxpZW5AZ21haWwuY29tfDQ2NzE1NTF8LTgzNDU4MTk5MA==>
> .
> NAML
> <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>



-- 
Aurélien Leboulanger
Tel : 0687754487




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551p4671557.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: choose implementation of javax.mail

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

how do you use it? if that's a server resource - tomee.xml - you can't.

Best way would be to put it in the container to replace geronimo javamail

Generally having javax.* in webapp libs is forbidden


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-09-03 12:12 GMT+02:00 herau <le...@gmail.com>:
> Hello,
>
> Currently i have an application which is launched with tomcat 8.
> I have a maven dependency for my project :
>
> <dependency>
>      <groupId>com.sun.mail</groupId>
>      <artifactId>javax.mail</artifactId>
>      <version>1.5.1</version>
> </dependency>
>
> I have try to force the loading of this dependency with a declaration in the
> conf/system.properties file
>
> openejb.classloader.forced-load = javax.mail
>
> But it seems that it not work.
>
> Does my declaration is correct ?
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/choose-implementation-of-javax-mail-tp4671551.html
> Sent from the TomEE Users mailing list archive at Nabble.com.