Custom servlet application not working after migrating to Liberty from Websphere
![]()
We have developed a custom application based on OSLC 2.0 for integrating RTC and a third-party application. We have been using it for quite a while. IBM has recommended us to migrate our application servers from Websphere to Liberty so that we can plan our CLM 6.0.6.1 to ELM 7.x upgrade.
As per that, we have migrated our QA CLM applications to liberty. Though we faced some issues due to not having liberty as a service, we saw the migration was successful. But our custom application has stopped working in the QA environment. Whenever we redeploy the application or restart the server, we are getting the below error
java.lang.NoSuchMethodError: org/apache/wink/common/internal/utils/GenericsUtils.getClassType(Ljava/lang/reflect/Type;Ljava/lang/Class;)Ljava/lang/Class; (loaded from file:/C:/IBM/JazzTeamServer_Liberty/server/liberty/wlp/dev/api/third-party/com.ibm.websphere.appserver.thirdparty.jaxrs_1.0.59.jar by org.eclipse.osgi.internal.loader.EquinoxClassLoader@445f88d1[com.ibm.ws.jaxrs:1.0.59.cl211220211117-1256(id=143)]) called from class org.apache.wink.common.internal.registry.metadata.ProviderMetadataCollector (loaded from file:/C:/IBM/JazzTeamServer_Liberty/server/liberty/servers/clm/apps/oslc4j-services.war/WEB-INF/lib/wink-common-1.4.jar by com.ibm.ws.classloading.internal.AppClassLoader@cbd408e7).
When we deploy the same war application in a websphere server, the application is working without any issues. We are using Websphere 8.5.5.14 in our production and Liberty 21.0.0.12 in our QA environments. Kindly share if there any leads in fixing the issue or workarounds.
Thanks in advance.
|
One answer
![]() Apache Wink was retired in 2017/04/25. Later versions of eclipse/Lyo Java Client have removed dependencies on Wink, replacing them with JAX-RS. It is possible that the version of WebSphere you are using supports Wink while the version of Liberty doesn't. |
Comments
Liberty Profile can be started as service on Windows.