Foren
java.lang.NoClassDefFoundError: com/liferay/util/EncryptorException
mahesh gade, geändert vor 6 Jahren.
java.lang.NoClassDefFoundError: com/liferay/util/EncryptorException
Junior Member Beiträge: 44 Beitrittsdatum: 05.12.13 Neueste Beiträge
Hi,
I have developed OSGI module and deployed successfully.but when i try to add in page its giving "
[http-nio-8080-exec-8][status_jsp:903] com.liferay.portal.kernel.portlet.PortletContainerException: com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/util/EncryptorException"
and i have added "compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.0" in build.gradle also .
and tried with "compile group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.0" in build.gradle
what might be the issue with it.anyone have idea about this.
Thanks .
I have developed OSGI module and deployed successfully.but when i try to add in page its giving "
[http-nio-8080-exec-8][status_jsp:903] com.liferay.portal.kernel.portlet.PortletContainerException: com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/util/EncryptorException"
and i have added "compileOnly group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.0" in build.gradle also .
and tried with "compile group: "com.liferay.portal", name: "com.liferay.util.java", version: "2.0.0" in build.gradle
what might be the issue with it.anyone have idea about this.
Thanks .
Ketan Solanki, geändert vor 6 Jahren.
RE: java.lang.NoClassDefFoundError: com/liferay/util/EncryptorException
Junior Member Beiträge: 63 Beitrittsdatum: 28.05.14 Neueste Beiträge
You need to find the exported package name for this file
e.g. com.liferay.util (may be) and then add this in bnd.bnd file as
Import-Package: com.liferay.util
Usually all these liferay related jar files are already available in runtime but they are not available directly to the project unless that is imported in the bnd.bnd file! If above doesn't work then try with few other package name styles like com.liferay in import package and you may get it worked.
e.g. com.liferay.util (may be) and then add this in bnd.bnd file as
Import-Package: com.liferay.util
Usually all these liferay related jar files are already available in runtime but they are not available directly to the project unless that is imported in the bnd.bnd file! If above doesn't work then try with few other package name styles like com.liferay in import package and you may get it worked.
mahesh gade, geändert vor 6 Jahren.
RE: java.lang.NoClassDefFoundError: com/liferay/util/EncryptorException
Junior Member Beiträge: 44 Beitrittsdatum: 05.12.13 Neueste Beiträge
I tried with below things.
in bnd.bnd
1. Import-Package: com.liferay.util not worked
2. Import-Package: com.liferay not worked
and i have checked MANIFEST.MF file and found com.liferay.util under Private-Package.
Private-Package: !com.liferay.util not worked
in bnd.bnd
1. Import-Package: com.liferay.util not worked
2. Import-Package: com.liferay not worked
and i have checked MANIFEST.MF file and found com.liferay.util under Private-Package.
Private-Package: !com.liferay.util not worked