As I recall there are problems with jboss cmp2 of jbosscmp_jdbc.xml support in xdoclet 1.1.1 and you should use xdoclet from cvs or wait a couple of days for 1.1.2. I think cmp2 ejb-jar.xml support is ok with 1.1.1
In any case, for ejb2.0 don't use jaws.xml, use jbosscmp_jdbc.xml. xdoclet generates both and jboss should be picking up the right one. david jencks On 2002.02.28 12:10:49 -0500 Alex Loubyansky wrote: > Salute, lists! > > Using XDoclet-1.1.1 and experimenting with JAWS for EJB2.0 I've got > some > problems: > 1. Declaring @jboss:finder I get: > [jaws-ejbdoclet] Running <jboss/> > [jaws-ejbdoclet] Generating jboss.xml. > [jaws-ejbdoclet] Generating jaws.xml. > [jaws-ejbdoclet] Generating jbosscmp-jdbc.xml. > [jaws-ejbdoclet] Running XDoclet failed: > [jaws-ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, > method start has thrown an exception > java.lang.reflect.InvocationTargetException > [jaws-ejbdoclet] <<Generated file > [file:D:/JBoss_work/rh-examples/jaws/build/ejb/META-INF/jbosscmp-jdbc.xml:li > ne 69] Message=[Element "entity" does not allow "finder" here.] is not > valid > according to its DTD. This might be due to some missing @tags in your > source.>> > > Indeed, I really can't find finder clause for entity element in > jbosscmp-jdbc_3_0.dtd. > > 2. Declaring @jboss:create-table create="true" (or @jboss:remove-table > remove="true") I get: > [jaws-ejbdoclet] Running <jboss/> > [jaws-ejbdoclet] Generating jboss.xml. > [jaws-ejbdoclet] Generating jaws.xml. > [jaws-ejbdoclet] Generating jbosscmp-jdbc.xml. > [jaws-ejbdoclet] Running XDoclet failed: > [jaws-ejbdoclet] javadoc: In doclet class xdoclet.DocletTask$DocletMain, > method start has thrown an exception > java.lang.reflect.InvocationTargetException > [jaws-ejbdoclet] <<Generated file > [file:D:/JBoss_work/rh-examples/jaws/build/ejb/META-INF/jbosscmp-jdbc.xml:li > ne 15] Message=[Element "entity" does not allow "create-table" here.] is > not > valid according to its DTD. This might be due to some missing @tags in > your > source.>> > > The excerpt from jboss-jdbc_3_0.dtd: > <!ELEMENT entity (ejb-name, datasource?, type-mapping?, create-table?, > remove-table?, read-only?, time-out?, row-locking?, > pk-constraint?, read-ahead?, table-name?, cmp-field*, > eager-load?, lazy-load-groups*, query*)> > > What's the problem? > > Thanks in advance! > > alex > > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user