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.
|