Hi,
I am new to xdoclet, i dont have clear idea of how does it work. There is
nothing in create ejb-jar.xml, it just contains.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_
0.dtd">
<ejb-jar >
<description><![CDATA[bæbæ]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
</enterprise-beans>
<assembly-descriptor >
</assembly-descriptor>
<ejb-client-jar>blah.jar</ejb-client-jar>
</ejb-jar>
thanks and Regards,
Ambika
Konstantin Priblouda <[EMAIL PROTECTED]> wrote:
Look into gonerated file. What is there?
Check whether you have J2EE classes on invocation
class path - if they are not there
xdoclet ( xjavadoc ) would not recognize
your sources as EJBs
Please note that XD1 is pretty old and
not under active development.
There is xdoclet-2.
( http://xdoclet.codehaus.org )
--- Ambika Awanty wrote:
> 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
> [ejbdoclet] (XDocletMain.start 47
> ) Running
> [ejbdoclet] Generating EJB deployment descriptor
> (ejb-jar.xml).
> [ejbdoclet] (XDocletMain.start 53
> ) Running XDoclet failed.
> [ejbdoclet] (XDocletMain.start 54
> ) <>
[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)
> **************
>
>
>
> > 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"
> >
>
>
>
>
> substituteWith="interfaces"/>
>
>
>
>
>
>
>
>
>
>
>
>
> substituteWith="dao"/>
>
> > includeGUID="true"/>
> > destdir="${samples.meta-inf.dir}"
> validatexml="true"
> mergedir="fake-to-debug"
> description="bæbæ"
> >
> > value="blah.jar"/>
>
> > version="4.0"
> unauthenticatedPrincipal="nobody"
> xmlencoding="UTF-8"
> destdir="${samples.meta-inf.dir}"
> validatexml="true"
>
> preferredrelationmapping="relation-table"
> mergedir="${samples.merge.dir}"
> />
>
>
> ***************
>
> 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
>
>
> ---------------------------------
> Heres 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
>
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
-------------------------------------------------------------------------
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
---------------------------------
Heres 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