-->
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.  [ 4 posts ] 
Author Message
 Post subject: Connection refused :connect message is coming
PostPosted: Tue Nov 06, 2007 11:57 pm 
Newbie

Joined: Tue Nov 06, 2007 7:49 am
Posts: 2
Dear All,
Please help me out in this regard,
I am using hibernate 3.2 to connect to oracle 10g db.I am able to connect frm a standalone java application to database by seeting the property to configuration object programatically,

Configuration cfg=new Configuration().setProperty("hibernate.dialect", "org.hibernate.dialect.OracleDialect") .addClass(Test.class); [/b ]like this.I am adding to all the jar of lib folder ,hibernate3.jar as well as ojdbc14.jar to classpath.

but when I am trying to do it for a portal application using a hibernate.cfg.xml I am getting a xml validation error [b]Connection refused: connect
and if am disabling xml valiation and trying to create the conf . object in my java program,same error message is coming.I have tried with all the jar of lib,required shown in tutorial of hibernate,but still in vain,DTD modification is also not working.
Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 12:33 pm 
Beginner
Beginner

Joined: Tue Jun 26, 2007 2:31 pm
Posts: 21
Try adding all the required hibernate jars in your WEB-INF lib folder, i guess this will solve your problems,

regards,
sai


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 09, 2007 5:05 am 
Newbie

Joined: Tue Nov 06, 2007 7:49 am
Posts: 2
Hi,Actually i have tried all combintion of jar files that is all the jars from lib of hibernate lib folder+hibernate3.jar+odbc14.jar,whatever in readme.text of lib folder of hibernate3.jar+hibernate3_ojdbc14.jar,whatever in my eclipse plug in in class path fhibernate but still nothing working,the error message is coming during building in xml filed and after removing xml validation we are getting NoClassDefError for confuguration which is being created using Configuration cfg=new Cofiguration() or using Configuration cfg=new Cofiguration().configure().
Please help me in this regard


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 09, 2007 4:12 pm 
Beginner
Beginner

Joined: Tue Jun 26, 2007 2:31 pm
Posts: 21
hey you didnt tell me whether u tried placing the hibernare jar files in the

WEB-INF/lib folder then this works definitely try it


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

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.