Announcement Announcement Module
Collapse
No announcement yet.
Mapping parser needs internet connection, how to switch off? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      See the HB FAQ, especially http://www.hibernate.org/116.html#A35

      Comment

      Working...
      X