XML Data Binding with Castor
Subject:   Problem with
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:

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 ''. Line 22, Position 11

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

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Problem with
    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:"

    Please help!!! thanking you in advance.
    • Problem with
      2006-10-12 09:01:54 [View]

      The site URL has changed...

      Change your DTD reference from:
      <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version 1.0//EN" "">


      <!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN" "">

      Harpal Gujral
  • Problem with
    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
      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)