Hi, 
   I am now to xdoclet. I am trying to create the ejb-jar.xml file from a 
sample appication, but i am getting following error. Please can any one help me 
regarding the same, its urgent. 
   
  [ejbdoclet] (XDocletMain.start                   47  ) Running <utilobject/>
[ejbdoclet] (XDocletMain.start                   47  ) Running 
<deploymentdescriptor/>
[ejbdoclet] Generating EJB deployment descriptor (ejb-jar.xml).
[ejbdoclet] (XDocletMain.start                   53  ) Running XDoclet failed.
[ejbdoclet] (XDocletMain.start                   54  ) <<Generated file 
[file:/opt/xdoclet-1.2.3/samples/target/meta-inf/ejb-jar.xml:line 33] 
Message=[The content of element type "enterprise-beans" is incomplete, it must 
match "(session|entity|message-driven)+".] is not valid according to its DTD or 
XML Schema. This might be due to some missing tags in your source.>>
[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.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
[ejbdoclet]     at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown 
Source)
[ejbdoclet]     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
[ejbdoclet]     at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
[ejbdoclet]     at 
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
[ejbdoclet]     at 
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
[ejbdoclet]     at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
[ejbdoclet]     at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
  **************
   
   
   <target name="ejbdoclet" depends="prepare">
          <ejbdoclet
            destdir="${samples.gen-src.dir}"
            mergedir="parent-fake-to-debug"
            excludedtags="@version,@author,@todo"
            addedtags="@xdoclet-generated at ${TODAY},@copyright The XDoclet 
Team,@author XDoclet,@version ${versi
on}"
            ejbspec="2.0"
            force="${samples.xdoclet.force}"
            verbose="false"
            >
              <fileset dir="${samples.java.dir}">
                <include name="test/ejb/*EJB.java"/>
            </fileset>
              <packageSubstitution packages="ejb" substituteWith="interfaces"/>
              <remoteinterface/>
            <localinterface/>
            <homeinterface/>
            <localhomeinterface/>
              <dataobject/>
            <valueobject/>
 <entitypk/>
              <entitycmp/>
            <entitybmp/>
              <session/>
              <dao>
                <packageSubstitution packages="ejb" substituteWith="dao"/>
            </dao>
              <utilobject cacheHomes="true" includeGUID="true"/>
              <deploymentdescriptor
                destdir="${samples.meta-inf.dir}"
                validatexml="true"
                mergedir="fake-to-debug"
                description="bæbæ"
                >
                <configParam name="clientjar" value="blah.jar"/>
            </deploymentdescriptor>
 <jboss
                version="4.0"
                unauthenticatedPrincipal="nobody"
                xmlencoding="UTF-8"
                destdir="${samples.meta-inf.dir}"
                validatexml="true"
                preferredrelationmapping="relation-table"
                mergedir="${samples.merge.dir}"
                />
</ejbdoclet>
   
  ***************
   
  and the *EJB.java file content is ,
   
  /**
 *
 * @ejb.bean
 *   name = "Group"
 *   type="CMP"
 *   view-type="local"
 *   schema = "GroupEJB"
 *   cmp-version="2.x"
 *   jndi-name="ejb/local/group"
 *   local-jndi-name="ejb/local/grouplocal"
 * @ejb.transaction
 *   type="Required"
 * @ejb.persistence
 *   table-name="groups"
 * @jboss.persistence
 *      create-table="true"
 *      remove-table="false"
 * @ejb.pk
 *   class = "com.bea.sample.entities.GroupCPK"
 * @ejb:resource-ref
 *   res-name="jdbc/sample"
 *   res-type="javax.sql.DataSource"
 *   res-auth="Container"
 * @jboss.resource-ref
 *   res-ref-name="jdbc/sample"
 *   jndi-name="java:/sample"
 * @jboss.relation-table
 * table-name="rel"
 * create-table="true"
 *
 *
 */
public abstract class SampleEJB implements EntityBean {
  ***************
  }
   
  thanks in advance.
  Ambika

                                
---------------------------------
 Here’s a new way to find what you're looking for - Yahoo! Answers 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to