You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by "Jonathan S. Fisher" <jo...@springventuregroup.com> on 2015/10/25 02:24:36 UTC

abusing the TomEE classloader: what order are the loaded in?

Hey guys,

I have a library from a 3rd party in my WEB-INF/lib/some.jar. It has a
single bug in it. Is it possible to load one of the classes from somewhere
else?

Another words what I'm asking is, what order does TomEE load classes from
the classpath from or is it even guaranteed to be in a certain order?

Thanks!

-Jonathan

-- 
Email Confidentiality Notice: The information contained in this 
transmission is confidential, proprietary or privileged and may be subject 
to protection under the law, including the Health Insurance Portability and 
Accountability Act (HIPAA). The message is intended for the sole use of the 
individual or entity to whom it is addressed. If you are not the intended 
recipient, you are notified that any use, distribution or copying of the 
message is strictly prohibited and may subject you to criminal or civil 
penalties. If you received this transmission in error, please contact the 
sender immediately by replying to this email and delete the material from 
any computer.

Re: abusing the TomEE classloader: what order are the loaded in?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
https://issues.apache.org/jira/browse/TOMEE-794

it supports mvn but also file paths or directories (*.jar wildcard)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-10-25 9:58 GMT+01:00 Lars-Fredrik Smedberg <it...@gmail.com>:

> @Romain where can I read more about jaxrs.txt ?
> On Oct 25, 2015 09:34, "Romain Manni-Bucau" <rm...@gmail.com> wrote:
>
> > Think only web-inf/classez is guaranteed to be first but using jaxrs.txt
> > you should have a guaranteed order.
> >
> > Side note: tomcat just added a flag on snapshot to have a sorting, will
> > come in tomee with a next release.
> > Le 25 oct. 2015 02:24, "Jonathan S. Fisher" <
> > jonathan@springventuregroup.com>
> > a écrit :
> >
> > > Hey guys,
> > >
> > > I have a library from a 3rd party in my WEB-INF/lib/some.jar. It has a
> > > single bug in it. Is it possible to load one of the classes from
> > somewhere
> > > else?
> > >
> > > Another words what I'm asking is, what order does TomEE load classes
> from
> > > the classpath from or is it even guaranteed to be in a certain order?
> > >
> > > Thanks!
> > >
> > > -Jonathan
> > >
> > > --
> > > Email Confidentiality Notice: The information contained in this
> > > transmission is confidential, proprietary or privileged and may be
> > subject
> > > to protection under the law, including the Health Insurance Portability
> > and
> > > Accountability Act (HIPAA). The message is intended for the sole use of
> > the
> > > individual or entity to whom it is addressed. If you are not the
> intended
> > > recipient, you are notified that any use, distribution or copying of
> the
> > > message is strictly prohibited and may subject you to criminal or civil
> > > penalties. If you received this transmission in error, please contact
> the
> > > sender immediately by replying to this email and delete the material
> from
> > > any computer.
> > >
> >
>

Re: abusing the TomEE classloader: what order are the loaded in?

Posted by Lars-Fredrik Smedberg <it...@gmail.com>.
@Romain where can I read more about jaxrs.txt ?
On Oct 25, 2015 09:34, "Romain Manni-Bucau" <rm...@gmail.com> wrote:

> Think only web-inf/classez is guaranteed to be first but using jaxrs.txt
> you should have a guaranteed order.
>
> Side note: tomcat just added a flag on snapshot to have a sorting, will
> come in tomee with a next release.
> Le 25 oct. 2015 02:24, "Jonathan S. Fisher" <
> jonathan@springventuregroup.com>
> a écrit :
>
> > Hey guys,
> >
> > I have a library from a 3rd party in my WEB-INF/lib/some.jar. It has a
> > single bug in it. Is it possible to load one of the classes from
> somewhere
> > else?
> >
> > Another words what I'm asking is, what order does TomEE load classes from
> > the classpath from or is it even guaranteed to be in a certain order?
> >
> > Thanks!
> >
> > -Jonathan
> >
> > --
> > Email Confidentiality Notice: The information contained in this
> > transmission is confidential, proprietary or privileged and may be
> subject
> > to protection under the law, including the Health Insurance Portability
> and
> > Accountability Act (HIPAA). The message is intended for the sole use of
> the
> > individual or entity to whom it is addressed. If you are not the intended
> > recipient, you are notified that any use, distribution or copying of the
> > message is strictly prohibited and may subject you to criminal or civil
> > penalties. If you received this transmission in error, please contact the
> > sender immediately by replying to this email and delete the material from
> > any computer.
> >
>

Re: abusing the TomEE classloader: what order are the loaded in?

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Think only web-inf/classez is guaranteed to be first but using jaxrs.txt
you should have a guaranteed order.

Side note: tomcat just added a flag on snapshot to have a sorting, will
come in tomee with a next release.
Le 25 oct. 2015 02:24, "Jonathan S. Fisher" <jo...@springventuregroup.com>
a écrit :

> Hey guys,
>
> I have a library from a 3rd party in my WEB-INF/lib/some.jar. It has a
> single bug in it. Is it possible to load one of the classes from somewhere
> else?
>
> Another words what I'm asking is, what order does TomEE load classes from
> the classpath from or is it even guaranteed to be in a certain order?
>
> Thanks!
>
> -Jonathan
>
> --
> Email Confidentiality Notice: The information contained in this
> transmission is confidential, proprietary or privileged and may be subject
> to protection under the law, including the Health Insurance Portability and
> Accountability Act (HIPAA). The message is intended for the sole use of the
> individual or entity to whom it is addressed. If you are not the intended
> recipient, you are notified that any use, distribution or copying of the
> message is strictly prohibited and may subject you to criminal or civil
> penalties. If you received this transmission in error, please contact the
> sender immediately by replying to this email and delete the material from
> any computer.
>