changes on classpath
This commit is contained in:
parent
a7f666556d
commit
101b0f1e0d
|
@ -141,7 +141,7 @@ public class Bootstrap implements ServletContainerInitializer {
|
|||
try {
|
||||
|
||||
// TODO Ask why is needed?
|
||||
Thread.currentThread().setContextClassLoader(ContainerManager.class.getClassLoader());
|
||||
//Thread.currentThread().setContextClassLoader(ContainerManager.class.getClassLoader());
|
||||
|
||||
manager = ContainerManager.instance;
|
||||
|
||||
|
|
|
@ -147,14 +147,14 @@ public class DefaultProvider implements Provider {
|
|||
|
||||
// searching for smartegars related application handlers in the common
|
||||
// classloader
|
||||
ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
if (currentClassLoader.getParent() != null
|
||||
//ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
|
||||
/*if (currentClassLoader.getParent() != null
|
||||
&& !currentClassLoader.getParent().equals(ClassLoader.getSystemClassLoader())) {
|
||||
log.trace("probably i'm in a webapp classloader");
|
||||
currentClassLoader = currentClassLoader.getParent();
|
||||
}
|
||||
}*/
|
||||
|
||||
ApplicationHandlers defaultHandlers = binder.bindHandlers(currentClassLoader);
|
||||
ApplicationHandlers defaultHandlers = binder.bindHandlers(ClassLoader.getPlatformClassLoader());
|
||||
|
||||
return defaultHandlers;
|
||||
|
||||
|
|
Loading…
Reference in New Issue