Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Error in validation.xml, validator-rules.xml, hibernate.cfg.xml file etc

 
Ranch Hand
Posts: 42
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have the following errors in my sample struts web application. The application works fine without any errors. only thing is that, it shows errors in the files i mentioned below:

1)
error:
The errors below were detected when validating the file "validator_1_1_3.dtd" via the file "validation.xml". In most cases these errors can be detected by validating "validator_1_1_3.dtd" directly. However it is possible that errors will only occur when validator_1_1_3.dtd is validated in the context of validation.xml.

It shows this error in the very first line in validation.xml file:
<?xml version="1.0" encoding="ISO-8859-1" ?>


2) and I have this error in validator-rules.xml file
error:
The errors below were detected when validating the file "validator_1_1_3.dtd" via the file "validator-rules.xml". In most cases these errors can be detected by validating "validator_1_1_3.dtd" directly. However it is possible that errors will only occur when validator_1_1_3.dtd is validated in the context of validator-rules.xml.

It shows this error in the very first line in validator-rules.xml file:

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">


3) Similarly, i have an error in this first line of hibernate.cfg.xml:
<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

error:
The errors below were detected when validating the file "hibernate-configuration-3.0.dtd" via the file "hibernate.cfg.xml". In most cases these errors can be detected by validating "hibernate-configuration-3.0.dtd" directly. However it is possible that errors will only occur when hibernate-configuration-3.0.dtd is validated in the context of hibernate.cfg.xml.


4) and have an error in this first line of my empdata.hbm.xml:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

error:
The errors below were detected when validating the file "hibernate-mapping-3.0.dtd" via the file "empdata.hbm.xml". In most cases these errors can be detected by validating "hibernate-mapping-3.0.dtd" directly. However it is possible that errors will only occur when hibernate-mapping-3.0.dtd is validated in the context of empdata.hbm.xml

Please let me know what is causing these errors.


Thanks.
reply
    Bookmark Topic Watch Topic
  • New Topic