WLST Throws "ClassNotFoundException: WSRPIdentityAsserterMBean" while Listing Users in WLP Domain (Doc ID 1348716.1)

Last updated on JULY 10, 2017

Applies to:

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

Symptoms

WLST script is reporting a ClassNotFoundException while listing users in WebLogic Portal (WLP) domain.

The following is the script used:

# Method for listing all users
def listUsers(pDomainName) :
from weblogic.management.security.authentication import UserReaderMBean
cd("/")
cd("SecurityConfiguration/"+pDomainName)
sec = cmo
realm = cmo.findDefaultRealm()
atns = realm.getAuthenticationProviders()
for i in atns:
if isinstance(i,UserReaderMBean):
userReader = i
cursor = i.listUsers("*",0)
print 'Users in realm are: '
while userReader.haveCurrent(cursor):
print userReader.getCurrentName(cursor)
userReader.advance(cursor)
userReader.close(cursor)
cd("/")


The following is the error reported:

[java] Problem invoking WLST - Traceback (innermost last):
[java] File "/prod/msp/stage/msp_psssp_dps_01_06_22_2011_wkarea/Deployment/AdminTool92/wlst/UsersGroupsAndRoles.py", line 372, in ?
[java] File "/prod/msp/stage/msp_psssp_dps_01_06_22_2011_wkarea/Deployment/AdminTool92/wlst/UsersGroupsAndRoles.py", line 76, in listUsers
[java] at weblogic.management.jmx.MBeanServerInvocationHandler.newProxyInstance(MBeanServerInvocationHandler.java:621)
[java] at weblogic.management.jmx.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:433)
[java] at $Proxy44.getAuthenticationProviders(Unknown Source)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java]
[java] java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.bea.wsrp.security.WSRPIdentityAsserterMBean
[java]

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