Announcement Announcement Module
Collapse
No announcement yet.
Avoid needing a live Internet connection for DTDs Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Avoid needing a live Internet connection for DTDs

    I've been using the Spring Framework in the equinox context and in there is a validation.xml file loaded by the org.springframework.validation.commons.DefaultVali datorFactory that is giving me problems. By default loading it seems to initiate a lookup for the DTD on the internet (see the header part below).

    Does anyone know if it is possible to wire-in an EntityResolver?
    Or is the only way to do it programatically?
    And if so, does anyone have a hint?


    Thanks in advance,

    Johan


    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    <!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">
    -->
    <!DOCTYPE form-validation PUBLIC
    "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
    "build/test/tomcat5x/webapps/equinox/WEB-INF/classes/dtds/validator_1_1_3.dtd">
    [/code]

  • #2
    it seems to initiate a lookup for the DTD on the internet
    It shouldn't. The DTDs should be loaded from commons-validator.jar.

    Try uncommenting the http://jakarta.apache.org/commons/dt...ator_1_1_3.dtd doctype declaration.

    If it's still occurring, you can try copying Xerces JAR to the "jre\lib\ext" directory of your JDK installation

    Comment


    • #3
      Most of the types it's the XML parser - see this FAQ from Hibernate:
      http://www.hibernate.org/116.html#A35

      Comment

      Working...
      X