Hello !

even if there is no src file responding to the regex given in the
<fileset dir> for the taskdef ejbdoclet, xdoclet however tries to
generate the descriptors (I did not check for the generated classes). it
looks like the fileset defined in the ejbdoclet task is not conditional
for the <deploymentdescriptor> tag.

in my case, I have the following fileset

<include name="${thissrc.dir}/*EJB.java" />
<include name="${thissrc.dir}/*MDB.java" />

and get the following exception becoz I don't have EJBs in my directory:

[ejbdoclet] Running <deploymentdescriptor/>
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] org.xml.sax.SAXParseException: The content of element type
"enterprise-beans" is incomplete, it must match
"(session|entity|message-driven)+".
[ejbdoclet]  at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[ejbdoclet]  at
xdoclet.util.XmlValidator.doValidate(XmlValidator.java:220)
[ejbdoclet]  at
xdoclet.util.XmlValidator.validate(XmlValidator.java:189)
[ejbdoclet]  at xdoclet.XmlSubTask.engineFinished(XmlSubTask.java:240)
[ejbdoclet]  at
xdoclet.TemplateSubTask.startEngine(TemplateSubTask.java:561)
[ejbdoclet]  at
xdoclet.TemplateSubTask.startProcessForAll(TemplateSubTask.java:614)
[ejbdoclet]  at
xdoclet.TemplateSubTask.startProcess(TemplateSubTask.java:595)
[ejbdoclet]  at xdoclet.XmlSubTask.startProcess(XmlSubTask.java:196)
[ejbdoclet]  at
xdoclet.modules.ejb.dd.EjbDotXmlSubTask.execute(EjbDotXmlSubTask.java:194)

[ejbdoclet]  at xdoclet.XDocletMain.start(XDocletMain.java:46)
[ejbdoclet]  at xdoclet.DocletTask.start(DocletTask.java:458)
[ejbdoclet]  at xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:68)

let me know if u need me to enter a jarta change request.

note that it would be usefull for anybody who does not work with CVS, to
integrate with any other conf mgt system (in my case ClearCase): all
build.xml files are generated as private files, and so based on a
template. it is always better than to have to enter all build.xml in mgt
sys.

thanx.

seb.



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to