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 the exception while deploying the service Module
Error during instantiation of the implementation object
java.lang.NoClassDefFoundError: com/liferay/portal/kernel/exception/PortalException
and the service module classes are not available to other normal modules at runtime, and not able to instantiate and initialize the service module classes while using in other modules,please help me out, am not getting the exact issue, is there any issue there in my setup , please suggest me in resolving the above issueThanks & Regards,
java.lang.NoClassDefFoundError: com/liferay/portal/kernel/exception/PortalException
and the service module classes are not available to other normal modules at runtime, and not able to instantiate and initialize the service module classes while using in other modules,please help me out, am not getting the exact issue, is there any issue there in my setup , please suggest me in resolving the above issueThanks & Regards,
Attachments:
I am just wild guessing here:
Did you upgrade or something? Could you try to rebuild the service? I would also check my build.gradle, maybe the versions in there are wrong.
Did you upgrade or something? Could you try to rebuild the service? I would also check my build.gradle, maybe the versions in there are wrong.
Hi Christoph Rabel, thanks for your replyI rebuild the module and tried , even though am facing the same issue
Ganesh Puli:
Most likely you're targeting another version during build, and the required version of the classes isn't available at runtime. If you post more about your build infrastructure, or better, provide a minimal reproducible code example, it will be easier to help, because the classes in question are definitely there, your plugin might just ask for the wrong version.
Hi Christoph Rabel, thanks for your replyI rebuild the module and tried , even though am facing the same issue
Speaking of version: Please add as much information as possible, e.g. what is the version you're building for, the version you're running, the build environment (liferay workspace?) and its configuration...
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™