-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate 3.3.1 & JBoss 5.1.0 - new Configuration() issue
PostPosted: Thu Aug 13, 2009 3:04 am 
Newbie

Joined: Thu Aug 13, 2009 2:51 am
Posts: 3
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....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.