Using a different javax.mail provider

classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

Using a different javax.mail provider

Bjorn Danielsson
I have a webapp that works with Sun's (Oracle's) Javamail
implementation but not with the Geronimo Javamail that is
bundled with TomEE. Is there some way I can bundle the Sun
version in my webapp?

I can make it work by fiddling with tomee/lib or tomee/endorsed,
but if it's at all possible I would prefer to just keep this
temporary workaround within the webapp itself.

--
Bjorn Danielsson
Cuspy Code AB
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Romain Manni-Bucau
IIRC there is a system property to do so in the spec.

If not just share a small sample wuth a servlet or so to qhiw it doesnt
work and well make it work
Le 15 mars 2013 17:42, "Bjorn Danielsson" <[hidden email]>
a écrit :

> I have a webapp that works with Sun's (Oracle's) Javamail
> implementation but not with the Geronimo Javamail that is
> bundled with TomEE. Is there some way I can bundle the Sun
> version in my webapp?
>
> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> but if it's at all possible I would prefer to just keep this
> temporary workaround within the webapp itself.
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Bjorn Danielsson
I found the system property for hardwiring a different provider
for the IMAP protocol. Unfortunately that broke other things
because other javax.mail functions are still loaded from
geronimo-javamail, and there are incompatibilities (or bugs).

I have managed to reproduce the problems in a standalone
program that can be run from the command-line and only depends
on Javamail. So maybe the OpenEJB list is the wrong forum for
this? But I'll share the link to the code here anyway:

http://github.com/cuspycode/apache-stuff/tree/master/imaptest

Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
This seems to make everything work without any bad side effects.

--
Bjorn Danielsson
Cuspy Code AB


Romain Manni-Bucau <[hidden email]> wrote:

> IIRC there is a system property to do so in the spec.
>
> If not just share a small sample wuth a servlet or so to qhiw it doesnt
> work and well make it work
> Le 15 mars 2013 17:42, "Bjorn Danielsson" <[hidden email]>
> a écrit :
>
>> I have a webapp that works with Sun's (Oracle's) Javamail
>> implementation but not with the Geronimo Javamail that is
>> bundled with TomEE. Is there some way I can bundle the Sun
>> version in my webapp?
>>
>> I can make it work by fiddling with tomee/lib or tomee/endorsed,
>> but if it's at all possible I would prefer to just keep this
>> temporary workaround within the webapp itself.
>>
>> --
>> Bjorn Danielsson
>> Cuspy Code AB
>>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

smithh032772
Bjorn,

Please click URL below as I discussed this month's ago. I always remove
geronimo mail jar from tomee/lib and replace with oracle or sun javamail
jar.

http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
[hidden email]> wrote:

> I found the system property for hardwiring a different provider
> for the IMAP protocol. Unfortunately that broke other things
> because other javax.mail functions are still loaded from
> geronimo-javamail, and there are incompatibilities (or bugs).
>
> I have managed to reproduce the problems in a standalone
> program that can be run from the command-line and only depends
> on Javamail. So maybe the OpenEJB list is the wrong forum for
> this? But I'll share the link to the code here anyway:
>
> http://github.com/cuspycode/apache-stuff/tree/master/imaptest
>
> Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> This seems to make everything work without any bad side effects.
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > IIRC there is a system property to do so in the spec.
> >
> > If not just share a small sample wuth a servlet or so to qhiw it doesnt
> > work and well make it work
> > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> [hidden email]>
> > a écrit :
> >
> >> I have a webapp that works with Sun's (Oracle's) Javamail
> >> implementation but not with the Geronimo Javamail that is
> >> bundled with TomEE. Is there some way I can bundle the Sun
> >> version in my webapp?
> >>
> >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> >> but if it's at all possible I would prefer to just keep this
> >> temporary workaround within the webapp itself.
> >>
> >> --
> >> Bjorn Danielsson
> >> Cuspy Code AB
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Romain Manni-Bucau
wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for you

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



2013/3/16 Howard W. Smith, Jr. <[hidden email]>

> Bjorn,
>
> Please click URL below as I discussed this month's ago. I always remove
> geronimo mail jar from tomee/lib and replace with oracle or sun javamail
> jar.
>
>
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> [hidden email]> wrote:
>
> > I found the system property for hardwiring a different provider
> > for the IMAP protocol. Unfortunately that broke other things
> > because other javax.mail functions are still loaded from
> > geronimo-javamail, and there are incompatibilities (or bugs).
> >
> > I have managed to reproduce the problems in a standalone
> > program that can be run from the command-line and only depends
> > on Javamail. So maybe the OpenEJB list is the wrong forum for
> > this? But I'll share the link to the code here anyway:
> >
> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
> >
> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> > This seems to make everything work without any bad side effects.
> >
> > --
> > Bjorn Danielsson
> > Cuspy Code AB
> >
> >
> > Romain Manni-Bucau <[hidden email]> wrote:
> > > IIRC there is a system property to do so in the spec.
> > >
> > > If not just share a small sample wuth a servlet or so to qhiw it doesnt
> > > work and well make it work
> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> > [hidden email]>
> > > a écrit :
> > >
> > >> I have a webapp that works with Sun's (Oracle's) Javamail
> > >> implementation but not with the Geronimo Javamail that is
> > >> bundled with TomEE. Is there some way I can bundle the Sun
> > >> version in my webapp?
> > >>
> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> > >> but if it's at all possible I would prefer to just keep this
> > >> temporary workaround within the webapp itself.
> > >>
> > >> --
> > >> Bjorn Danielsson
> > >> Cuspy Code AB
> > >>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

smithh032772
I can confirm when i'm able to download tomee ZIP file that contains this
change.

On Sat, Mar 16, 2013 at 6:10 PM, Romain Manni-Bucau
<[hidden email]>wrote:

> wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for you
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
>
> > Bjorn,
> >
> > Please click URL below as I discussed this month's ago. I always remove
> > geronimo mail jar from tomee/lib and replace with oracle or sun javamail
> > jar.
> >
> >
> >
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> > On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> > [hidden email]> wrote:
> >
> > > I found the system property for hardwiring a different provider
> > > for the IMAP protocol. Unfortunately that broke other things
> > > because other javax.mail functions are still loaded from
> > > geronimo-javamail, and there are incompatibilities (or bugs).
> > >
> > > I have managed to reproduce the problems in a standalone
> > > program that can be run from the command-line and only depends
> > > on Javamail. So maybe the OpenEJB list is the wrong forum for
> > > this? But I'll share the link to the code here anyway:
> > >
> > > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
> > >
> > > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> > > This seems to make everything work without any bad side effects.
> > >
> > > --
> > > Bjorn Danielsson
> > > Cuspy Code AB
> > >
> > >
> > > Romain Manni-Bucau <[hidden email]> wrote:
> > > > IIRC there is a system property to do so in the spec.
> > > >
> > > > If not just share a small sample wuth a servlet or so to qhiw it
> doesnt
> > > > work and well make it work
> > > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> > > [hidden email]>
> > > > a écrit :
> > > >
> > > >> I have a webapp that works with Sun's (Oracle's) Javamail
> > > >> implementation but not with the Geronimo Javamail that is
> > > >> bundled with TomEE. Is there some way I can bundle the Sun
> > > >> version in my webapp?
> > > >>
> > > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> > > >> but if it's at all possible I would prefer to just keep this
> > > >> temporary workaround within the webapp itself.
> > > >>
> > > >> --
> > > >> Bjorn Danielsson
> > > >> Cuspy Code AB
> > > >>
> > >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Bjorn Danielsson
In reply to this post by smithh032772
Thanks Howard, I must have missed that discussion in December.
I have added a comment to your JIRA entry. The symptoms are
slightly different in my test case, but after having looked
briefly at the Geronimo-Javamail source code I am pretty sure
that the IMAP authentication handshake is completely broken,
so it's probably good to keep everything within the same JIRA.

IMO, it shouldn't be hard to debug. Geronimo-javamail compiles
quickly and you don't even need an IMAP server to debug it, it's
enough if you have nc + perl and all the relevant IMAP RFCs handy.
I might even give it a try myself, but unfortunately I can't
motivate spending too much time on it since using Sun's version
is a reasonable workaround for my project at this time.

--
Bjorn Danielsson
Cuspy Code AB


"Howard W. Smith, Jr." <[hidden email]> wrote:

> Bjorn,
>
> Please click URL below as I discussed this month's ago. I always remove
> geronimo mail jar from tomee/lib and replace with oracle or sun javamail
> jar.
>
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> [hidden email]> wrote:
>
>> I found the system property for hardwiring a different provider
>> for the IMAP protocol. Unfortunately that broke other things
>> because other javax.mail functions are still loaded from
>> geronimo-javamail, and there are incompatibilities (or bugs).
>>
>> I have managed to reproduce the problems in a standalone
>> program that can be run from the command-line and only depends
>> on Javamail. So maybe the OpenEJB list is the wrong forum for
>> this? But I'll share the link to the code here anyway:
>>
>> http://github.com/cuspycode/apache-stuff/tree/master/imaptest
>>
>> Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
>> This seems to make everything work without any bad side effects.
>>
>> --
>> Bjorn Danielsson
>> Cuspy Code AB
>>
>>
>> Romain Manni-Bucau <[hidden email]> wrote:
>> > IIRC there is a system property to do so in the spec.
>> >
>> > If not just share a small sample wuth a servlet or so to qhiw it doesnt
>> > work and well make it work
>> > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
>> [hidden email]>
>> > a écrit :
>> >
>> >> I have a webapp that works with Sun's (Oracle's) Javamail
>> >> implementation but not with the Geronimo Javamail that is
>> >> bundled with TomEE. Is there some way I can bundle the Sun
>> >> version in my webapp?
>> >>
>> >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
>> >> but if it's at all possible I would prefer to just keep this
>> >> temporary workaround within the webapp itself.
>> >>
>> >> --
>> >> Bjorn Danielsson
>> >> Cuspy Code AB
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Bjorn Danielsson
In reply to this post by Romain Manni-Bucau
Do you ever sleep Romain? ;-)

I'll try bundling mail.jar with the webapp and report back
as soon as the builds start working again.

Thanks a lot!

--
Bjorn Danielsson
Cuspy Code AB


Romain Manni-Bucau <[hidden email]> wrote:

> wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for you
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
>
>> Bjorn,
>>
>> Please click URL below as I discussed this month's ago. I always remove
>> geronimo mail jar from tomee/lib and replace with oracle or sun javamail
>> jar.
>>
>>
>> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
>> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
>> [hidden email]> wrote:
>>
>> > I found the system property for hardwiring a different provider
>> > for the IMAP protocol. Unfortunately that broke other things
>> > because other javax.mail functions are still loaded from
>> > geronimo-javamail, and there are incompatibilities (or bugs).
>> >
>> > I have managed to reproduce the problems in a standalone
>> > program that can be run from the command-line and only depends
>> > on Javamail. So maybe the OpenEJB list is the wrong forum for
>> > this? But I'll share the link to the code here anyway:
>> >
>> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
>> >
>> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
>> > This seems to make everything work without any bad side effects.
>> >
>> > --
>> > Bjorn Danielsson
>> > Cuspy Code AB
>> >
>> >
>> > Romain Manni-Bucau <[hidden email]> wrote:
>> > > IIRC there is a system property to do so in the spec.
>> > >
>> > > If not just share a small sample wuth a servlet or so to qhiw it doesnt
>> > > work and well make it work
>> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
>> > [hidden email]>
>> > > a écrit :
>> > >
>> > >> I have a webapp that works with Sun's (Oracle's) Javamail
>> > >> implementation but not with the Geronimo Javamail that is
>> > >> bundled with TomEE. Is there some way I can bundle the Sun
>> > >> version in my webapp?
>> > >>
>> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
>> > >> but if it's at all possible I would prefer to just keep this
>> > >> temporary workaround within the webapp itself.
>> > >>
>> > >> --
>> > >> Bjorn Danielsson
>> > >> Cuspy Code AB
>> > >>
>> >
>>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Romain Manni-Bucau
I leant my computer to meta-dev, no more need to be here :)

well the build should be ok soon since the CI machine is up again

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



2013/3/17 Bjorn Danielsson <[hidden email]>

> Do you ever sleep Romain? ;-)
>
> I'll try bundling mail.jar with the webapp and report back
> as soon as the builds start working again.
>
> Thanks a lot!
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for
> you
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
> >
> >> Bjorn,
> >>
> >> Please click URL below as I discussed this month's ago. I always remove
> >> geronimo mail jar from tomee/lib and replace with oracle or sun javamail
> >> jar.
> >>
> >>
> >>
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> >> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> >> [hidden email]> wrote:
> >>
> >> > I found the system property for hardwiring a different provider
> >> > for the IMAP protocol. Unfortunately that broke other things
> >> > because other javax.mail functions are still loaded from
> >> > geronimo-javamail, and there are incompatibilities (or bugs).
> >> >
> >> > I have managed to reproduce the problems in a standalone
> >> > program that can be run from the command-line and only depends
> >> > on Javamail. So maybe the OpenEJB list is the wrong forum for
> >> > this? But I'll share the link to the code here anyway:
> >> >
> >> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
> >> >
> >> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> >> > This seems to make everything work without any bad side effects.
> >> >
> >> > --
> >> > Bjorn Danielsson
> >> > Cuspy Code AB
> >> >
> >> >
> >> > Romain Manni-Bucau <[hidden email]> wrote:
> >> > > IIRC there is a system property to do so in the spec.
> >> > >
> >> > > If not just share a small sample wuth a servlet or so to qhiw it
> doesnt
> >> > > work and well make it work
> >> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> >> > [hidden email]>
> >> > > a écrit :
> >> > >
> >> > >> I have a webapp that works with Sun's (Oracle's) Javamail
> >> > >> implementation but not with the Geronimo Javamail that is
> >> > >> bundled with TomEE. Is there some way I can bundle the Sun
> >> > >> version in my webapp?
> >> > >>
> >> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> >> > >> but if it's at all possible I would prefer to just keep this
> >> > >> temporary workaround within the webapp itself.
> >> > >>
> >> > >> --
> >> > >> Bjorn Danielsson
> >> > >> Cuspy Code AB
> >> > >>
> >> >
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

smithh032772
In reply to this post by Romain Manni-Bucau
Does this (TOMEE-834) mean the following?

1. geronimo mail JAR can reside in tomee/lib
2. just add sun/oracle javax.mail.jar to WAR (WEB-INF/...)
3. tomee will use/reference javax.mail.jar, since it resides within the WAR
file


On Sat, Mar 16, 2013 at 6:10 PM, Romain Manni-Bucau
<[hidden email]>wrote:

> wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for you
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

smithh032772
And, no need to set a system property? (hopefully not necessary to set a
system property)


On Sun, Mar 17, 2013 at 6:16 PM, Howard W. Smith, Jr. <
[hidden email]> wrote:

> Does this (TOMEE-834) mean the following?
>
> 1. geronimo mail JAR can reside in tomee/lib
> 2. just add sun/oracle javax.mail.jar to WAR (WEB-INF/...)
> 3. tomee will use/reference javax.mail.jar, since it resides within the
> WAR file
>
>
> On Sat, Mar 16, 2013 at 6:10 PM, Romain Manni-Bucau <[hidden email]
> > wrote:
>
>> wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for
>> you
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Romain Manni-Bucau
In reply to this post by smithh032772
Was the idea
Le 17 mars 2013 23:17, "Howard W. Smith, Jr." <[hidden email]> a
écrit :

> Does this (TOMEE-834) mean the following?
>
> 1. geronimo mail JAR can reside in tomee/lib
> 2. just add sun/oracle javax.mail.jar to WAR (WEB-INF/...)
> 3. tomee will use/reference javax.mail.jar, since it resides within the WAR
> file
>
>
> On Sat, Mar 16, 2013 at 6:10 PM, Romain Manni-Bucau
> <[hidden email]>wrote:
>
> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for
> you
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

Romain Manni-Bucau
In reply to this post by smithh032772
Think it could be avoided
Le 17 mars 2013 23:18, "Howard W. Smith, Jr." <[hidden email]> a
écrit :

> And, no need to set a system property? (hopefully not necessary to set a
> system property)
>
>
> On Sun, Mar 17, 2013 at 6:16 PM, Howard W. Smith, Jr. <
> [hidden email]> wrote:
>
> > Does this (TOMEE-834) mean the following?
> >
> > 1. geronimo mail JAR can reside in tomee/lib
> > 2. just add sun/oracle javax.mail.jar to WAR (WEB-INF/...)
> > 3. tomee will use/reference javax.mail.jar, since it resides within the
> > WAR file
> >
> >
> > On Sat, Mar 16, 2013 at 6:10 PM, Romain Manni-Bucau <
> [hidden email]
> > > wrote:
> >
> >> wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for
> >> you
> >>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Using a different javax.mail provider

smithh032772
In reply to this post by Bjorn Danielsson
I just checked snapshot repo folder[1], but it still is not updated with
zip files, etc. I guess i can confirm this fix when 1.6 is released.

[1]
https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.6.0-SNAPSHOT/
 On Mar 17, 2013 2:09 PM, "Bjorn Danielsson" <
[hidden email]> wrote:

> Do you ever sleep Romain? ;-)
>
> I'll try bundling mail.jar with the webapp and report back
> as soon as the builds start working again.
>
> Thanks a lot!
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for
> you
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
> >
> >> Bjorn,
> >>
> >> Please click URL below as I discussed this month's ago. I always remove
> >> geronimo mail jar from tomee/lib and replace with oracle or sun javamail
> >> jar.
> >>
> >>
> >>
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> >> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> >> [hidden email]> wrote:
> >>
> >> > I found the system property for hardwiring a different provider
> >> > for the IMAP protocol. Unfortunately that broke other things
> >> > because other javax.mail functions are still loaded from
> >> > geronimo-javamail, and there are incompatibilities (or bugs).
> >> >
> >> > I have managed to reproduce the problems in a standalone
> >> > program that can be run from the command-line and only depends
> >> > on Javamail. So maybe the OpenEJB list is the wrong forum for
> >> > this? But I'll share the link to the code here anyway:
> >> >
> >> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
> >> >
> >> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> >> > This seems to make everything work without any bad side effects.
> >> >
> >> > --
> >> > Bjorn Danielsson
> >> > Cuspy Code AB
> >> >
> >> >
> >> > Romain Manni-Bucau <[hidden email]> wrote:
> >> > > IIRC there is a system property to do so in the spec.
> >> > >
> >> > > If not just share a small sample wuth a servlet or so to qhiw it
> doesnt
> >> > > work and well make it work
> >> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> >> > [hidden email]>
> >> > > a écrit :
> >> > >
> >> > >> I have a webapp that works with Sun's (Oracle's) Javamail
> >> > >> implementation but not with the Geronimo Javamail that is
> >> > >> bundled with TomEE. Is there some way I can bundle the Sun
> >> > >> version in my webapp?
> >> > >>
> >> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> >> > >> but if it's at all possible I would prefer to just keep this
> >> > >> temporary workaround within the webapp itself.
> >> > >>
> >> > >> --
> >> > >> Bjorn Danielsson
> >> > >> Cuspy Code AB
> >> > >>
> >> >
> >>
>
Reply | Threaded
Open this post in threaded view
|

1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

Bjorn Danielsson
I'm waiting for the snapshots too.

And building from svn + maven doesn't seem to work at the moment,
at least not for me. First I got some complaints about a missing
tomee-maven-plugin-1.1.0-SNAPSHOT, but I managed to get rid of
that by disabling the examples module in the dependencies.

Then Maven got stuck on sxc-jaxb-core-0.8-20130125.012630-3-sources.jar
which seems to be trashed due to some bogus redirect which is never
detected during the download, it's only detected much later.

But Maven and I never got along. Maybe someone else is more lucky?

--
Bjorn Danielsson
Cuspy Code AB


"Howard W. Smith, Jr." <[hidden email]> wrote:

> I just checked snapshot repo folder[1], but it still is not updated with
> zip files, etc. I guess i can confirm this fix when 1.6 is released.
>
> [1]
> https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.6.0-SNAPSHOT/
>  On Mar 17, 2013 2:09 PM, "Bjorn Danielsson" <
> [hidden email]> wrote:
>
>> Do you ever sleep Romain? ;-)
>>
>> I'll try bundling mail.jar with the webapp and report back
>> as soon as the builds start working again.
>>
>> Thanks a lot!
>>
>> --
>> Bjorn Danielsson
>> Cuspy Code AB
>>
>>
>> Romain Manni-Bucau <[hidden email]> wrote:
>> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it for
>> you
>> >
>> > *Romain Manni-Bucau*
>> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> > *Blog: **http://rmannibucau.wordpress.com/*<
>> http://rmannibucau.wordpress.com/>
>> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> > *Github: https://github.com/rmannibucau*
>> >
>> >
>> >
>> > 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
>> >
>> >> Bjorn,
>> >>
>> >> Please click URL below as I discussed this month's ago. I always remove
>> >> geronimo mail jar from tomee/lib and replace with oracle or sun javamail
>> >> jar.
>> >>
>> >>
>> >>
>> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
>> >> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
>> >> [hidden email]> wrote:
>> >>
>> >> > I found the system property for hardwiring a different provider
>> >> > for the IMAP protocol. Unfortunately that broke other things
>> >> > because other javax.mail functions are still loaded from
>> >> > geronimo-javamail, and there are incompatibilities (or bugs).
>> >> >
>> >> > I have managed to reproduce the problems in a standalone
>> >> > program that can be run from the command-line and only depends
>> >> > on Javamail. So maybe the OpenEJB list is the wrong forum for
>> >> > this? But I'll share the link to the code here anyway:
>> >> >
>> >> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
>> >> >
>> >> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
>> >> > This seems to make everything work without any bad side effects.
>> >> >
>> >> > --
>> >> > Bjorn Danielsson
>> >> > Cuspy Code AB
>> >> >
>> >> >
>> >> > Romain Manni-Bucau <[hidden email]> wrote:
>> >> > > IIRC there is a system property to do so in the spec.
>> >> > >
>> >> > > If not just share a small sample wuth a servlet or so to qhiw it
>> doesnt
>> >> > > work and well make it work
>> >> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
>> >> > [hidden email]>
>> >> > > a écrit :
>> >> > >
>> >> > >> I have a webapp that works with Sun's (Oracle's) Javamail
>> >> > >> implementation but not with the Geronimo Javamail that is
>> >> > >> bundled with TomEE. Is there some way I can bundle the Sun
>> >> > >> version in my webapp?
>> >> > >>
>> >> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
>> >> > >> but if it's at all possible I would prefer to just keep this
>> >> > >> temporary workaround within the webapp itself.
>> >> > >>
>> >> > >> --
>> >> > >> Bjorn Danielsson
>> >> > >> Cuspy Code AB
>> >> > >>
>> >> >
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: 1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

Romain Manni-Bucau
hmm,

about tomee maven plugin skip example, just build using

mvn clean install -pl tomee/apache-tomee -am -Dmaven.test.skip=true

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



2013/3/18 Bjorn Danielsson <[hidden email]>

> I'm waiting for the snapshots too.
>
> And building from svn + maven doesn't seem to work at the moment,
> at least not for me. First I got some complaints about a missing
> tomee-maven-plugin-1.1.0-SNAPSHOT, but I managed to get rid of
> that by disabling the examples module in the dependencies.
>
> Then Maven got stuck on sxc-jaxb-core-0.8-20130125.012630-3-sources.jar
> which seems to be trashed due to some bogus redirect which is never
> detected during the download, it's only detected much later.
>
> But Maven and I never got along. Maybe someone else is more lucky?
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> "Howard W. Smith, Jr." <[hidden email]> wrote:
> > I just checked snapshot repo folder[1], but it still is not updated with
> > zip files, etc. I guess i can confirm this fix when 1.6 is released.
> >
> > [1]
> >
> https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.6.0-SNAPSHOT/
> >  On Mar 17, 2013 2:09 PM, "Bjorn Danielsson" <
> > [hidden email]> wrote:
> >
> >> Do you ever sleep Romain? ;-)
> >>
> >> I'll try bundling mail.jar with the webapp and report back
> >> as soon as the builds start working again.
> >>
> >> Thanks a lot!
> >>
> >> --
> >> Bjorn Danielsson
> >> Cuspy Code AB
> >>
> >>
> >> Romain Manni-Bucau <[hidden email]> wrote:
> >> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it
> for
> >> you
> >> >
> >> > *Romain Manni-Bucau*
> >> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> > *Blog: **http://rmannibucau.wordpress.com/*<
> >> http://rmannibucau.wordpress.com/>
> >> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> > *Github: https://github.com/rmannibucau*
> >> >
> >> >
> >> >
> >> > 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
> >> >
> >> >> Bjorn,
> >> >>
> >> >> Please click URL below as I discussed this month's ago. I always
> remove
> >> >> geronimo mail jar from tomee/lib and replace with oracle or sun
> javamail
> >> >> jar.
> >> >>
> >> >>
> >> >>
> >>
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> >> >> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> >> >> [hidden email]> wrote:
> >> >>
> >> >> > I found the system property for hardwiring a different provider
> >> >> > for the IMAP protocol. Unfortunately that broke other things
> >> >> > because other javax.mail functions are still loaded from
> >> >> > geronimo-javamail, and there are incompatibilities (or bugs).
> >> >> >
> >> >> > I have managed to reproduce the problems in a standalone
> >> >> > program that can be run from the command-line and only depends
> >> >> > on Javamail. So maybe the OpenEJB list is the wrong forum for
> >> >> > this? But I'll share the link to the code here anyway:
> >> >> >
> >> >> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
> >> >> >
> >> >> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> >> >> > This seems to make everything work without any bad side effects.
> >> >> >
> >> >> > --
> >> >> > Bjorn Danielsson
> >> >> > Cuspy Code AB
> >> >> >
> >> >> >
> >> >> > Romain Manni-Bucau <[hidden email]> wrote:
> >> >> > > IIRC there is a system property to do so in the spec.
> >> >> > >
> >> >> > > If not just share a small sample wuth a servlet or so to qhiw it
> >> doesnt
> >> >> > > work and well make it work
> >> >> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> >> >> > [hidden email]>
> >> >> > > a écrit :
> >> >> > >
> >> >> > >> I have a webapp that works with Sun's (Oracle's) Javamail
> >> >> > >> implementation but not with the Geronimo Javamail that is
> >> >> > >> bundled with TomEE. Is there some way I can bundle the Sun
> >> >> > >> version in my webapp?
> >> >> > >>
> >> >> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
> >> >> > >> but if it's at all possible I would prefer to just keep this
> >> >> > >> temporary workaround within the webapp itself.
> >> >> > >>
> >> >> > >> --
> >> >> > >> Bjorn Danielsson
> >> >> > >> Cuspy Code AB
> >> >> > >>
> >> >> >
> >> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: 1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

Bjorn Danielsson
That worked!

I could never have guessed that mvn command by myself, but it did
the trick and I got my apache-tomee-plus-1.6.0-SNAPSHOT to compile.

And I can confirm that the classloader fix works. I put the Sun
mail.jar in my WEB-INF/lib and everything worked now, without any
need to touch anything else.

--
Bjorn Danielsson
Cuspy Code AB


Romain Manni-Bucau <[hidden email]> wrote:

> hmm,
>
> about tomee maven plugin skip example, just build using
>
> mvn clean install -pl tomee/apache-tomee -am -Dmaven.test.skip=true
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/3/18 Bjorn Danielsson <[hidden email]>
>
>> I'm waiting for the snapshots too.
>>
>> And building from svn + maven doesn't seem to work at the moment,
>> at least not for me. First I got some complaints about a missing
>> tomee-maven-plugin-1.1.0-SNAPSHOT, but I managed to get rid of
>> that by disabling the examples module in the dependencies.
>>
>> Then Maven got stuck on sxc-jaxb-core-0.8-20130125.012630-3-sources.jar
>> which seems to be trashed due to some bogus redirect which is never
>> detected during the download, it's only detected much later.
>>
>> But Maven and I never got along. Maybe someone else is more lucky?
>>
>> --
>> Bjorn Danielsson
>> Cuspy Code AB
>>
>>
>> "Howard W. Smith, Jr." <[hidden email]> wrote:
>> > I just checked snapshot repo folder[1], but it still is not updated with
>> > zip files, etc. I guess i can confirm this fix when 1.6 is released.
>> >
>> > [1]
>> >
>> https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.6.0-SNAPSHOT/
>> >  On Mar 17, 2013 2:09 PM, "Bjorn Danielsson" <
>> > [hidden email]> wrote:
>> >
>> >> Do you ever sleep Romain? ;-)
>> >>
>> >> I'll try bundling mail.jar with the webapp and report back
>> >> as soon as the builds start working again.
>> >>
>> >> Thanks a lot!
>> >>
>> >> --
>> >> Bjorn Danielsson
>> >> Cuspy Code AB
>> >>
>> >>
>> >> Romain Manni-Bucau <[hidden email]> wrote:
>> >> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it
>> for
>> >> you
>> >> >
>> >> > *Romain Manni-Bucau*
>> >> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> >> > *Blog: **http://rmannibucau.wordpress.com/*<
>> >> http://rmannibucau.wordpress.com/>
>> >> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> >> > *Github: https://github.com/rmannibucau*
>> >> >
>> >> >
>> >> >
>> >> > 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
>> >> >
>> >> >> Bjorn,
>> >> >>
>> >> >> Please click URL below as I discussed this month's ago. I always
>> remove
>> >> >> geronimo mail jar from tomee/lib and replace with oracle or sun
>> javamail
>> >> >> jar.
>> >> >>
>> >> >>
>> >> >>
>> >>
>> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
>> >> >> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
>> >> >> [hidden email]> wrote:
>> >> >>
>> >> >> > I found the system property for hardwiring a different provider
>> >> >> > for the IMAP protocol. Unfortunately that broke other things
>> >> >> > because other javax.mail functions are still loaded from
>> >> >> > geronimo-javamail, and there are incompatibilities (or bugs).
>> >> >> >
>> >> >> > I have managed to reproduce the problems in a standalone
>> >> >> > program that can be run from the command-line and only depends
>> >> >> > on Javamail. So maybe the OpenEJB list is the wrong forum for
>> >> >> > this? But I'll share the link to the code here anyway:
>> >> >> >
>> >> >> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
>> >> >> >
>> >> >> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
>> >> >> > This seems to make everything work without any bad side effects.
>> >> >> >
>> >> >> > --
>> >> >> > Bjorn Danielsson
>> >> >> > Cuspy Code AB
>> >> >> >
>> >> >> >
>> >> >> > Romain Manni-Bucau <[hidden email]> wrote:
>> >> >> > > IIRC there is a system property to do so in the spec.
>> >> >> > >
>> >> >> > > If not just share a small sample wuth a servlet or so to qhiw it
>> >> doesnt
>> >> >> > > work and well make it work
>> >> >> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
>> >> >> > [hidden email]>
>> >> >> > > a écrit :
>> >> >> > >
>> >> >> > >> I have a webapp that works with Sun's (Oracle's) Javamail
>> >> >> > >> implementation but not with the Geronimo Javamail that is
>> >> >> > >> bundled with TomEE. Is there some way I can bundle the Sun
>> >> >> > >> version in my webapp?
>> >> >> > >>
>> >> >> > >> I can make it work by fiddling with tomee/lib or tomee/endorsed,
>> >> >> > >> but if it's at all possible I would prefer to just keep this
>> >> >> > >> temporary workaround within the webapp itself.
>> >> >> > >>
>> >> >> > >> --
>> >> >> > >> Bjorn Danielsson
>> >> >> > >> Cuspy Code AB
>> >> >> > >>
>> >> >> >
>> >> >>
>> >>
>>
Reply | Threaded
Open this post in threaded view
|

Re: 1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

smithh032772
That's great. Glad to hear. Thanks!
On Mar 18, 2013 4:11 PM, "Bjorn Danielsson" <
[hidden email]> wrote:

> That worked!
>
> I could never have guessed that mvn command by myself, but it did
> the trick and I got my apache-tomee-plus-1.6.0-SNAPSHOT to compile.
>
> And I can confirm that the classloader fix works. I put the Sun
> mail.jar in my WEB-INF/lib and everything worked now, without any
> need to touch anything else.
>
> --
> Bjorn Danielsson
> Cuspy Code AB
>
>
> Romain Manni-Bucau <[hidden email]> wrote:
> > hmm,
> >
> > about tomee maven plugin skip example, just build using
> >
> > mvn clean install -pl tomee/apache-tomee -am -Dmaven.test.skip=true
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/3/18 Bjorn Danielsson <[hidden email]>
> >
> >> I'm waiting for the snapshots too.
> >>
> >> And building from svn + maven doesn't seem to work at the moment,
> >> at least not for me. First I got some complaints about a missing
> >> tomee-maven-plugin-1.1.0-SNAPSHOT, but I managed to get rid of
> >> that by disabling the examples module in the dependencies.
> >>
> >> Then Maven got stuck on sxc-jaxb-core-0.8-20130125.012630-3-sources.jar
> >> which seems to be trashed due to some bogus redirect which is never
> >> detected during the download, it's only detected much later.
> >>
> >> But Maven and I never got along. Maybe someone else is more lucky?
> >>
> >> --
> >> Bjorn Danielsson
> >> Cuspy Code AB
> >>
> >>
> >> "Howard W. Smith, Jr." <[hidden email]> wrote:
> >> > I just checked snapshot repo folder[1], but it still is not updated
> with
> >> > zip files, etc. I guess i can confirm this fix when 1.6 is released.
> >> >
> >> > [1]
> >> >
> >>
> https://repository.apache.org/content/groups/snapshots/org/apache/openejb/apache-tomee/1.6.0-SNAPSHOT/
> >> >  On Mar 17, 2013 2:09 PM, "Bjorn Danielsson" <
> >> > [hidden email]> wrote:
> >> >
> >> >> Do you ever sleep Romain? ;-)
> >> >>
> >> >> I'll try bundling mail.jar with the webapp and report back
> >> >> as soon as the builds start working again.
> >> >>
> >> >> Thanks a lot!
> >> >>
> >> >> --
> >> >> Bjorn Danielsson
> >> >> Cuspy Code AB
> >> >>
> >> >>
> >> >> Romain Manni-Bucau <[hidden email]> wrote:
> >> >> > wonder if https://issues.apache.org/jira/browse/TOMEE-834 fixes it
> >> for
> >> >> you
> >> >> >
> >> >> > *Romain Manni-Bucau*
> >> >> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> >> >> > *Blog: **http://rmannibucau.wordpress.com/*<
> >> >> http://rmannibucau.wordpress.com/>
> >> >> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> >> >> > *Github: https://github.com/rmannibucau*
> >> >> >
> >> >> >
> >> >> >
> >> >> > 2013/3/16 Howard W. Smith, Jr. <[hidden email]>
> >> >> >
> >> >> >> Bjorn,
> >> >> >>
> >> >> >> Please click URL below as I discussed this month's ago. I always
> >> remove
> >> >> >> geronimo mail jar from tomee/lib and replace with oracle or sun
> >> javamail
> >> >> >> jar.
> >> >> >>
> >> >> >>
> >> >> >>
> >> >>
> >>
> http://openejb.979440.n4.nabble.com/TomEE-JavaMail-Unexpected-command-IMAP-command-error-td4659299.html
> >> >> >> On Mar 16, 2013 5:18 PM, "Bjorn Danielsson" <
> >> >> >> [hidden email]> wrote:
> >> >> >>
> >> >> >> > I found the system property for hardwiring a different provider
> >> >> >> > for the IMAP protocol. Unfortunately that broke other things
> >> >> >> > because other javax.mail functions are still loaded from
> >> >> >> > geronimo-javamail, and there are incompatibilities (or bugs).
> >> >> >> >
> >> >> >> > I have managed to reproduce the problems in a standalone
> >> >> >> > program that can be run from the command-line and only depends
> >> >> >> > on Javamail. So maybe the OpenEJB list is the wrong forum for
> >> >> >> > this? But I'll share the link to the code here anyway:
> >> >> >> >
> >> >> >> > http://github.com/cuspycode/apache-stuff/tree/master/imaptest
> >> >> >> >
> >> >> >> > Anyway, for my TomEE webapp I put the Sun jar in tomee/endorsed.
> >> >> >> > This seems to make everything work without any bad side effects.
> >> >> >> >
> >> >> >> > --
> >> >> >> > Bjorn Danielsson
> >> >> >> > Cuspy Code AB
> >> >> >> >
> >> >> >> >
> >> >> >> > Romain Manni-Bucau <[hidden email]> wrote:
> >> >> >> > > IIRC there is a system property to do so in the spec.
> >> >> >> > >
> >> >> >> > > If not just share a small sample wuth a servlet or so to qhiw
> it
> >> >> doesnt
> >> >> >> > > work and well make it work
> >> >> >> > > Le 15 mars 2013 17:42, "Bjorn Danielsson" <
> >> >> >> > [hidden email]>
> >> >> >> > > a écrit :
> >> >> >> > >
> >> >> >> > >> I have a webapp that works with Sun's (Oracle's) Javamail
> >> >> >> > >> implementation but not with the Geronimo Javamail that is
> >> >> >> > >> bundled with TomEE. Is there some way I can bundle the Sun
> >> >> >> > >> version in my webapp?
> >> >> >> > >>
> >> >> >> > >> I can make it work by fiddling with tomee/lib or
> tomee/endorsed,
> >> >> >> > >> but if it's at all possible I would prefer to just keep this
> >> >> >> > >> temporary workaround within the webapp itself.
> >> >> >> > >>
> >> >> >> > >> --
> >> >> >> > >> Bjorn Danielsson
> >> >> >> > >> Cuspy Code AB
> >> >> >> > >>
> >> >> >> >
> >> >> >>
> >> >>
> >>
>
Reply | Threaded
Open this post in threaded view
|

Re: 1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

herau
i would like to use the com.sun.mail:javax.mail:1.5.1 implementation.

i put the jar in the lib directory of tomEE but it's seems that the selected implementation isn't com.sun.mail.

does i have to had declaration in the conf/system.properties file ?
Reply | Threaded
Open this post in threaded view
|

Re: 1.6-SNAPSHOT unavailable (was: Using a different javax.mail provider)

Felipe Jaekel
I had a lot of strange issues with JavaMail in TomEE when I was migrating
from a regular Tomcat 7.

The solution was to delete geronimo-javamail_1.4_mail-1.8.3.jar,
add geronimo-osgi-locator-1.1.jar, and finally add mail.jar to
<tomee_home>/lib (when I added it to WEB-INF/lib some email routines of my
application were working and others not).


2014-09-03 7:58 GMT-03:00 herau <[hidden email]>:

> i would like to use the com.sun.mail:javax.mail:1.5.1 implementation.
>
> i put the jar in the lib directory of tomEE but it's seems that the
> selected
> implementation isn't com.sun.mail.
>
> does i have to had declaration in the conf/system.properties file ?
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Using-a-different-javax-mail-provider-tp4661546p4671553.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>