org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class

Goodmorning,
I’m try to connect to my server tomcat to make a logIn page from an APP android.
When I send a REST request, the server console shows this error:

org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [it.bpmsoft.model.operatore.slot.Prestazione]

I tryed to adding the hibernate.cfg.xml file in this way:

mapping class=“it.bpmsoft.model.operatore.slot.Prestazione” />

but I don’t resolve the problem. What can I do?

Bye

org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class

This is not a Hibernate problem. The Prestazione is not available at runtime.Try to locate it in the WAR archive.

Do you mean the class doesn’t exist in the java code of the web application?

Can you find the class in the web application folder in Tomcat?

yes. it is in:

D:\workspace\icare\src\it\bpmsoft\model\operatore\Slot.java

That’s a Java source file not a class file.