application case was missing in the 
/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java
 class


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/9573042c
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/9573042c
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/9573042c

Branch: refs/heads/master
Commit: 9573042cea8b680ad68453e448152f98f9f57367
Parents: 334ab07
Author: Thiago Veronezi <thi...@veronezi.org>
Authored: Tue Jul 17 05:42:07 2018 -0400
Committer: Thiago Veronezi <thi...@veronezi.org>
Committed: Tue Jul 17 05:42:07 2018 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java  | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/9573042c/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java
----------------------------------------------------------------------
diff --git 
a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java
 
b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java
index e1a5411..4fc3211 100644
--- 
a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java
+++ 
b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/Contexts.java
@@ -178,6 +178,9 @@ public final class Contexts {
             } else if (ResourceContext.class.equals(type)) {
                 final ResourceContext config = 
JAXRSUtils.createContextValue(exchange.getInMessage(), null, 
ResourceContext.class);
                 ThreadLocalContextManager.RESOURCE_CONTEXT.set(config);
+            } else if (Application.class.equals(type)) {
+                final Application config = 
JAXRSUtils.createContextValue(exchange.getInMessage(), null, Application.class);
+                ThreadLocalContextManager.APPLICATION.set(config);
             } else {
                 final Message message = exchange.getInMessage();
                 final ContextProvider<?> provider = 
ProviderFactory.getInstance(message).createContextProvider(type, message);

Reply via email to