dev@glassfish.java.net

SecurityRoleMapperFactoryMgr.getFactory

From: Amy Roh <Amelia.Roh_at_Sun.COM>
Date: Mon, 10 Mar 2008 17:35:00 -0700

Hi,

I'm trying to add support for default web module in V3 and am getting
the following error when trying to deploy.

SEVERE: Exception while invoking class
com.sun.enterprise.security.SecurityDeployer prepare method
java.lang.RuntimeException
        at
org.glassfish.deployment.common.SimpleDeployer.prepare(SimpleDeployer.java:69)
Caused by: java.lang.NullPointerException
        at
com.sun.enterprise.security.web.integration.WebSecurityManager.<init>(WebSecurityManager.java:186)
        at
com.sun.enterprise.security.web.integration.WebSecurityManagerFactory.newWebSecurityManager(WebSecurityManagerFactory.java:147)

Looking at WebSecurityManager more closely, it looks like
SecurityRoleMapperFactoryMgr.getFactory() is returning null. The
comment reads "SecurityRoleMapperFactory is a singleton in the VM".

Any helpful clue on why this is happening?

Thanks,
Amy