In my module, I configured a Datasource and a hibernate facet linked to that datasource.
In the hibernate.cfq.xml, the datasource is referred to as java:/comp/env/jdbc/XXX
When I use the HQL console, it complains that it cannot locate the datasource:
[FATAL] Could not find datasource: java:comp/env/jdbc/XXX
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
what am I doing wrong?
Should IntelliJ provide a jndi context ?