Results 1 to 3 of 3

Thread: Mapping parser needs internet connection, how to switch off?

  1. #1

    Default Mapping parser needs internet connection, how to switch off?

    Hi all,

    I´m using spring 1.2 and Hibernate 3. When I start my app and the sessionfactory will be created, the Mapping-Files will be parsed and validated. The parser connect to the Internet for checking DTD´s.
    I don´t want that behavior. Also the DTD´s are in classpath in package "org.hibernate". So why it (parser) don´t look there before connecting the net.
    Is there a "switch" to change this. Maybe a property to set.

    Thanks,
    Jörg

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    The parser connect to the Internet for checking DTD´s.
    It shouldn't. The DTDs should be in the JAR. Check you have the correct version in you mapping. E.g:
    Code:
    http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd

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

    Default

    See the HB FAQ, especially 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. Replies: 4
    Last Post: Oct 5th, 2005, 11:04 AM
  2. Initialization of Connection Provider fails
    By DEVRocker in forum Data
    Replies: 2
    Last Post: Aug 9th, 2005, 10:14 AM
  3. Replies: 2
    Last Post: Jun 16th, 2005, 02:38 AM
  4. Replies: 13
    Last Post: Dec 7th, 2004, 10:00 AM
  5. Replies: 2
    Last Post: Sep 5th, 2004, 10:49 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
  •