Women in Technology

Hear us Roar

  XML Data Binding with Castor
Subject:   Problem with castor.exolab.org/mapping.dtd
Date:   2004-03-25 09:38:41
From:   kmullin
I'm using the downloaded files from the article on XML Binding using Castor. But, when I execute the ViewAddressbook Java program, I get:

org.exolab.castor.mapping.MappingException: Nested error: java.net.UnknownHostException: Castor.exolab.org

I see a reference to this in my mapping file (which I downloaded). When I try to view this with my browser, using the URL


I get errors in my Internet Explorer, V6, that says:

Cannot have a DTD declaration outside of a DTD. Error processing resource 'http://castor.exolab.org/mapping.dtd'. Line 22, Position 11

So, the problem I am having is on your end (I think.)

Full Threads Newest First

Showing messages 1 through 4 of 4.

  • Problem with castor.exolab.org/mapping.dtd
    2004-06-01 23:43:28  Pashmina [View]

    I am facing the same problem.
    Did u get the solution to the problem. If so, pls let me know
    • Problem with castor.exolab.org/mapping.dtd
      2006-01-18 09:15:12  rlaplante [View]

      you should avoid linking to an external DTD file.

      I think your problems occurs because you either don't have access thru you network to the Castor site or that the Castor site is just unavailable. (like today Jan 18 2006 at noon)
  • Problem with castor.exolab.org/mapping.dtd
    2006-03-24 15:48:47  MobileX [View]

    I have imported the castor jar files. It build without any problems. When I ran the code I get
    "org.exolab.castor.mapping.MappingException: Nested error: java.net.UnknownHostException: Castor.exolab.org"

    Please help!!! thanking you in advance.
    • Problem with castor.exolab.org/mapping.dtd
      2006-10-12 09:01:54  hsgujral@hotmail.com [View]

      The site URL has changed...

      Change your DTD reference from:
      <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "http://castor.exolab.org/mapping.dtd">


      <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "http://castor.org/mapping.dtd">

      Harpal Gujral