Skip to content

Commit

Permalink
[CXF-6402] Anoter try at initializing contexts from the existing server
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Beryozkin committed May 18, 2015
1 parent 4e60f32 commit 2228842
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,10 @@ public synchronized void addServant(URL url, JettyHTTPHandler handler) {
checkRegistedContext(url);
}
if (contexts == null) {
contexts = new ContextHandlerCollection();
if (server != null) {
server.setHandler(contexts);
if (server != null && server.getHandler() instanceof ContextHandlerCollection) {
contexts = (ContextHandlerCollection) server.getHandler();
} else {
contexts = new ContextHandlerCollection();
}
}

Expand Down

0 comments on commit 2228842

Please sign in to comment.