Post your build.xml source.

It looks like <fileset> under <ejbdoclet> is not finding any EJBs, hence the
SAX parse exception when validating the ejb-jar.xml file that was generated.
Verify that that you have a nested <fileset> which finds the appropriate
EJBs.

Michael

> -----Original Message-----
> From: Bruce Scharlau [mailto:scharlau@;csd.abdn.ac.uk]
> 
> Hi,
> 
> I too am having problems getting xdoclet-1.2.-beta1 to 
> produce code outside 
> of the code in the included samples. Those I hacked around to 
> get them to 
> all compile and deploy on jboss 3. But now I want to try this 
> out with a 
> much simpler example, and tried adapting a few of those 
> files, and nothing.
> 
> All I get is this:
> 
>     [copy] Copying 10 files to 
> H:\public_html\teaching\firstAntApp2\build\src
> 
> ejbdoclet:
> [ejbdoclet] Running <remoteinterface/>
> [ejbdoclet] Running <localinterface/>
> [ejbdoclet] Running <homeinterface/>
> [ejbdoclet] Running <localhomeinterface/>
> [ejbdoclet] Running <dataobject/>
> [ejbdoclet] Running <valueobject/>
> [ejbdoclet] Running <entitypk/>
> [ejbdoclet] Running <entitycmp/>
> [ejbdoclet] Running <session/>
> [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(AbstractSAXP
> arser.java:1183)
> 
> ...
> 
> My simple UserBean.java has this at the top of the file:
> 
> /**
>   * This is the user bean. It is an example of how to use the 
> XDoclet tags.
>   *
>   * @ejb.bean
>   *    cmp-version="2.x"
>   *    jndi-name="ejb/User"
>   *    primkey-field="user_id"
>   *    name="User"
>   *    type="CMP"
>   *    use-soft-locking="true"
>   *
>   * @jboss.table-name="user"
>   * @jboss.create-table="false"
>   * @jboss.remove-table="false"
>   * @jboss.tuned-updates="true"
>   * @jboss.read-only="true"
>   *
>   * @ejb.persistence
>   *    table-name="user"
>   *
>   * @ejb.value-object
>   * name="User"
>   * match="*"
>   *
>   *
>   * @ejb.finder
>   * signature="java.util.Collection findAll()"
>   * unchecked="true"
>   *
>   * @ejb.interface
>   *     remote-class="uk.ac.abdn.csd.mtp.ant.interfaces.User"
>   *     generate="Remote"
>   *
>   */
> 
> Plus similar method tags to hopefully generate the interfaces.
> 
> I tried replicating the directories in the sample with my 
> simple example, 
> and then swap that build file for my own one, but again, 
> nothing was generated.
> 
> Any clues greatly appreciated.


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to