[WLS12.1.3]- @Context Injection For Jersey Will Fail When CDI Is Enabled

(Doc ID 1996563.1)

Last updated on APRIL 05, 2018

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


In Weblogic 12.1.3, when CDI injection is enabled by placing an empty beans.xml under /WEB-INF, @Context injection for Jersey 2.5.1 resources or filters will fail.Below is the exception snippet:

Root cause of ServletException.


at org.glassfish.jersey.tests.integration.jersey1960.RequestFilter.filter(RequestFilter.java:98)

at org.glassfish.jersey.server.ContainerFilteringStage.apply(ContainerFilteringStage.java:171)

at org.glassfish.jersey.server.ContainerFilteringStage.apply(ContainerFilteringStage.java:74)

at org.glassfish.jersey.process.internal.Stages.process(Stages.java:197)

at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:250)

Truncated. see log file for complete stacktrace


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms