Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Getting java.lang.NoClassDefFoundError: com/liferay/portal/model/User L
I have migrated my portlet code from Liferay 6.2 to Liferay7.1 using upgrade tool provided by Liferay studio. I even tried creating a new portlet and copied code from migrated one but after deployment its giving error as follows:-javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/model/UserI didn't found this class import or use anywhere in my code and even in source code of LR7.1, but still why it is showing this problem?Please suggest some solution.Thanks in advance.
User class should be in the package com.liferay.portal.kernel.model in 7.1, could you try this?