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