Deploying the Module in Production Folder?
I am an Eclipse user attempting to write my first Hibernate code using IntelliJ. I downloaded the hibernate libraries through the IDE and configured my data source and generated the the AnnotationClasses and HibernateUtil file using IntelliJ. However, I get the following error thrown from my HibernateUtil class when trying to initialize the session:
Initial SessionFactory creation failed. java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager
When viewing the project in the "Scope: Production" view I don't see any of the libraries I am attempting to use to run this code. My guess is that I need to get IntelliJ to reference the libraries when attempting to run the code from the Production perspective. What do I need to do to get the referenced libraries into this perspective?
Please sign in to leave a comment.
Hello mcwagner,
"Scope: Production" is actually not related to deployment in any way. It
simply shows the production (i.e. not test) sources of your project. It never
shows any libraries.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"