RE: getting the exception while deploying the service Module

Ganesh Puli, modified 5 Years ago. New Member Posts: 19 Join Date: 2/27/18 Recent Posts
 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,
thumbnail
Christoph Rabel, modified 5 Years ago. Liferay Legend Posts: 1555 Join Date: 9/24/09 Recent Posts
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.
Ganesh Puli, modified 5 Years ago. New Member Posts: 19 Join Date: 2/27/18 Recent Posts
Hi Christoph Rabel, thanks for your replyI rebuild the module and tried , even though am facing the same issue
thumbnail
Olaf Kock, modified 5 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Ganesh Puli:

Hi Christoph Rabel, thanks for your replyI rebuild the module and tried , even though am facing the same issue
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.
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...