My Oracle Support Banner

A NullPointerException is Thrown When Attempting to Deploy a JSF Servlet in Oracle GlassFish Server (Doc ID 1387520.1)

Last updated on FEBRUARY 28, 2019

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

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
Symptoms
Cause
Solution
References


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