Classloader Conflict After Installing Kronova eScheduler Application
 Technote (troubleshooting)
 
Problem(Abstract)
When installing the Kronova eScheduler application on IBM® WebSphere® Application Server V5 (all releases), Kronova leaves the Kronova jaas.jar file in the /lib directory. This causes a classloader conflict with Kronova JAAS login classes.
 
Cause
Kronova eScheduler software contains a script that runs during the install process and configures the application.
  • With version 4.0 of WebSphere Application Server, the Kronova script copies the Kronova jaas.jar file from $WAS_HOME/lib to $WAS_HOME/lib/ext.
  • However, in version 5.0, the $WAS_HOME/lib/ext directory does not exist by default. As a result, the Kronova script renames the Kronova jaas.jar file to ext.
  • The IBM version of JAAS, ibmjaas.jar, is also located in the $WAS_HOME/lib directory.
  • Having both of these files in the same directory causes a classloader problem when starting WebSphere Application Server V5 (all releases).

Example:

java.lang.SecurityException: unable to instantiate LoginConfiguration
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
at com.freedomgroup.global.security.service.TFGGlobalSecurity
ServiceBean.login(TFGGlobalSecurityServiceBean.java:86)
at com.freedomgroup.global.security.service.EJSRemoteStateless
TFGGlobalSecurityService_eb4c745a.login(EJSRemoteStateless
TFGGlobalSecurityService_eb4c745a.java:54)
at com.freedomgroup.global.security.service._TFGGlobalSecurity
Service_Stub.login (_TFGGlobalSecurityService_Stub.java:273)
at java.lang.reflect.Method.invoke(Native Method)
at com.freedomgroup.common.request.TFGRequest.processRequest

(TFGRequest.java:217)at Caused by: billapptest1@Thread[Servlet.Engine.Transports :
3,5,main]@20031210:10:29:13.422
billapptest1@Thread[Servlet.Engine.Transports :
3,5,main]@20031210:10:29:13.422
com.freedomgroup.common.exception.TFGGlobalSecurityException: A
FailedLoginException was thrown by the authentication service.:
unable to initiate LoginConfiguration
--------- Wraps Exception:

java.lang.SecurityException: unable to instantiate loginConfiguration
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
at com.freedomgroup.global.security.service.TFGGlobalSecurityService
Bean.login (TFGGlobalSecurityServiceBean.java:86)
at com.freedomgroup.global.security.service.EJSRemoteStateless
TFGGlobalSecurityService_eb4c745a.login(EJSRemoteStateless
TFGGlobalSecurityService_eb4c745a.java:54)
at com.freedomgroup.global.security.service._TFGGlobalSecurity
Service_Stub.login (_TFGGlobalSecurityService_Stub.java:273)
at java.lang.reflect.Method.invoke(Native Method)
at com.freedomgroup.common.request.TFGRequest.processRequest
(TFGRequest.java:217)at Caused by: java.lang.SecurityException:
unable to insatiate LoginConfiguration

Note: The important part of the exception is the line "unable to instantiate LoginConfiguration". This line is generated due to the fact that there are conflicting JAAS .jar files.
 
Resolving the problem
The solution is to remove the .ext file (formally the WebSphere jaas.jar). After doing that, your JAAS login should work.
 
 
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: 5.1
Software edition:
Reference #: 1175739
IBM Group: Software Group
Modified date: Sep 26, 2007