It's all about the answers!

Ask a question

Custom servlet application not working after migrating to Liberty from Websphere


Karthikeyan P (216) | asked Feb 24 '22, 9:42 a.m.
 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.

Comments
Ralph Schoon commented Feb 24 '22, 10:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Liberty Profile can be started as service on Windows. 


or 
https://www.ibm.com/support/pages/running-liberty-profile-server-microsoft-windows-service

I have seen other ways of doing this. Please google for "Liberty profile as windows service" if this answer does not help. Under Linux there are small scripts to do this. 

One answer



permanent link
Jim Amsden (29347) | answered Feb 24 '22, 9:47 a.m.

 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. 


Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.