How should I setup my Eclipse (3.7) and Hibernate Tool such that it can work with offline DTD files?
I have the following line in hibernate.cfg.xml
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
I have the key "-//Hibernate/Hibernate Configuration DTD 3.0//EN" in my XML Catalog pointing to a local hibernate-configuration-3.0.dtd in a jar file (as in the image below)
However, every time when I am offline, Eclipse raise the warning when I use Hiberate Configuration View to view my project
"Could not parse configuration: C:\...\resources\hibernate.cfg.xml
org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org
www.hibernate.org Nested exception: www.hibernate.org"
I can revise the <!DOCTYPE> line to point to local DTD, but can I use the XML Catalog such that the correct local DTD is located when needed?
Thank you very much.
Retrieving data ...