Spring MVC portlet migration issue

Deepak Poyilil, modified 6 Years ago. New Member Posts: 23 Join Date: 12/24/10 Recent Posts
Hi everyone, we are migrating application from Liferay 6.2 to 7.1 version. We have a mix of Liferay MVC and Spring MVC portlet and also some java module with common utilities. While migrating spring mvc porlet from 6.2 to 7.1 version as a war file the following dependency related issues are facing. Our sprig mvc portlet have dependency with java module which is deployed as an OSGI bundle. In the portlet build.gradle, when we give module dependency as compileOnly, deploying portlet result in class not found exception since spring context unable to locate the class in the dependent module. when we give module dependency as compile, class not found exception not occurring but class cast exception coming since 2 version of the dependent module are available in the OSGI container, ie one in the portlet WEB-INF/lib folder and other one which is deployed in OSGI as a module. your input is much appreciated.
thumbnail
Alberto Chaparro, modified 6 Years ago. Liferay Master Posts: 560 Join Date: 4/25/11 Recent Posts