File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes ORM Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "ORM" Watch "ORM" New topic
Author

ORM

Bakwaas Bakwaas
Greenhorn

Joined: Aug 17, 2006
Posts: 1
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

Joined: Apr 14, 2004
Posts: 10336

"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!


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
nirumagic tniranjan
Greenhorn

Joined: Aug 17, 2006
Posts: 4
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

Joined: Apr 14, 2004
Posts: 10336

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.
 
IntelliJ Java IDE
 
subject: ORM
 
Threads others viewed
"Operation timed out: connect" error
Error in validation.xml, validator-rules.xml, hibernate.cfg.xml file etc
Urgent help deploying hibernate app
Hibernate Problem
Hibernate cfg xml and Eclipse problem
developer file tools