ClassNotFoundException: SessionFactory when using Hibernate Entity and Dao in Plugin

Confluence User - 30 Jun, 2023

Hi, 
I'm trying to saving data in custom table as described in Using Hibernate Entity and Dao in Plugin
When getting current session line (session = sf.getCurrentSession)  is invoking than i'm getting java.lang.NoClassDefFoundError: org/hibernate/SessionFactory
Caused by: java.lang.ClassNotFoundException: org.hibernate.SessionFactory not found by <plugin name>


The same situation when im using sample plugin from the article

Any ideas why ? Some breaking changes in core ?

Any other ideas how to get/create hibernate session ?

plugins

1


05 Jul, 2023
confluenceUser
confluenceUser

Hi there,

The sample plugin was outdated and was meant for an older version of the platform. The article Using Hibernate Entity and Dao in Plugin has been updated with a new example.

Thanks!

Best Regards
Julian


RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print