You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Romain Manni-Bucau <rm...@gmail.com> on 2013/05/13 22:14:39 UTC

tomee next classloading

Hi

as you probably know we changed quite often the classloading these last
versions.

We still have regularly issues with tomee provided libs (mainly because of
cxf/amq/... transitive deps)

I would like to go further and use an URLClassLoaderFirst for lib part of
ear to allow apps to not rely on tomee libs first.

The alternative is to shade/repackage all deps.

PS: i want to avoid OSGi

So basically here is the question: to solve conflict lib issue what your
preferred solution:
1) URLClassLoaderFirst even for ear lib part - if this one please say if
you would like a property to switch back to old behavior
(openejb.ear.lib.classloader.first=false?)
2) repackage all deps
3) other
4) OSGi/OSGi like
?

If nothing moves in the following days i'll go for 1 (then we can still
discuss ;).

*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*

Re: tomee next classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Well, i'm +0 on the manifest.mf solution but the issue stays the same since
you still get the same parent.

URLClassLoaderFirst didnt break tests/tcks it seems, now we need further
tests to adjust our common lib usage i think (mf for instance)

Another alternative (maybe for 2.0) would be to get our own server
classloader used only for our stuff but it would change a lot of our code
and will be impacting for apps relying on openejb libs.
Le 15 mai 2013 01:02, "Jonathan Gallimore" <jo...@gmail.com> a
écrit :

> I'd be in favour of seeing Romain's URLClassLoaderFirst option. I'm not
> sure about changing the default setting though. Perhaps we could look for
> clashing libraries as part of the scan when deploying an application and
> throw up an appropriate warning steering users towards the new setting if
> they run into problems?
>
> Davide's suggestion of the JBoss 7 style classloader is an interesting one.
> I'm not a big fan of the JBoss/modules structure myself, but I can
> understand the appeal. I can imagine it wouldn't be too difficult to write
> something to parse the jboss-deployment-structure.xml file and add the
> necessary entries to the classpath of the application. Would be great for
> existing JBoss / Wildfly users looking to give TomEE a try.
>
> I would have thought we could also provide support for skinny wars/ears by
> allowing Class-path entries in MANIFEST.MF where they are either looked up
> from a directory within TomEE, or specified like Class-path:
> ${catalina.home}/modules/mymodule.jar.
>
> Just a thought. Happy to have a go at working on any of these if anyone
> likes any of these ideas.
>
> Jon
>
>
> On Tue, May 14, 2013 at 10:57 PM, Romain Manni-Bucau
> <rm...@gmail.com>wrote:
>
> > It would be as easy as what we have today but 2 points:
> > * we dont love osgi (thats what i feel at least) - each for
> > differents.reason but if we should go for it we'd end with geronimo
> > * (personal) jboss module is just an osgi like and solves as much issues
> as
> > it creates. A strength of tomee is to be simple and understandable by any
> > java guy (far to be the case in jboss or wildfly)
> >
> > Said in very condensed and very personal way: using such a solution for
> > tomee would mean i ll go with deltaspike in tomcat/jetty
> >
> > Ps: never said jboss module was bad, it just doesnt match what i need and
> > want under my apps
> > Le 14 mai 2013 22:11, "middleware" <da...@infocamere.it> a
> > écrit :
> >
> > > The classloader in Jboss AS 7 is in my opinion a very good
> > implementation.
> > > It's base on modules instead of using the more familiar hierarchical
> > class
> > > loading. It's very neat and in my experience it put an end to jar hell
> > >
> > > https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
> > >
> > > I hope my suggestion could became handy, even though I suspect it might
> > be
> > > not easy to implement it in TomEE
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://openejb.979440.n4.nabble.com/tomee-next-classloading-tp4662907p4662953.html
> > > Sent from the OpenEJB Dev mailing list archive at Nabble.com.
> > >
> >
>

Re: tomee next classloading

Posted by Jonathan Gallimore <jo...@gmail.com>.
I'd be in favour of seeing Romain's URLClassLoaderFirst option. I'm not
sure about changing the default setting though. Perhaps we could look for
clashing libraries as part of the scan when deploying an application and
throw up an appropriate warning steering users towards the new setting if
they run into problems?

Davide's suggestion of the JBoss 7 style classloader is an interesting one.
I'm not a big fan of the JBoss/modules structure myself, but I can
understand the appeal. I can imagine it wouldn't be too difficult to write
something to parse the jboss-deployment-structure.xml file and add the
necessary entries to the classpath of the application. Would be great for
existing JBoss / Wildfly users looking to give TomEE a try.

I would have thought we could also provide support for skinny wars/ears by
allowing Class-path entries in MANIFEST.MF where they are either looked up
from a directory within TomEE, or specified like Class-path:
${catalina.home}/modules/mymodule.jar.

Just a thought. Happy to have a go at working on any of these if anyone
likes any of these ideas.

Jon


On Tue, May 14, 2013 at 10:57 PM, Romain Manni-Bucau
<rm...@gmail.com>wrote:

> It would be as easy as what we have today but 2 points:
> * we dont love osgi (thats what i feel at least) - each for
> differents.reason but if we should go for it we'd end with geronimo
> * (personal) jboss module is just an osgi like and solves as much issues as
> it creates. A strength of tomee is to be simple and understandable by any
> java guy (far to be the case in jboss or wildfly)
>
> Said in very condensed and very personal way: using such a solution for
> tomee would mean i ll go with deltaspike in tomcat/jetty
>
> Ps: never said jboss module was bad, it just doesnt match what i need and
> want under my apps
> Le 14 mai 2013 22:11, "middleware" <da...@infocamere.it> a
> écrit :
>
> > The classloader in Jboss AS 7 is in my opinion a very good
> implementation.
> > It's base on modules instead of using the more familiar hierarchical
> class
> > loading. It's very neat and in my experience it put an end to jar hell
> >
> > https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
> >
> > I hope my suggestion could became handy, even though I suspect it might
> be
> > not easy to implement it in TomEE
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/tomee-next-classloading-tp4662907p4662953.html
> > Sent from the OpenEJB Dev mailing list archive at Nabble.com.
> >
>

Re: tomee next classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
It would be as easy as what we have today but 2 points:
* we dont love osgi (thats what i feel at least) - each for
differents.reason but if we should go for it we'd end with geronimo
* (personal) jboss module is just an osgi like and solves as much issues as
it creates. A strength of tomee is to be simple and understandable by any
java guy (far to be the case in jboss or wildfly)

Said in very condensed and very personal way: using such a solution for
tomee would mean i ll go with deltaspike in tomcat/jetty

Ps: never said jboss module was bad, it just doesnt match what i need and
want under my apps
Le 14 mai 2013 22:11, "middleware" <da...@infocamere.it> a écrit :

> The classloader in Jboss AS 7 is in my opinion a very good implementation.
> It's base on modules instead of using the more familiar hierarchical class
> loading. It's very neat and in my experience it put an end to jar hell
>
> https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7
>
> I hope my suggestion could became handy, even though I suspect it might be
> not easy to implement it in TomEE
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/tomee-next-classloading-tp4662907p4662953.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: tomee next classloading

Posted by middleware <da...@infocamere.it>.
The classloader in Jboss AS 7 is in my opinion a very good implementation.
It's base on modules instead of using the more familiar hierarchical class
loading. It's very neat and in my experience it put an end to jar hell 

https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7

I hope my suggestion could became handy, even though I suspect it might be
not easy to implement it in TomEE



--
View this message in context: http://openejb.979440.n4.nabble.com/tomee-next-classloading-tp4662907p4662953.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: tomee next classloading

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

Basically doing 1 shouldnt change the behavior but would solve a bunch of
common issues so id like to get it as default.

If im wrong please explain me, i maybe missed sthg
Le 14 mai 2013 04:26, "David Blevins" <da...@gmail.com> a écrit :

> I don't think I understand this sentence.  Can you rephrase?
>
> -David
>
> On May 13, 2013, at 2:19 PM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > Basically proove me there is any regression introduce by it...noone so no
> > change on the behavior...it just pass when it was not starting
> > Le 13 mai 2013 23:14, "Jean-Louis MONTEIRO" <je...@gmail.com> a
> écrit :
> >
> >> Let's see what will be the result. It's interesting.
> >>
> >> But once again, -1 to change the default behavior.
> >>
> >> Jean-Louis
> >>
> >>
> >> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
> >>
> >>> well IMO we should go for 1 with a config to fallback to what we have
> now
> >>> to get a nice default
> >>>
> >>> i'll try to commit it to see how TCKs behave with such a config, then
> >> we'll
> >>> see i think
> >>>
> >>> *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/5/13 David Blevins <da...@gmail.com>
> >>>
> >>>> In a similar boat.  I think #1 is a feature we need regardless, though
> >> I
> >>>> agree with JL that the default should be as it is now.
> >>>>
> >>>> I have a small hope that we could find a way to make managing shaded
> >>>> dependencies a bit easier.  If we could find a cleaner way to do it
> >> than
> >>> we
> >>>> do now, might be more realistic to try.  It's a bit of a project
> >> though.
> >>>>
> >>>>
> >>>> -David
> >>>>
> >>>> On May 13, 2013, at 1:31 PM, Romain Manni-Bucau <
> rmannibucau@gmail.com
> >>>
> >>>> wrote:
> >>>>
> >>>>> i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
> >>>>> it...impossible today
> >>>>>
> >>>>> a shade will not work without custom clever transformer (never a good
> >>>>> solution)
> >>>>>
> >>>>> so basically i'm for 1/ too if my tests show it works fine enough
> >>>>>
> >>>>> *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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>
> >>>>>
> >>>>>> 1/ just adding a property for an app with values like parent-first
> >>>> (default
> >>>>>> - today) and parent-last (new value).
> >>>>>> 2/ that usually the way other apps servers are used to do (IBM
> >>>> Websphere AS
> >>>>>> IIR)
> >>>>>> 3/Don't know
> >>>>>> 4/No
> >>>>>>
> >>>>>> The first one looks the more simple to implement (at first glance)
> >> and
> >>>> the
> >>>>>> one which produce less impacts and possible side effects for users.
> >>>>>> The second is something which can be studied furthermore and
> >> implement
> >>>> as a
> >>>>>> cherry on the cake.
> >>>>>>
> >>>>>> Then, if I had to choose, I would choose 1/
> >>>>>>
> >>>>>> Jean-Louis
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
> >>>>>>
> >>>>>>> Hi
> >>>>>>>
> >>>>>>> as you probably know we changed quite often the classloading these
> >>> last
> >>>>>>> versions.
> >>>>>>>
> >>>>>>> We still have regularly issues with tomee provided libs (mainly
> >>> because
> >>>>>> of
> >>>>>>> cxf/amq/... transitive deps)
> >>>>>>>
> >>>>>>> I would like to go further and use an URLClassLoaderFirst for lib
> >>> part
> >>>> of
> >>>>>>> ear to allow apps to not rely on tomee libs first.
> >>>>>>>
> >>>>>>> The alternative is to shade/repackage all deps.
> >>>>>>>
> >>>>>>> PS: i want to avoid OSGi
> >>>>>>>
> >>>>>>> So basically here is the question: to solve conflict lib issue what
> >>>> your
> >>>>>>> preferred solution:
> >>>>>>> 1) URLClassLoaderFirst even for ear lib part - if this one please
> >> say
> >>>> if
> >>>>>>> you would like a property to switch back to old behavior
> >>>>>>> (openejb.ear.lib.classloader.first=false?)
> >>>>>>> 2) repackage all deps
> >>>>>>> 3) other
> >>>>>>> 4) OSGi/OSGi like
> >>>>>>> ?
> >>>>>>>
> >>>>>>> If nothing moves in the following days i'll go for 1 (then we can
> >>> still
> >>>>>>> discuss ;).
> >>>>>>>
> >>>>>>> *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*
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Jean-Louis
> >>>>>>
> >>>>
> >>>>
> >>>
> >>
> >>
> >>
> >> --
> >> Jean-Louis
> >>
>
>

Re: tomee next classloading

Posted by David Blevins <da...@gmail.com>.
I don't think I understand this sentence.  Can you rephrase?

-David

On May 13, 2013, at 2:19 PM, Romain Manni-Bucau <rm...@gmail.com> wrote:

> Basically proove me there is any regression introduce by it...noone so no
> change on the behavior...it just pass when it was not starting
> Le 13 mai 2013 23:14, "Jean-Louis MONTEIRO" <je...@gmail.com> a écrit :
> 
>> Let's see what will be the result. It's interesting.
>> 
>> But once again, -1 to change the default behavior.
>> 
>> Jean-Louis
>> 
>> 
>> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
>> 
>>> well IMO we should go for 1 with a config to fallback to what we have now
>>> to get a nice default
>>> 
>>> i'll try to commit it to see how TCKs behave with such a config, then
>> we'll
>>> see i think
>>> 
>>> *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/5/13 David Blevins <da...@gmail.com>
>>> 
>>>> In a similar boat.  I think #1 is a feature we need regardless, though
>> I
>>>> agree with JL that the default should be as it is now.
>>>> 
>>>> I have a small hope that we could find a way to make managing shaded
>>>> dependencies a bit easier.  If we could find a cleaner way to do it
>> than
>>> we
>>>> do now, might be more realistic to try.  It's a bit of a project
>> though.
>>>> 
>>>> 
>>>> -David
>>>> 
>>>> On May 13, 2013, at 1:31 PM, Romain Manni-Bucau <rmannibucau@gmail.com
>>> 
>>>> wrote:
>>>> 
>>>>> i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
>>>>> it...impossible today
>>>>> 
>>>>> a shade will not work without custom clever transformer (never a good
>>>>> solution)
>>>>> 
>>>>> so basically i'm for 1/ too if my tests show it works fine enough
>>>>> 
>>>>> *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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>
>>>>> 
>>>>>> 1/ just adding a property for an app with values like parent-first
>>>> (default
>>>>>> - today) and parent-last (new value).
>>>>>> 2/ that usually the way other apps servers are used to do (IBM
>>>> Websphere AS
>>>>>> IIR)
>>>>>> 3/Don't know
>>>>>> 4/No
>>>>>> 
>>>>>> The first one looks the more simple to implement (at first glance)
>> and
>>>> the
>>>>>> one which produce less impacts and possible side effects for users.
>>>>>> The second is something which can be studied furthermore and
>> implement
>>>> as a
>>>>>> cherry on the cake.
>>>>>> 
>>>>>> Then, if I had to choose, I would choose 1/
>>>>>> 
>>>>>> Jean-Louis
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
>>>>>> 
>>>>>>> Hi
>>>>>>> 
>>>>>>> as you probably know we changed quite often the classloading these
>>> last
>>>>>>> versions.
>>>>>>> 
>>>>>>> We still have regularly issues with tomee provided libs (mainly
>>> because
>>>>>> of
>>>>>>> cxf/amq/... transitive deps)
>>>>>>> 
>>>>>>> I would like to go further and use an URLClassLoaderFirst for lib
>>> part
>>>> of
>>>>>>> ear to allow apps to not rely on tomee libs first.
>>>>>>> 
>>>>>>> The alternative is to shade/repackage all deps.
>>>>>>> 
>>>>>>> PS: i want to avoid OSGi
>>>>>>> 
>>>>>>> So basically here is the question: to solve conflict lib issue what
>>>> your
>>>>>>> preferred solution:
>>>>>>> 1) URLClassLoaderFirst even for ear lib part - if this one please
>> say
>>>> if
>>>>>>> you would like a property to switch back to old behavior
>>>>>>> (openejb.ear.lib.classloader.first=false?)
>>>>>>> 2) repackage all deps
>>>>>>> 3) other
>>>>>>> 4) OSGi/OSGi like
>>>>>>> ?
>>>>>>> 
>>>>>>> If nothing moves in the following days i'll go for 1 (then we can
>>> still
>>>>>>> discuss ;).
>>>>>>> 
>>>>>>> *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*
>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> Jean-Louis
>>>>>> 
>>>> 
>>>> 
>>> 
>> 
>> 
>> 
>> --
>> Jean-Louis
>> 


Re: tomee next classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Basically proove me there is any regression introduce by it...noone so no
change on the behavior...it just pass when it was not starting
Le 13 mai 2013 23:14, "Jean-Louis MONTEIRO" <je...@gmail.com> a écrit :

> Let's see what will be the result. It's interesting.
>
> But once again, -1 to change the default behavior.
>
> Jean-Louis
>
>
> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
>
> > well IMO we should go for 1 with a config to fallback to what we have now
> > to get a nice default
> >
> > i'll try to commit it to see how TCKs behave with such a config, then
> we'll
> > see i think
> >
> > *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/5/13 David Blevins <da...@gmail.com>
> >
> > > In a similar boat.  I think #1 is a feature we need regardless, though
> I
> > > agree with JL that the default should be as it is now.
> > >
> > > I have a small hope that we could find a way to make managing shaded
> > > dependencies a bit easier.  If we could find a cleaner way to do it
> than
> > we
> > > do now, might be more realistic to try.  It's a bit of a project
> though.
> > >
> > >
> > > -David
> > >
> > > On May 13, 2013, at 1:31 PM, Romain Manni-Bucau <rmannibucau@gmail.com
> >
> > > wrote:
> > >
> > > > i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
> > > > it...impossible today
> > > >
> > > > a shade will not work without custom clever transformer (never a good
> > > > solution)
> > > >
> > > > so basically i'm for 1/ too if my tests show it works fine enough
> > > >
> > > > *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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>
> > > >
> > > >> 1/ just adding a property for an app with values like parent-first
> > > (default
> > > >> - today) and parent-last (new value).
> > > >> 2/ that usually the way other apps servers are used to do (IBM
> > > Websphere AS
> > > >> IIR)
> > > >> 3/Don't know
> > > >> 4/No
> > > >>
> > > >> The first one looks the more simple to implement (at first glance)
> and
> > > the
> > > >> one which produce less impacts and possible side effects for users.
> > > >> The second is something which can be studied furthermore and
> implement
> > > as a
> > > >> cherry on the cake.
> > > >>
> > > >> Then, if I had to choose, I would choose 1/
> > > >>
> > > >> Jean-Louis
> > > >>
> > > >>
> > > >>
> > > >>
> > > >> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
> > > >>
> > > >>> Hi
> > > >>>
> > > >>> as you probably know we changed quite often the classloading these
> > last
> > > >>> versions.
> > > >>>
> > > >>> We still have regularly issues with tomee provided libs (mainly
> > because
> > > >> of
> > > >>> cxf/amq/... transitive deps)
> > > >>>
> > > >>> I would like to go further and use an URLClassLoaderFirst for lib
> > part
> > > of
> > > >>> ear to allow apps to not rely on tomee libs first.
> > > >>>
> > > >>> The alternative is to shade/repackage all deps.
> > > >>>
> > > >>> PS: i want to avoid OSGi
> > > >>>
> > > >>> So basically here is the question: to solve conflict lib issue what
> > > your
> > > >>> preferred solution:
> > > >>> 1) URLClassLoaderFirst even for ear lib part - if this one please
> say
> > > if
> > > >>> you would like a property to switch back to old behavior
> > > >>> (openejb.ear.lib.classloader.first=false?)
> > > >>> 2) repackage all deps
> > > >>> 3) other
> > > >>> 4) OSGi/OSGi like
> > > >>> ?
> > > >>>
> > > >>> If nothing moves in the following days i'll go for 1 (then we can
> > still
> > > >>> discuss ;).
> > > >>>
> > > >>> *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*
> > > >>>
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> Jean-Louis
> > > >>
> > >
> > >
> >
>
>
>
> --
> Jean-Louis
>

Re: tomee next classloading

Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Let's see what will be the result. It's interesting.

But once again, -1 to change the default behavior.

Jean-Louis


2013/5/13 Romain Manni-Bucau <rm...@gmail.com>

> well IMO we should go for 1 with a config to fallback to what we have now
> to get a nice default
>
> i'll try to commit it to see how TCKs behave with such a config, then we'll
> see i think
>
> *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/5/13 David Blevins <da...@gmail.com>
>
> > In a similar boat.  I think #1 is a feature we need regardless, though I
> > agree with JL that the default should be as it is now.
> >
> > I have a small hope that we could find a way to make managing shaded
> > dependencies a bit easier.  If we could find a cleaner way to do it than
> we
> > do now, might be more realistic to try.  It's a bit of a project though.
> >
> >
> > -David
> >
> > On May 13, 2013, at 1:31 PM, Romain Manni-Bucau <rm...@gmail.com>
> > wrote:
> >
> > > i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
> > > it...impossible today
> > >
> > > a shade will not work without custom clever transformer (never a good
> > > solution)
> > >
> > > so basically i'm for 1/ too if my tests show it works fine enough
> > >
> > > *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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>
> > >
> > >> 1/ just adding a property for an app with values like parent-first
> > (default
> > >> - today) and parent-last (new value).
> > >> 2/ that usually the way other apps servers are used to do (IBM
> > Websphere AS
> > >> IIR)
> > >> 3/Don't know
> > >> 4/No
> > >>
> > >> The first one looks the more simple to implement (at first glance) and
> > the
> > >> one which produce less impacts and possible side effects for users.
> > >> The second is something which can be studied furthermore and implement
> > as a
> > >> cherry on the cake.
> > >>
> > >> Then, if I had to choose, I would choose 1/
> > >>
> > >> Jean-Louis
> > >>
> > >>
> > >>
> > >>
> > >> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
> > >>
> > >>> Hi
> > >>>
> > >>> as you probably know we changed quite often the classloading these
> last
> > >>> versions.
> > >>>
> > >>> We still have regularly issues with tomee provided libs (mainly
> because
> > >> of
> > >>> cxf/amq/... transitive deps)
> > >>>
> > >>> I would like to go further and use an URLClassLoaderFirst for lib
> part
> > of
> > >>> ear to allow apps to not rely on tomee libs first.
> > >>>
> > >>> The alternative is to shade/repackage all deps.
> > >>>
> > >>> PS: i want to avoid OSGi
> > >>>
> > >>> So basically here is the question: to solve conflict lib issue what
> > your
> > >>> preferred solution:
> > >>> 1) URLClassLoaderFirst even for ear lib part - if this one please say
> > if
> > >>> you would like a property to switch back to old behavior
> > >>> (openejb.ear.lib.classloader.first=false?)
> > >>> 2) repackage all deps
> > >>> 3) other
> > >>> 4) OSGi/OSGi like
> > >>> ?
> > >>>
> > >>> If nothing moves in the following days i'll go for 1 (then we can
> still
> > >>> discuss ;).
> > >>>
> > >>> *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*
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Jean-Louis
> > >>
> >
> >
>



-- 
Jean-Louis

Re: tomee next classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
well IMO we should go for 1 with a config to fallback to what we have now
to get a nice default

i'll try to commit it to see how TCKs behave with such a config, then we'll
see i think

*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/5/13 David Blevins <da...@gmail.com>

> In a similar boat.  I think #1 is a feature we need regardless, though I
> agree with JL that the default should be as it is now.
>
> I have a small hope that we could find a way to make managing shaded
> dependencies a bit easier.  If we could find a cleaner way to do it than we
> do now, might be more realistic to try.  It's a bit of a project though.
>
>
> -David
>
> On May 13, 2013, at 1:31 PM, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
> > it...impossible today
> >
> > a shade will not work without custom clever transformer (never a good
> > solution)
> >
> > so basically i'm for 1/ too if my tests show it works fine enough
> >
> > *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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>
> >
> >> 1/ just adding a property for an app with values like parent-first
> (default
> >> - today) and parent-last (new value).
> >> 2/ that usually the way other apps servers are used to do (IBM
> Websphere AS
> >> IIR)
> >> 3/Don't know
> >> 4/No
> >>
> >> The first one looks the more simple to implement (at first glance) and
> the
> >> one which produce less impacts and possible side effects for users.
> >> The second is something which can be studied furthermore and implement
> as a
> >> cherry on the cake.
> >>
> >> Then, if I had to choose, I would choose 1/
> >>
> >> Jean-Louis
> >>
> >>
> >>
> >>
> >> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
> >>
> >>> Hi
> >>>
> >>> as you probably know we changed quite often the classloading these last
> >>> versions.
> >>>
> >>> We still have regularly issues with tomee provided libs (mainly because
> >> of
> >>> cxf/amq/... transitive deps)
> >>>
> >>> I would like to go further and use an URLClassLoaderFirst for lib part
> of
> >>> ear to allow apps to not rely on tomee libs first.
> >>>
> >>> The alternative is to shade/repackage all deps.
> >>>
> >>> PS: i want to avoid OSGi
> >>>
> >>> So basically here is the question: to solve conflict lib issue what
> your
> >>> preferred solution:
> >>> 1) URLClassLoaderFirst even for ear lib part - if this one please say
> if
> >>> you would like a property to switch back to old behavior
> >>> (openejb.ear.lib.classloader.first=false?)
> >>> 2) repackage all deps
> >>> 3) other
> >>> 4) OSGi/OSGi like
> >>> ?
> >>>
> >>> If nothing moves in the following days i'll go for 1 (then we can still
> >>> discuss ;).
> >>>
> >>> *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*
> >>>
> >>
> >>
> >>
> >> --
> >> Jean-Louis
> >>
>
>

Re: tomee next classloading

Posted by David Blevins <da...@gmail.com>.
In a similar boat.  I think #1 is a feature we need regardless, though I agree with JL that the default should be as it is now.

I have a small hope that we could find a way to make managing shaded dependencies a bit easier.  If we could find a cleaner way to do it than we do now, might be more realistic to try.  It's a bit of a project though.


-David

On May 13, 2013, at 1:31 PM, Romain Manni-Bucau <rm...@gmail.com> wrote:

> i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
> it...impossible today
> 
> a shade will not work without custom clever transformer (never a good
> solution)
> 
> so basically i'm for 1/ too if my tests show it works fine enough
> 
> *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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>
> 
>> 1/ just adding a property for an app with values like parent-first (default
>> - today) and parent-last (new value).
>> 2/ that usually the way other apps servers are used to do (IBM Websphere AS
>> IIR)
>> 3/Don't know
>> 4/No
>> 
>> The first one looks the more simple to implement (at first glance) and the
>> one which produce less impacts and possible side effects for users.
>> The second is something which can be studied furthermore and implement as a
>> cherry on the cake.
>> 
>> Then, if I had to choose, I would choose 1/
>> 
>> Jean-Louis
>> 
>> 
>> 
>> 
>> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
>> 
>>> Hi
>>> 
>>> as you probably know we changed quite often the classloading these last
>>> versions.
>>> 
>>> We still have regularly issues with tomee provided libs (mainly because
>> of
>>> cxf/amq/... transitive deps)
>>> 
>>> I would like to go further and use an URLClassLoaderFirst for lib part of
>>> ear to allow apps to not rely on tomee libs first.
>>> 
>>> The alternative is to shade/repackage all deps.
>>> 
>>> PS: i want to avoid OSGi
>>> 
>>> So basically here is the question: to solve conflict lib issue what your
>>> preferred solution:
>>> 1) URLClassLoaderFirst even for ear lib part - if this one please say if
>>> you would like a property to switch back to old behavior
>>> (openejb.ear.lib.classloader.first=false?)
>>> 2) repackage all deps
>>> 3) other
>>> 4) OSGi/OSGi like
>>> ?
>>> 
>>> If nothing moves in the following days i'll go for 1 (then we can still
>>> discuss ;).
>>> 
>>> *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*
>>> 
>> 
>> 
>> 
>> --
>> Jean-Louis
>> 


Re: tomee next classloading

Posted by Romain Manni-Bucau <rm...@gmail.com>.
i'm playing with 1 ATM, 2 would be the best but we'd need to maintain
it...impossible today

a shade will not work without custom clever transformer (never a good
solution)

so basically i'm for 1/ too if my tests show it works fine enough

*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/5/13 Jean-Louis MONTEIRO <je...@gmail.com>

> 1/ just adding a property for an app with values like parent-first (default
> - today) and parent-last (new value).
> 2/ that usually the way other apps servers are used to do (IBM Websphere AS
> IIR)
> 3/Don't know
> 4/No
>
> The first one looks the more simple to implement (at first glance) and the
> one which produce less impacts and possible side effects for users.
> The second is something which can be studied furthermore and implement as a
> cherry on the cake.
>
> Then, if I had to choose, I would choose 1/
>
> Jean-Louis
>
>
>
>
> 2013/5/13 Romain Manni-Bucau <rm...@gmail.com>
>
> > Hi
> >
> > as you probably know we changed quite often the classloading these last
> > versions.
> >
> > We still have regularly issues with tomee provided libs (mainly because
> of
> > cxf/amq/... transitive deps)
> >
> > I would like to go further and use an URLClassLoaderFirst for lib part of
> > ear to allow apps to not rely on tomee libs first.
> >
> > The alternative is to shade/repackage all deps.
> >
> > PS: i want to avoid OSGi
> >
> > So basically here is the question: to solve conflict lib issue what your
> > preferred solution:
> > 1) URLClassLoaderFirst even for ear lib part - if this one please say if
> > you would like a property to switch back to old behavior
> > (openejb.ear.lib.classloader.first=false?)
> > 2) repackage all deps
> > 3) other
> > 4) OSGi/OSGi like
> > ?
> >
> > If nothing moves in the following days i'll go for 1 (then we can still
> > discuss ;).
> >
> > *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*
> >
>
>
>
> --
> Jean-Louis
>

Re: tomee next classloading

Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
1/ just adding a property for an app with values like parent-first (default
- today) and parent-last (new value).
2/ that usually the way other apps servers are used to do (IBM Websphere AS
IIR)
3/Don't know
4/No

The first one looks the more simple to implement (at first glance) and the
one which produce less impacts and possible side effects for users.
The second is something which can be studied furthermore and implement as a
cherry on the cake.

Then, if I had to choose, I would choose 1/

Jean-Louis




2013/5/13 Romain Manni-Bucau <rm...@gmail.com>

> Hi
>
> as you probably know we changed quite often the classloading these last
> versions.
>
> We still have regularly issues with tomee provided libs (mainly because of
> cxf/amq/... transitive deps)
>
> I would like to go further and use an URLClassLoaderFirst for lib part of
> ear to allow apps to not rely on tomee libs first.
>
> The alternative is to shade/repackage all deps.
>
> PS: i want to avoid OSGi
>
> So basically here is the question: to solve conflict lib issue what your
> preferred solution:
> 1) URLClassLoaderFirst even for ear lib part - if this one please say if
> you would like a property to switch back to old behavior
> (openejb.ear.lib.classloader.first=false?)
> 2) repackage all deps
> 3) other
> 4) OSGi/OSGi like
> ?
>
> If nothing moves in the following days i'll go for 1 (then we can still
> discuss ;).
>
> *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*
>



-- 
Jean-Louis