# Need Help to figure out the correct dependencies to use Second Level Cachi

**URL:** <https://discourse.hibernate.org/t/need-help-to-figure-out-the-correct-dependencies-to-use-second-level-cachi/10840>\
**Category:** Hibernate ORM\
**Created:** [December 29, 2024, 2:55pm UTC](https://discourse.hibernate.org/t/need-help-to-figure-out-the-correct-dependencies-to-use-second-level-cachi/10840 "2024-12-29T14:55:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulsen](https://avatars.discourse-cdn.com/v4/letter/r/c4cdca/32.png) [@rahulsen](https://discourse.hibernate.org/u/rahulsen)\
**Post date:** [December 29, 2024, 2:55pm UTC](https://discourse.hibernate.org/t/need-help-to-figure-out-the-correct-dependencies-to-use-second-level-cachi/10840/1 "2024-12-29T14:55:57Z")

</div>

Hey I’m trying to learn Hibernate and I’m have been stuck because I can’t figure out what dependencies are correct and because of this I’m getting error.  
Please Help me out!! i’ll be really grateful!

**I added these given dependencies but then I encountered this error**

SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”.

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See [SLF4J Error Codes](http://www.slf4j.org/codes.html#StaticLoggerBinder) for further details.

Exception in thread “main” java.lang.NoSuchFieldError: INSTANCE

I added slf4j dependecy into the pom.xml file

now the error has changed to this

SLF4J: No SLF4J providers were found.

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See [SLF4J Error Codes](https://www.slf4j.org/codes.html#noProviders) for further details.

Exception in thread “main” java.lang.NoSuchFieldError: INSTANCE

```auto
<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-jcache -->
<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-jcache</artifactId>
  <version>6.6.2.Final</version>
  <type>pom</type>
</dependency>

<!-- Ehcache 3 -->
<!-- https://mvnrepository.com/artifact/org.ehcache/ehcache -->
<dependency>
  <groupId>org.hibernate</groupId>
  <artifactId>hibernate-ehcache</artifactId>
  <version>5.6.14.Final</version>
</dependency>

```

Thank you!!

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [December 30, 2024, 12:55pm UTC](https://discourse.hibernate.org/t/need-help-to-figure-out-the-correct-dependencies-to-use-second-level-cachi/10840/2 "2024-12-30T12:55:02Z")

</div>

Please read our [getting started guide](https://docs.jboss.org/hibernate/orm/6.6/quickstart/html_single/) or [Hello Hibernate guide](https://docs.jboss.org/hibernate/orm/6.6/introduction/html_single/Hibernate_Introduction.html#hello-hibernate) to understand the dependencies that you need.
