Hi, that's some slight optimizations pushed years ago, not sure it is still relevant today to do it. In fact it mainly depends libs, for disgester that's the real first time we have an issue because of it - i have to admit i didnt dig in your case so can't say really more.
*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/7 Witold Szczerba <pljosh.m...@gmail.com> > Hi, > It was strange, I could not reproduce the initial issue on my > computer. It turned out it was because I had TomEE 1.5.0 JAX-RS, while > the other guy had 1.5.1 JAX-RS. Once I updated to 1.5.2, the issue > appeared. > The fix you have provided: > openejb.classloader.forced-load=org.apache.commons.digester > works well though, thanks. > > The question is: should TomEE by default try to find classes in > WEB-INF/lib of web apps, as it was in 1.5.0 and how it is in vanilla > Tomcat? > > Regards, > Witold Szczerba > > On 6 May 2013 14:17, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > > it forces to load the matching classes (that's a prefix) from the webapp > > first > > > > you can update the page normally if you want to contribute this doc to > the > > site > > > > *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/6 Witold Szczerba <pljosh.m...@gmail.com> > > > >> What does it do? It is not present in documentation page: > >> http://tomee.apache.org/properties-listing.html > >> > >> Will check that ASAP. > >> > >> Thanks, > >> Witold Szczerba > >> > >> On 6 May 2013 14:03, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > >> > Hi > >> > > >> > maybe try adding in conf/system.properties: > >> > > >> > openejb.classloader.forced-load=org.apache.commons.digester > >> > > >> > *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/6 Witold Szczerba <pljosh.m...@gmail.com> > >> > > >> >> Hi, > >> >> I have problem with TomEE and the extra libraries it adds to > tomee/lib > >> >> folder. > >> >> > >> >> I am using JXLS library, it uses commons-digester and few others. The > >> >> problem is, TomEE also comes with commons-digester. This library has > >> >> very unfortunate behavior: > >> >> > >> >> // Instantiate the new object and push it on the context > stack > >> >> Class<?> clazz = > >> >> digester.getClassLoader().loadClass(realClassName); > >> >> Object instance = clazz.newInstance(); > >> >> digester.push(instance); > >> >> > >> >> The problem is the "realClassName" cannot be located, it comes with > >> >> JXLS, but commons-digester comes from TomEE (the one provided in my > >> >> webapp is ignored). > >> >> > >> >> Following the rules described here: > >> >> http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html > >> >> ,the classes in "WebappX" WEB-INF/lib should take precedence of > >> >> anything else. This is not the case though and my application fails. > >> >> > >> >> Is it possible to let my application's class loader works like in > >> >> Tomcat, this is, use WEB-INF/lib and delegate to tomee/lib in a > second > >> >> step? > >> >> > >> >> Thanks, > >> >> Witold Szczerba > >> >> > >> >