This week's book giveaway is in the Programmer Certification forum.
We're giving away four copies of OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
  • 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • 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.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic