Hi,
I'm new to setting up a new hibernate application.... though I've worked on modifying and adding code in existing/already configured applications...
I tried to deploy and run a basic jsp application with hibernate code, but I haven't managed to get past the SessionFactory creation. In my jsp, i have code in a scriptlet with creates a new Configuration and then using the hibernate.cfg.xml builds a session factory...
Code:
org.hibernate.Session hSession = null;
org.hibernate.cfg.Configuration conf = new org.hibernate.cfg.Configuration();
conf.configure();
I deploy this code in a testapp.war in JBoss along with the hibernate3 jar and the other jars from the required folder in the hibernate distribution.
I've setup Eclipse to run and debug application from JBoss. When execute this jsp on my JBoss server in debug mode, the moment i reach the new org.hibernate.cfg.Configuration() line, it just get stuck there... I cannot debug or run further... no errors are throw... but the page just seems to be loading forever with nothing happening...
Any idea what is wrong here... this seems to be happening even before it picks up my hibernate.cfg.xml since the conf.configure() does that.... and yeah, it's kinda urgent....