Last active
November 30, 2015 12:48
-
-
Save esarbanis/0bd43cfd7c2483162b9e to your computer and use it in GitHub Desktop.
Add the following class to META-INF/services/javax.enterprise.inject.spi.Extension file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Weblogic ClassLoader on CDI Extension don´t localize META-INF/services necessary to load ProcessEngine. | |
* <p> | |
* This class provides an overriding extension point which uses the correct classloader, in order to instantiate | |
* a {@link org.activiti.cdi.spi.ProcessEngineLookup} | |
* </p> | |
*/ | |
public class WeblogicActivitiExtension extends ActivitiExtension { | |
public void beforeBeanDiscovery(@Observes final BeforeBeanDiscovery event) { | |
super.beforeBeanDiscovery(event); | |
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment