Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes

Comments

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

 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. 


0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935
× 515
× 60
× 25

Question asked: Feb 24 '22, 9:42 a.m.

Question was seen: 1,883 times

Last updated: Feb 24 '22, 10:36 a.m.

Confirmation Cancel Confirm