Skip to content
Permalink
Browse files
ensure TCCL is preferred over bval loader (OSGi+EE)
  • Loading branch information
rmannibucau authored and mbenson committed Oct 16, 2018
1 parent 8cd26a8 commit 137910ffa92ed94ca0911bf114010f36fc7e71ae
Showing 1 changed file with 8 additions and 2 deletions.
@@ -411,14 +411,20 @@ private void prepare() {
private BootstrapConfiguration createBootstrapConfiguration() {
try {
if (!ignoreXmlConfiguration) {
loader = ValidationParser.class.getClassLoader();
loader = Thread.currentThread().getContextClassLoader();
if (loader == null) {
loader = ValidationParser.class.getClassLoader();
}
final BootstrapConfiguration xmlBootstrap =
ValidationParser.processValidationConfig(getProperties().get(Properties.VALIDATION_XML_PATH), this);
if (xmlBootstrap != null) {
return xmlBootstrap;
}
}
loader = ApacheValidatorFactory.class.getClassLoader();
loader = Thread.currentThread().getContextClassLoader();
if (loader == null) {
loader = ApacheValidatorFactory.class.getClassLoader();
}
return BootstrapConfigurationImpl.DEFAULT;
} finally {
participantFactory = new ParticipantFactory(loader);

0 comments on commit 137910f

Please sign in to comment.