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: Liferay 7.3 - org.hibernate.MappingException: entity class not found
Hello,
I'm pretty new to Liferay development. I'm working on migrating a project from 7.0 to 7.3.
The plugin I'm working on has the -api / -service / -portlet structure that I've seen in the tutorials.
When I try to deploy the service JAR to my server, I'm getting the following error:
2021-03-30 20:24:19.548 INFO [com.liferay.portal.kernel.deploy.auto.AutoDeployScanner][AutoDeployDir:271] Processing com.mycompany.service.jar
2021-03-30 20:24:28.272 ERROR [fileinstall-directory-watcher][LiferayServiceExtender:86] org.hibernate.MappingException: entity class not found:
com.mycompany.plugin.model.impl.MyClassImpl
org.hibernate.MappingException: entity class not found: com.mycompany.plugin.model.impl.MyClassImpl
at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:125)
...
Caused by: java.lang.ClassNotFoundException: com.mycompany.plugin.model.impl.MyClassImpl
I looked in com.mycompany.service.jar, and verified that the missing class is present. I'm not sure why it's not getting picked up by the server during deployment.
Google searching isn't shredding much light on this, so I thought I'd try this forum.
Any help would be greatly appreciated.
Bryan
Did you deploy the API jar as well?
Did you run ServiceBuilder
after running the upgrade wizard or after you upgraded your code?
Are you deploying the correct version of your service.jar?
I am facing the same issue did you resolve it ?