Re: Error: unnamed <domain>

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Aug 04 2006 - 15:25:59 EDT

  • Next message: Peter Karich: "Re: cayenne INSERTs NULL values instead of strings - SOLVED"

    Hmm.. unless there is another cayenne.xml copy anywhere in classpath,
    this may have something to do with XML namespace handling in the WTP
    environment. I vaguely recall similar issues reported some time ago,
    and I don't remember what the solution was (switching to default JDK
    XML parser??). If you find something (maybe run it in debugger,
    putting a breakpoint in Cayenne ConfigLoader), please share.

    Andrus

    On Aug 4, 2006, at 3:17 PM, Borut Bolčina wrote:

    > Here it is:
    > <?xml version="1.0" encoding="utf-8"?>
    > <domains project-version="1.1">
    > <domain name="NoviforumDomain">
    > <map name="AnniversaryMap" location="AnniversaryMap.map.xml" />
    >
    > <node name="NoviforumDomainNode"
    > datasource="NoviforumDomainNode.driver.xml"
    >
    > factory="org.objectstyle.cayenne.conf.DriverDataSourceFactory">
    > <map-ref name="AnniversaryMap" />
    > </node>
    > </domain>
    > </domains>
    >
    > 2006/8/4, Andrus Adamchik <andru..bjectstyle.org>:
    >>
    >>
    >> On Aug 4, 2006, at 2:35 PM, Borut Bolčina wrote:
    >>
    >> > ERROR [04 avg 2006 20:14:44:859] Exception starting filter
    >> > CayenneFilter
    >> > org.objectstyle.cayenne.ConfigurationException: [v.1.2 July 18
    >> > 2006] Error
    >> > during Configuration initialization. [v.1.2 July 18 2006] Domain
    >> > 'name'
    >> > attribute must be not null.
    >>
    >> So how does cayenne.xml look like? Is there a name attribute for the
    >> domain:
    >>
    >> <domain name="XYZ">
    >> ...
    >>
    >> Andrus
    >>
    >>



    This archive was generated by hypermail 2.0.0 : Fri Aug 04 2006 - 15:26:22 EDT