• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ORM

 
Bakwaas Bakwaas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I am new to "Hibernate" world and I am having problem in *.hbm.xml and hibernate.cfg.xml parsing. I am using WSAD 5.1.1, Hibernate 2.1 and Oracle 10g. Here is how the "hibernate.cfg.xml" looks like:

==========
1. <?xml version='1.0' encoding='utf-8'?>
2. <!DOCTYPE hibernate-configuration PUBLIC
3. "-//Hibernate/Hibernate Configuration DTD 2.0//EN"
4. "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
5. <hibernate-configuration>
6. <session-factory>
....
....and so on

WSAD is shoing me error on line (4.) saying:
=======================
Description:
"Operation timed out: connect"
Resource:
hibernate.cfg.xml
In Folder:
(folder path)
=======================
When I look at the URL (on line 4), I am able to see the DTD file.

I'd highly appreciate if someone could please let me know what I am doingwrong and how to fix this error. I am getting this same error in all of my HBM files also.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Bakwaas Bakwaas"

Welcome to JavaRanch!

Could you please change your display name so it complies with our Naming Policy. You can do this here.

Thanks!
 
nirumagic tniranjan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, there no DTD version support for Oracle 10 version i think. we have to use DTD 3.0 version with hibernate 3.x support.


Error nothing but due to versioning problem only.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by nirumagic tniranjan:
Hi, there no DTD version support for Oracle 10 version i think. we have to use DTD 3.0 version with hibernate 3.x support.


Error nothing but due to versioning problem only.


You don't need to update the version of the DTD (or Hibernate) to use Oracle 10. Hibernate 2.1 will work happily enough with Oracle 10. There is a probable answer to "Bakwaas Bakwaas" issue, but not one I'll post till he/she addresses the problem of their display name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic