Results 1 to 3 of 3

Thread: Avoid needing a live Internet connection for DTDs

  1. #1
    Join Date
    Jun 2005
    Posts
    1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    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

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    Most of the types it's the XML parser - see this FAQ from Hibernate:
    http://www.hibernate.org/116.html#A35
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Similar Threads

  1. Connection closed after transaction commit
    By alirussi in forum Data
    Replies: 4
    Last Post: Dec 17th, 2011, 06:41 AM
  2. Replies: 2
    Last Post: May 27th, 2005, 06:31 AM
  3. Replies: 6
    Last Post: May 25th, 2005, 01:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •