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

Reply via email to