My Oracle Support Banner

[WLS12.1.3]- @Context Injection For Jersey Will Fail When CDI Is Enabled (Doc ID 1996563.1)

Last updated on FEBRUARY 03, 2019

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(

at org.glassfish.jersey.server.ContainerFilteringStage.apply(

at org.glassfish.jersey.server.ContainerFilteringStage.apply(

at org.glassfish.jersey.process.internal.Stages.process(

at org.glassfish.jersey.server.ServerRuntime$

Truncated. see log file for complete stacktrace


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.