-->
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.  [ 3 posts ] 
Author Message
 Post subject: problem parsing configuration/hibernate.cfg.xml
PostPosted: Thu Nov 11, 2004 4:21 pm 
Newbie

Joined: Thu Nov 11, 2004 3:29 pm
Posts: 2
Hello,

I'm using WSAD 5.1 with struts. I got the error message -- "problem parsing configuration/hibernate.cfg.xml".

Initially, I write

<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">

as the prolog. Then, I got File not found: "http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd". Now, I cut-and-pasted the dtd with the same file name and saved with hibernate.cfg.xml. So comes the parsing problem.

What jar file does that job? I doubt if I set up the right classpath. Any idea? Thanks.

Song


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 11, 2004 4:46 pm 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
The DTD is in the hibernat2.jar. Hibernate comes with an entity resolver looking up the DTD in the jar.

HTH
Ernst


Top
 Profile  
 
 Post subject: DTD not found solved. Another problem comes
PostPosted: Tue Nov 16, 2004 9:18 am 
Newbie

Joined: Thu Nov 11, 2004 3:29 pm
Posts: 2
Thank you Ernst! Finally, I figured out why. This is a configuration problem. I'm using WSAD. Right click on the WEB project > Properties > Validation, we have to take out the XML Validator option.

The error is "Could not find datasource". Again, I believe this is another configuration problem, too. The exception jump from

sessionFactory = config.buildSessionFactory();

Appreciate your help!
Song


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.