Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » XML Catalog how
XML Catalog how [message #857110] Thu, 26 April 2012 08:54 Go to next message
John Ng is currently offline John Ng
Messages: 1
Registered: April 2012
Junior Member
HI all,

how can I verify if my Eclipse IDE's XML catalog is working properly?

I am using hibernate with the following line in the hibernate.cfg.xml file.

<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http: // www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">


there is an entry with key
"-//Hibernate/Hibernate Configuration DTD 3.0//EN" 

in the XML Catalog pointing to a local version of the dtd file
"jar: file: /C:/Program Files/eclipse/plugins/org.hibernate.eclipse.libs_3.4.0.v20120307-2104-H60-Beta1/lib/hibernate/hibernate3.jar!/org/hibernate/hibernate-configuration-3.0.dtd"


the project can only be run when I am connected to the internet; there is error message (below) when working offline.
Could not parse configuration: C:\...\resources\hibernate.cfg.xml
org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org


is this symptom correct? should XML Catalog provide the dtd file when there is no internet connection?

Thank you very much.
Re: XML Catalog how [message #857422 is a reply to message #857110] Thu, 26 April 2012 14:17 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2275
Registered: July 2009
Senior Member
The simplest thing to test the XML Catalog itself would be to try another URI that's in the catalog already. Otherwise it could just as easily be the org.hibernate.eclipse.libs plug-in that's the problem.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:Problem with WAR File Export (lastmodified)
Next Topic:Deploying a webservice to Tomcat Xampp
Goto Forum:
  


Current Time: Mon Sep 22 12:33:50 GMT 2014

Powered by FUDForum. Page generated in 0.01813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software