kamranzafar / JCL

Jar Class Loader, a configurable and dynamic custom classloader designed to create, manage and manipulate isolated Java classloaders in IoC frameworks and web applications.
http://kamranzafar.github.com/
579 stars 161 forks source link

Cannot load com.ctc.wstx.stax.WstxInputFactory #76

Open tommy38hk opened 2 years ago

tommy38hk commented 2 years ago

When trying to execute a method in a jar which internally it calls to com.ctc.wstx.stax.WstxInputFactory. JCL throws the following exception

javax.xml.stream.FactoryConfigurationError: Provider com.ctc.wstx.stax.WstxInputFactory not found

I have call to JarClassLoader to load all the jars in a folder

JarClassLoader jc = new JarClassLoader(); jc.add("C:\test\lib\") ;

and woodstox-core-asl.jar is in that folder.

What did I do wrong?