Server startup fails with SECJ0238E & JSAS0240E error messages
 Technote (troubleshooting)
 
Problem(Abstract)
For this instance after re-booting the machine customer was not able to start any Application Server running on the node and the following exceptions were being thrown into SystemOut.log file:

[5/1/06 10:25:13:748 EDT] 4e3b113a UserRegistryI A SECJ0136I: Custom Registry:com.ibm.ws.security.registry.ldap.LdapRegistryImpl has been initialized
[5/1/06 10:25:14:226 EDT] 4e3b113a LTPAServerObj E SECJ0238E: An unexpected exception occurred when trying to create the initial LTPAServerObject. The exception is java.lang.NullPointerException
at com.ibm.ws.security.ltpa.LTPAPrivateKey.decode(LTPAPrivateKey.java:57)
at com.ibm.ws.security.ltpa.LTPAPrivateKey.<init>(LTPAPrivateKey.java:47)
[5/1/06 10:25:20:703 EDT] 4e3b113a WsServer E WSVR0003E: Server WebSphere_Portal failed to start
com.ibm.ws.exception.RuntimeError
at com.ibm.ws.security.core.ServerSecurityComponentImpl.start(ServerSecurityComponentImpl.java:204)
at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
Caused by: com.ibm.websphere.security.WSSecurityException
at com.ibm.ws.security.auth.ContextManagerImpl.getServerSubject(ContextManagerImpl.java:1784)
at com.ibm.ws.security.auth.ContextManagerImpl.initialize(ContextManagerImpl.java:271)
... 18 more
Caused by: com.ibm.websphere.security.auth.WSLoginFailedException
at com.ibm.ws.security.server.lm.ltpaLoginModule.login(ltpaLoginModule.java:425)
 
Cause
LTPAToken keys are corrupted.
 
Resolving the problem
If global security is already enabled and the server is not starting, then refer to Changing security settings in IBM® WebSphere® Application Server with wsadmin for more information on disabling global security using the wsadmin.sh/bat command line tool
  1. Log into the administrative console > Security > Authentication Mechanisms > LTPA.
  2. Generate a new set of keys by clicking on "Generate Keys" button.
  3. Save and synchronize changes.
  4. Re-enable global security from the console and re-start the servers.
  5. Now you should be able to start the server and log into console successfully.
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Security
Operating system(s): Windows
Software version: 6.1
Software edition:
Reference #: 1239373
IBM Group: Software Group
Modified date: Jul 15, 2007