orion-ejb-jar.dtd says that the cmp-field-mapping element must have a persistence-type attribute. Your XML doesn't... Why? By looking at the orion-cmp-mapping.xdt template, you'll see that this attribute is written to the xml if you have @orion:persistence sql-type="blabla", otherwise not. Did you put this into the middlegen template?
Aslak > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Marian > Flor > Sent: 9. juli 2002 16:36 > To: xdoclet-user > Subject: [Xdoclet-user] orion-ejb-jar.xml validation fails > > > Hi folks, > > i am currently working on the extension of middlegen for orion. > > This is the error message from middlegen (cvs-snap 2002-jul-05 with > xdoclet MAIN branch from the same date) whenever I try to validate the > xml-File (<orion>-Task, validateXml="true") > > [ejbdoclet] Generating output 'orion-ejb-jar.xml' using template file > 'jar:file:/home/mflor/devel/middlegen-2002-07-05/samples/lib/xdocl > et-orion-module.jar!/xdoclet/modules/orion/ejb/resources/orion.xdt'. > [ejbdoclet] org.xml.sax.SAXParseException: The content of element type > "entity-deployment" must match > "(primkey-mapping?,cmp-field-mapping*,finder-method*,env-entry-map > ping*,ejb-ref-mapping*,resource-ref-mapping*)". > [ejbdoclet] at > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParse > r.java:1162) > > Here is the orion-ejb-jar.xml (part of): > > <?xml version="1.0"?> > <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans > 1.1 runtime//EN" "http://www.orionserver.com/dtds/orion-ejb-jar.dtd"> > > <orion-ejb-jar deployment-version="1.5.2"> > > <enterprise-beans> > > <!-- Session Beans --> > > <!-- Entity Beans --> > <entity-deployment name="Flight" > data-source="airline.database" > location="Flight" > table="FLIGHTS" > > > > <primkey-mapping> > <cmp-field-mapping > name="flightId" > persistence-name="FLIGHT_ID" > > > </cmp-field-mapping> > > </primkey-mapping> > > <cmp-field-mapping > name="name" > persistence-name="NAME" > > > </cmp-field-mapping> > [...] some more cmp-field-mappings and finder-methods > </entity-deployment> > </enterprise-beans> > </orion-ejb-jar> > > Any clues for this behaviour? > > Thanks, > Marian > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Stuff, things, and much much more. > http://thinkgeek.com/sf > _______________________________________________ > Xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
