Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

AEM 5.6.1 dependencies

Avatar

Level 1
Facing below error in our custom code while doing a AEM upgrade from CQ 5.4

Line of Code:

HibernateSessionFactory hibernateSessionFactory = HibernateSessionFactory.getHibernatesessionFactoryInstance();

SessionFactory sessionFactory = hibernateSessionFactory.createSessionFactory(key, classLoader, mappingClasses);

Error:

05.02.2014 17:18:17.788 *ERROR* [FelixStartLevel] org.hibernate.util.NamingHelper Could not obtain initial context javax.naming.NoInitialContextException: Cannot instantiate class: com.day.util.jndi.provider.MemoryInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.day.util.jndi.provider.MemoryInitialContextFactory not found by com.day.crx.sling.server [65]]

Appreciate your hints or suggestions to fix this..

0 Replies