> [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Person] > jar:njar:file:/usr/local/lib/jboss-3.0.0_tomcat-4.0.3/server/default/tmp > /deploy/server/default/deploy/airline.ear/79.airline.ear^/airline-ejb.ja > r!/META-INF/jbosscmp-jdbc.xml found. Overriding defaults > 2002-08-30 20:02:02,659 ERROR [org.jboss.metadata.XmlFileLoader] File > njar:file:/usr/local/lib/jboss-3.0.0_tomcat-4.0.3/server/default/tmp/dep > loy/server/default/deploy/airline.ear/79.airline.ear^/airline-ejb.jar!/M > ETA-INF/jbosscmp-jdbc.xml process error. Line: 104. Error message: > org.xml.sax.SAXParseException: Element "ejb-relation" does not allow > "ejb-relationship-role" here. > at org.apache.crimson.parser.Parser2.error(Parser2.java:3086) > at > org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(Val > idatingParser.java:349) > at
Obviously XDoclet generates a jbosscmp-jdbc.xml which is not compliant with the DTD in your JBoss. Here is the copy of a mail Matthew Newcomb (XDoclet committer) replied to on Aug. 29th on [EMAIL PROTECTED]: ------------------------%<--------------------------- > -----Original Message----- > From: Beau Cronin [mailto:[EMAIL PROTECTED]] > > I compiled XDoclet from CVS yesterday. When I deploy to > jboss with the > jbosscmp-jdbc.xml generated by the new version of XDoclet, the JBoss > deployer barfs as follows: > > 15:47:49,274 ERROR [XmlFileLoader] File > file:/u/framenet/jboss-3.0.0_tomcat-4.0.3 > /server/default/tmp/deploy/server/default/deploy/farina.jar/98 > .farina.jar!/META-I > NF/jbosscmp-jdbc.xml process error. Line: 994. Error message: > org.xml.sax.SAXParseException: Element "ejb-relation" does not allow > "ejb-relatio > nship-role" here. > at org.apache.crimson.parser.Parser2.error(Parser2.java:3086) > at > org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(V > ... > > ..and this repeats for each relationship-role element. > > As far as I can tell, XDoclet is not inserting a required tag > (foreign-key-mapping | relation-table-mapping) as specified in the > jbosscmp-jdbc dtd. I've updated the jbosscmp-jdbc_3_0.dtd (HEAD, Branch_3_0, and Branch_3_2) to reflect that <foreign-key-mapping> and <relation-table-mapping> are optional now. I believe you just need to get the latest version of JBoss 3.0.x, 3.2.x, or 4.x to get this update. If you do not want to update JBoss, you can edit the jbosscmp-jdbc_3_0.dtd inside your JBoss distribution. Old: <!ELEMENT ejb-relation (ejb-relation-name, read-only?, read-time-out?, (foreign-key-mapping | relation-table-mapping), (ejb-relationship-role, ejb-relationship-role)?)> New: <!ELEMENT ejb-relation (ejb-relation-name, read-only?, read-time-out?, (foreign-key-mapping | relation-table-mapping)?, (ejb-relationship-role, ejb-relationship-role)?)> If you do not wish to update JBoss or update your DTD, you must add the tag @jboss.relation-mapping style="foreign-key" to your code (so it will generate a <foreign-key-mapping/> element and be in compliance with the DTD). Michael ------------------------%<--------------------------- The message is not in the archives yet, but you'll find it there soon: http://sourceforge.net/mailarchive/forum.php?forum_id=1106&max_rows=25&style =ultimate&viewmonth=200208 Do as Michael says and rebuild XDoclet from CVS HEAD. Then replace the xdoclet jars in middlegen (they're a week old) with those of your build. Also take a look at bullet number 7 here: http://boss.bekk.no/boss/middlegen/nude.html If you manage to get the airline sample up and running on JBoss, please keep us posted! Cheers, Aslak ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user
