Identity Governance test connection to Identity Manager fails due to NoSuchMethodError after upgrading to 14.3 on Websphere
book
Article ID: 186913
calendar_today
Updated On:
Products
CA Identity ManagerCA Identity GovernanceCA Identity Suite
Issue/Introduction
When upgrading from IM 14.1 to 14.3 on Websphere, there is a failure when testing the connection between IG and IM, caused by a NoSuchMethodError. The log shows an error such as:
000001d3 ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0271E: Uncaught init() exception created by servlet [IAM FW Web Service] in application [iam_im]: java.lang.NoSuchMethodError: javax/ws/rs/core/Application.getProperties()Ljava/util/Map; (loaded from file:/opt/IBM/WebSphere/AppServer/profiles/Profile01/installedApps/server01/iam_im.ear/user_console.war/WEB-INF/lib/jsr311-api-1.1.1.jar by com.ibm.ws.classloader.CompoundClassLoader@b2fae85d[war:iam_im/user_console.war]
Environment
Release : 14.3
Component : IdentityMinder(Identity Manager)
Cause
The Javax WS RS API version used by Identity Manager has changed in 14.3, so the old .jar file jsr311-api-1.1.1.jar should have been replaced by the new version javax.ws.rs-api.jar. On Websphere this file was not removed by the upgrade process. As it was also referenced first in the local classpath, it was loaded and as it does not contain the javax.ws.rs.core.Application.getProperties() method, the NoSuchMethodError occurred.
Resolution
Remove jsr311-api-1.1.1.jar from the iam_im.ear/user_console.war/WEB-INF/lib folder, or rename it so that it no longer has a .jar extension.