A NullPointerException is Thrown When Attempting to Deploy a JSF Servlet in Oracle GlassFish Server

(Doc ID 1387520.1)

Last updated on APRIL 06, 2017

Applies to:

Oracle GlassFish Server - Version 2.1.1 to 3.1.1 [Release 2.1 to 3.1]
Information in this document applies to any platform.

Symptoms

The following stack trace is seen in the server log when a web application is deployed.


[#|2011-11-16T17:15:53.876-0800|SEVERE|sun-appserver2.1.1|javax.enterprise.system.container.web|_ThreadID=17;_ThreadName=Thread-130;_RequestID=ac471d75-9d67-4f1e-bb74-fb467503ede5;|WebModule[/crx]StandardWrapper.Throwable
java.lang.NullPointerException
at com.xxx.StartupServlet.getServletConfig(StartupServlet.java:73)
at com.sun.web.security.RealmAdapter.getServletName(RealmAdapter.java:615)
at com.sun.web.security.RealmAdapter.postSetRunAsIdentity(RealmAdapter.java:650)
at com.sun.enterprise.util.InvocationManagerImpl.postInvoke(InvocationManagerImpl.java:207)
at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:263)
at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:119)

Cause

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