JAWS was JBoss' EJB 1.1 CMP implementation in JBoss 2.x. JBossCMP in 
JBoss 3.0 is rather different and the descriptors have changed 
considerably. XDoclet probably shouldn't generate a finder in 
jbosscmp-jdbc.xml (I believe the thing there is that since EJB 2.0 
defines EJBQL as part of the standard descriptor there's less need for a 
<finder> element in jbosscmp-jdbc.xml. I don't know the 3.0 
implementation very well, though)

Perhaps XDoclet should generate either jaws.xml or jbosscmp-jdbc.xml?

danch

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
> 




_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to