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

**URL:** <https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587>\
**Category:** Hibernate ORM\
**Created:** [April 20, 2018, 9:27am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587 "2018-04-20T09:27:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pasquale](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pasquale](https://discourse.hibernate.org/u/pasquale)\
**Post date:** [April 20, 2018, 9:27am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587/1 "2018-04-20T09:27:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [April 20, 2018, 9:46am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587/2 "2018-04-20T09:46:19Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![pasquale](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pasquale](https://discourse.hibernate.org/u/pasquale)\
**Post date:** [April 20, 2018, 9:50am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587/3 "2018-04-20T09:50:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [April 20, 2018, 9:55am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587/4 "2018-04-20T09:55:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pasquale](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@pasquale](https://discourse.hibernate.org/u/pasquale)\
**Post date:** [April 20, 2018, 10:35am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587/5 "2018-04-20T10:35:19Z")

</div>

yes. it is in:

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

---

<div class="post-metadata">

**Author:** ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)\
**Post date:** [April 20, 2018, 10:47am UTC](https://discourse.hibernate.org/t/org-hibernate-boot-registry-classloading-spi-classloadingexception-unable-to-load-class/587/6 "2018-04-20T10:47:17Z")

</div>

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