My first issues arise with creating a new user from the PetStore app. The
first problem arose when I tried to create a new user from the app. The user
appears to be created but the managed server output shows a stack trace. The
new user is not created in the realm because a managed server can't update a
realm. The Stack trace from the managed server is:
weblogic.management.internal.RemoteRealmException: Realms cannot be managed
by managed servers.
at
weblogic.management.internal.RemoteRealmManagerImpl.checkWriteAccess(RemoteR
ealmManagerImpl.java:378)
at
weblogic.management.internal.RemoteRealmManagerImpl.createUser(RemoteRealmMa
nagerImpl.java:46)
at
weblogic.management.configuration.RealmManager.createUser(RealmManager.java:
58)
at
com.bea.estore.util.WLSecurityAdapter.addUser(WLSecurityAdapter.java:44)
Q) How is this solved. There must be a way to create a new user from a
managed server.
The second issue was found trying to solve the first. I went to the console
for the pet store admin server and manually added the user to the file
realm. I made sure the changes were saved. None of the managed servers
recognized the new user until they were bounced.
Q) How do you get changes in a security realm propagated to the managed
servers? Is this only a file realm problem?
Thanks,
Rick