My Oracle Support Banner

Jersey 1.1 Style Servlet-Mapping Ignored and Unable to Start WLS 12.2.1 with "CDI definition failure:java.lang.NullPointerException" (Doc ID 2149796.1)

Last updated on MARCH 30, 2022

Applies to:

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


When attempting to deploy a Jersey 1.1 application in WebLogic Server 12.2.1, it was discovered that the servlet-mapping for com.sun.jersey.spi.container.servlet.ServletContainer is ignored and an " CDI definition failure:java.lang.NullPointerException" occurs when starting WLS. 

 For example, with:

<display-name>My Jersey Application</display-name>

In 12.1.3 the URI is '/weblogicupgrade/rest/test/helloworld'

In 12.2.1 the URI is '/weblogicupgrade/resources/test/helloworld'


Per doc,, servlet-mapping should take priority. A lower priority is the default 'resources' URI.


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.