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/xdoclet-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-mapping*,ejb-ref-mapping*,resource-ref-mapping*)".
[ejbdoclet]     at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.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

Reply via email to