This is the fix I just made today which resolved the problem somehow. The
problem is we'd like to better understand the following:
1) why was this fix needed?
2) is this the best way to fix the problem?
3) why/how is the problem fixed?
before (unable to login to WAR app):
cxt = new InitialContext();
after (able to login to WAR app; exception does not reproduce):
ClassLoader cl = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
try {
cxt = new InitialContext();
}
finally {
Thread.currentThread().setContextClassLoader(cl);
}
--
View this message in context:
http://karaf.922171.n3.nabble.com/Unable-to-find-the-InitialContextFactory-org-eclipse-jetty-jndi-InitialContextFactory-tp4034652p4034697.html
Sent from the Karaf - User mailing list archive at Nabble.com.