Re: Error: unnamed <domain>

From: Borut Bolčina (borut.bolcin..mail.com)
Date: Tue Aug 08 2006 - 16:14:44 EDT

  • Next message: Borut Bolčina: "Web application with no access to database"

    I cleaned up WEB-INF/lib directory and selectively copied there (manually,
    not by maven plugin) only some of the previously installed jars. Cayenne
    initializes ok now, but I do not know the name of the offending jar in the
    classpath.

    2006/8/4, Andrus Adamchik <andrus@objectstyle.org>:
    >
    > 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 <andrus@objectstyle.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 : Tue Aug 08 2006 - 16:15:10 EDT