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 2014/04/15 07:44:16 UTC

do we allow dbcp to be used from the webapp?

Hi guys

currently if you use dbcp from the webapp relying on a driver in the
webapp it fails cause dbcp uses the wrong classloader. Allowing dbcp
to be loaded from the webapp it works.

Wonder if we let it (= don't filter it anymore in shouldSkip logic of
our URLClassLoaderFirst) and set TCCL to the container
(ParentClassLoaderFinder.Helper.get()) in our DataSourceFactory to
ensure *we* rely on our lib.

wdyt?

(my app had oracle + dbcp in the webapp, I know it is wrong actually
done by not full EE users)

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