Referenced file contains errors (
http://hibernate.sourceforge.net/hibern ... ng-3.0.dtd). For more
information, right click on the message and select "Show Details..."
I have got the above error yesterday and i have read all over the internet finally i have heard that JBoss server down. If this is the case after some time JBoss's Server (Site) is up and running and if i hit this URL "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" i am able to download the dtd.
Second thing i have tried was downloaded the DTD and copied it in the same directory of all the hbm.xml file presents. and then i have modified the hbm.xml files to something like the following:
1. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "hibernate-mapping-3.0.dtd">
2. <!DOCTYPE hibernate-mapping SYSTEM "<PATH>/hibernate-mapping-3.0.dtd">
1st Option couldn't find the path properly
2nd Option is working fine but we cannot change all the hbm files to point out the directory which we stored.
Then i have actually tried to create a sample project with the same configuration (hbm, Spring etc..) i doesnt show up the error message in the hbm file.
Sample HBM:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="db.Test" table="test" catalog="test">
<id name="id" type="java.lang.Integer">
<meta attribute="use-in-equals">true</meta>
<column name="id" />
<generator class="identity" />
</id>
<property name="name" type="string">
<column name="name" length="45" not-null="true" />
</property>
<property name="createdDate" type="timestamp">
<column name="createdDate" length="19" not-null="true" />
</property>
<property name="isTrue" type="boolean">
<column name="isTrue" not-null="true" />
</property>
<property name="testId" type="string">
<column name="testId" length="45" not-null="true" />
</property>
</class>
</hibernate-mapping>
Don't know what to do. Can anyone help me out this problem?