Message Boards

Liferay 7.3 - org.hibernate.MappingException: entity class not found

Bryan Schuknecht, modified 3 Years ago.

Liferay 7.3 - org.hibernate.MappingException: entity class not found

New Member Post: 1 Join Date: 3/30/21 Recent Posts

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

 

thumbnail
Olaf Kock, modified 3 Years ago.

RE: Liferay 7.3 - org.hibernate.MappingException: entity class not found

Liferay Legend Posts: 6403 Join Date: 9/23/08 Recent Posts

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?

Muhammad Saleh, modified 2 Years ago.

RE: Liferay 7.3 - org.hibernate.MappingException: entity class not found

New Member Posts: 2 Join Date: 6/15/21 Recent Posts

I am facing the same issue did you resolve it ?