Hi Everybody,

I have this problem when I enable security using Custom Registry in WAS v5 Enterprise Edition. The procedure that cuases problems in WAS works fine with WSAD 5.1.

I have implemented Custom Security in WAS 5.0 Enterprise. After onfiguring security when I restart the server ti gives the following error. have checked the UID and password. They are correct.

Please help me .
Expecting to hear from you,

Pallav
email: bora_pallav@rediffmail.com
====================Error message ========================
[4/6/04 15:54:03:297 GMT+05:30] 64bcea8a ObjectPoolSer I OBPL0010I: The Object Pool service started successfully.
[4/6/04 15:54:03:844 GMT+05:30] 64bcea8a SASRas A JSAS0001I: Security configuration initialized.
[4/6/04 15:54:07:328 GMT+05:30] 64bcea8a SASRas A JSAS0002I: Authentication protocol: CSIV2
[4/6/04 15:54:07:344 GMT+05:30] 64bcea8a SASRas A JSAS0003I: Authentication mechanism: SWAM
[4/6/04 15:54:07:359 GMT+05:30] 64bcea8a SASRas A JSAS0004I: Principal name: TntUserRegistry/TEST001
[4/6/04 15:54:07:484 GMT+05:30] 64bcea8a SASRas A JSAS0005I: SecurityCurrent registered.
[4/6/04 15:54:07:500 GMT+05:30] 64bcea8a SASRas A JSAS0006I: Security connection interceptor initialized.
[4/6/04 15:54:07:516 GMT+05:30] 64bcea8a SASRas A JSAS0007I: Client request interceptor registered.
[4/6/04 15:54:07:625 GMT+05:30] 64bcea8a SASRas A JSAS0008I: Server request interceptor registered.
[4/6/04 15:54:07:750 GMT+05:30] 64bcea8a SASRas A JSAS0009I: IOR interceptor registered.
[4/6/04 15:54:09:359 GMT+05:30] 64bcea8a UserRegistryI A SECJ0136I: Custom Registry:com.tnt.ww.shared.security.userregistry.U serRegistry has been initialized
[4/6/04 15:54:10:781 GMT+05:30] 64bcea8a Authenticatio E SECJ4001E: Login failed for TEST001/ javax.security.auth.login.LoginException: e.getMessage()
at com.ibm.ws.security.server.lm.swamLoginModule.logi n(swamLoginModule.java:237)
at com.ibm.ws.security.common.auth.module.proxy.WSLog inModuleProxy.login(WSLoginModuleProxy.java:119)
at java.lang.reflect.Method.invoke(Native Method)
at javax.security.auth.login.LoginContext.invoke(Logi nContext.java:607)
at javax.security.auth.login.LoginContext.access$000( LoginContext.java:124)
at javax.security.auth.login.LoginContext$3.run(Login Context.java:543)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModul e(LoginContext.java:540)
at javax.security.auth.login.LoginContext.login(Login Context.java:450)
at com.ibm.ws.security.server.util.AuthenticationCach e.login(AuthenticationCache.java:308)
at com.ibm.ws.security.server.util.AuthenticationCach e.update(AuthenticationCache.java:240)
at com.ibm.ws.security.util.Cache.get(Cache.java:167)
at com.ibm.ws.security.server.util.AuthenticationCach e.getCredential(AuthenticationCache.java:89)
at com.ibm.ws.security.server.SecurityServerImpl.auth enticateBasicAuthData(SecurityServerImpl.java:455)
at com.ibm.ws.security.server.SecurityServerImpl.simp le_authenticate(SecurityServerImpl.java:120)
at com.ibm.ws.security.server._SecurityServer_Stub.si mple_authenticate(_SecurityServer_Stub.java:142)
at com.ibm.WebSphereSecurityImpl.SecurityServerImpl.s imple_authenticate(SecurityServerImpl.java:162)
at com.ibm.ISecurityUtilityImpl.CommonSecurityServer. authenticate(CommonSecurityServer.java:199)
at com.ibm.ISecurityUtilityImpl.CommonSecurityServer. authenticate(CommonSecurityServer.java:125)
at com.ibm.ISecurityLocalObjectBaseL13Impl.LoginHelpe rImpl.request_login_controlled(LoginHelperImpl.jav a:1257)
at com.ibm.ISecurityLocalObjectBaseL13Impl.LoginHelpe rImpl.request_login_controlled(LoginHelperImpl.jav a:874)
at com.ibm.ISecurityLocalObjectBaseL13Impl.VaultImpl$ 2.run(VaultImpl.java:2068)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ISecurityLocalObjectBaseL13Impl.VaultImpl. get_default_credentials(VaultImpl.java:2064)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CurrentImp l.get_credentials(CurrentImpl.java:443)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CurrentImp l.get_credentials(CurrentImpl.java:328)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CurrentImp l.get_credentials(CurrentImpl.java:314)
at com.ibm.ws.security.core.SecurityContext.enable(Se curityContext.java:236)
at com.ibm.ws.security.core.SecurityContext.enable(Se curityContext.java:222)
at com.ibm.ws.security.core.SecurityComponentImpl.ini tialize(SecurityComponentImpl.java:398)
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:347)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)

[4/6/04 15:54:10:875 GMT+05:30] 64bcea8a SASRas E JSAS0454E: [VaultImpl.get_default_credentials] Could not create local credentials. Check the security configuration for com.ibm.CORBA.PrincipalName, com.ibm.CORBA.LoginUserid, and com.ibm.CORBA.LoginPassword properties to ensure they are valid. For the com.ibm.CORBA.PrincipalName, ensure the correct realm is specified in front of the userid (realm/userid). org.omg.SecurityLevel2.LoginFailed
at com.ibm.ISecurityLocalObjectBaseL13Impl.LoginHelpe rImpl.request_login_controlled(LoginHelperImpl.jav a:1291)
at com.ibm.ISecurityLocalObjectBaseL13Impl.LoginHelpe rImpl.request_login_controlled(LoginHelperImpl.jav a:874)
at com.ibm.ISecurityLocalObjectBaseL13Impl.VaultImpl$ 2.run(VaultImpl.java:2068)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.ISecurityLocalObjectBaseL13Impl.VaultImpl. get_default_credentials(VaultImpl.java:2064)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CurrentImp l.get_credentials(CurrentImpl.java:443)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CurrentImp l.get_credentials(CurrentImpl.java:328)
at com.ibm.ISecurityLocalObjectBaseL13Impl.CurrentImp l.get_credentials(CurrentImpl.java:314)
at com.ibm.ws.security.core.SecurityContext.enable(Se curityContext.java:236)
at com.ibm.ws.security.core.SecurityContext.enable(Se curityContext.java:222)
at com.ibm.ws.security.core.SecurityComponentImpl.ini tialize(SecurityComponentImpl.java:398)
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:347)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)

[4/6/04 15:54:10:891 GMT+05:30] 64bcea8a Authenticatio E SECJ4001E: Login failed for TEST001/ javax.security.auth.login.LoginException: e.getMessage()
at com.ibm.ws.security.server.lm.swamLoginModule.logi n(swamLoginModule.java:237)
at com.ibm.ws.security.common.auth.module.proxy.WSLog inModuleProxy.login(WSLoginModuleProxy.java:119)
at java.lang.reflect.Method.invoke(Native Method)
at javax.security.auth.login.LoginContext.invoke(Logi nContext.java:607)
at javax.security.auth.login.LoginContext.access$000( LoginContext.java:124)
at javax.security.auth.login.LoginContext$3.run(Login Context.java:543)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModul e(LoginContext.java:540)
at javax.security.auth.login.LoginContext.login(Login Context.java:450)
at com.ibm.ws.security.server.util.AuthenticationCach e.login(AuthenticationCache.java:308)
at com.ibm.ws.security.server.util.AuthenticationCach e.update(AuthenticationCache.java:240)
at com.ibm.ws.security.util.Cache.get(Cache.java:167)
at com.ibm.ws.security.server.util.AuthenticationCach e.getCredential(AuthenticationCache.java:89)
at com.ibm.ws.security.server.SecurityServerImpl.auth enticateBasicAuthData(SecurityServerImpl.java:455)
at com.ibm.ws.security.server.SecurityServerImpl.auth enticate(SecurityServerImpl.java:161)
at com.ibm.ws.security.server._SecurityServer_Stub.au thenticate(_SecurityServer_Stub.java:83)
at com.ibm.WebSphereSecurityImpl.SecurityServerImpl.a uthenticateBasicAuthData(SecurityServerImpl.java:2 13)
at com.ibm.ISecurityUtilityImpl.CommonSecurityServer. authenticate(CommonSecurityServer.java:210)
at com.ibm.ISecurityUtilityImpl.CommonSecurityServer. authenticate(CommonSecurityServer.java:119)
at com.ibm.ISecurityLocalObjectLocalOSImpl.PrincipalA uthenticatorImpl.authenticate(PrincipalAuthenticat orImpl.java:388)
at com.ibm.ISecurityLocalObjectBaseL13Impl.Credential sImpl.get_mapped_credentials(CredentialsImpl.java: 1291)
at com.ibm.ISecurityLocalObjectBasicAuthImpl.Credenti alsImpl.get_mapped_credentials(CredentialsImpl.jav a:205)
at com.ibm.ISecurityLocalObjectBaseL13Impl.VaultImpl. setServerCred(VaultImpl.java:4072)
at com.ibm.ISecurityLocalObjectBaseL13Impl.PrincipalA uthenticatorImpl.setServerCred(PrincipalAuthentica torImpl.java:1118)
at com.ibm.ISecurityLocalObjectLocalOSImpl.PrincipalA uthenticatorImpl.authenticate(PrincipalAuthenticat orImpl.java:314)
at com.ibm.ISecurityLocalObjectBaseL13Impl.Credential sImpl.get_mapped_credentials(CredentialsImpl.java: 1291)
at com.ibm.ISecurityLocalObjectBasicAuthImpl.Credenti alsImpl.get_mapped_credentials(CredentialsImpl.jav a:205)
at com.ibm.ws.security.core.SecurityCollaborator.getA ctualCredential(SecurityCollaborator.java:870)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.security.core.SecurityContext.getActual Creds(SecurityContext.java:132)
at com.ibm.ws.security.core.SecurityComponentImpl.ini tialize(SecurityComponentImpl.java:404)
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:347)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)

[4/6/04 15:54:10:906 GMT+05:30] 64bcea8a SASRas E JSAS0130E: [VaultImpl.addEstablishedCredentials] Client credentials were not valid. Restart the client so that it logs in with new credentials. Once client credentials are marked invalid, they must be thrown away and news ones created. {1}
[4/6/04 15:54:10:922 GMT+05:30] 64bcea8a SASRas E JSAS0240E: [CredentialsImpl.get_mapped_credentials] Login failed. Verify the userid/password is correct. Check the properties file to ensure the login source is valid. If this error occurs on the server, check the server properties to ensure the principalName has a valid realm and userid. {1}
[4/6/04 15:54:10:953 GMT+05:30] 64bcea8a SASRas E JSAS0130E: [VaultImpl.addEstablishedCredentials] Client credentials were not valid. Restart the client so that it logs in with new credentials. Once client credentials are marked invalid, they must be thrown away and news ones created. {1}
[4/6/04 15:54:10:953 GMT+05:30] 64bcea8a SASRas E JSAS0240E: [CredentialsImpl.get_mapped_credentials] Login failed. Verify the userid/password is correct. Check the properties file to ensure the login source is valid. If this error occurs on the server, check the server properties to ensure the principalName has a valid realm and userid. {1}
[4/6/04 15:54:10:969 GMT+05:30] 64bcea8a SecurityConte E SECJ0131E: Authentication failed. Unable to get the mapped credential for SecOwnCredentials.
[4/6/04 15:54:10:984 GMT+05:30] 64bcea8a SecurityCompo E SECJ0208E: An unexpected exception occurred when attempting to authenticate the server's id during security initialization. The exception is java.lang.Exception: Authentication Failed
at com.ibm.ws.security.core.SecurityContext.getActual Creds(SecurityContext.java:144)
at com.ibm.ws.security.core.SecurityComponentImpl.ini tialize(SecurityComponentImpl.java:404)
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:347)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)
..
[4/6/04 15:54:11:000 GMT+05:30] 64bcea8a SecurityCompo E SECJ0007E: Error during security initialization. The exception is java.lang.Exception: Authentication Failed
at com.ibm.ws.security.core.SecurityContext.getActual Creds(SecurityContext.java:144)
at com.ibm.ws.security.core.SecurityComponentImpl.ini tialize(SecurityComponentImpl.java:404)
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:347)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)
..
[4/6/04 15:54:11:016 GMT+05:30] 64bcea8a SecurityCompo E SECJ0007E: Error during security initialization. The exception is java.lang.Exception: Authentication Failed
at com.ibm.ws.security.core.SecurityContext.getActual Creds(SecurityContext.java:144)
at com.ibm.ws.security.core.SecurityComponentImpl.ini tialize(SecurityComponentImpl.java:404)
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:347)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)
..
[4/6/04 15:54:11:031 GMT+05:30] 64bcea8a SecurityCompo A SECJ0244I: Security service failed to start successfully
[4/6/04 15:54:16:141 GMT+05:30] 64bcea8a ObjectPoolSer I OBPL0011I: The Object Pool service is stopping.
[4/6/04 15:54:16:172 GMT+05:30] 64bcea8a ContainerImpl E WSVR0102E: An error occurred stopping, [class com.ibm.ws.management.component.JMXConnectors]
java.lang.NullPointerException
at com.ibm.ws.management.component.JMXConnectors.stop (JMXConnectors.java:226)
at com.ibm.ws.runtime.component.ContainerImpl.stopCom ponents(ContainerImpl.java:367)
at com.ibm.ws.management.component.AdminImpl.stop(Adm inImpl.java:415)
at com.ibm.ws.runtime.component.ContainerImpl.stopCom ponents(ContainerImpl.java:367)
at com.ibm.ws.runtime.component.ContainerImpl.stop(Co ntainerImpl.java:238)
at com.ibm.ws.runtime.component.ServerImpl.stop(Serve rImpl.java:204)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 9)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)

[4/6/04 15:54:16:266 GMT+05:30] 64bcea8a WsServer E WSVR0003E: Server server1 failed to start
java.lang.RuntimeException: Authentication Failed
at com.ibm.ws.security.core.SecurityComponentImpl.sta rt(SecurityComponentImpl.java:361)
at com.ibm.ws.runtime.component.ContainerImpl.startCo mponents(ContainerImpl.java:343)
at com.ibm.ws.runtime.component.ContainerImpl.start(C ontainerImpl.java:234)
at com.ibm.ws.runtime.component.ServerImpl.start(Serv erImpl.java:182)
at com.ibm.ws.runtime.WsServer.start(WsServer.java:13 5)
at com.ibm.ws.runtime.WsServer.main(WsServer.java:232 )
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.ja va:94)

[4/6/04 15:54:16:266 GMT+05:30] 64bcea8a WsServer E WSVR0009E: Error occurred during startup