As long as your bean doesn’t depend
on other libraries other than JBoss and XDoclet no. But without looking
at your imports there is no way to know.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 18, 2005
11:17 AM
To: Poitras, William
(Eq,FI&RWM)
Subject: [Xdoclet-user] ejbdoclet
not generating anything
Hi William,
I was trying an ejbdoclet. I get a similar problem like you. The ejb-jar.xml is
created but I do not see any thing in it except like this
<ejb-jar >
<description><![CDATA[No
Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session
Beans -->
<!--
To add
session beans that you have deployment descriptor info for, add
a file to
your XDoclet merge directory called session-beans.xml that contains
the
<session></session> markup for those beans.
-->
<!-- Entity
Beans -->
<!--
To add
entity beans that you have deployment descriptor info for, add
a file to
your XDoclet merge directory called entity-beans.xml that contains
the
<entity></entity> markup for those beans.
-->
<!-- Message
Driven Beans -->
<!--
To add
message driven beans that you have deployment descriptor info for, add
a file to
your XDoclet merge directory called message-driven-beans.xml that contains
the
<message-driven></message-driven> markup for those beans.
-->
</enterprise-beans>
</ejb-jar>
this
is my bean class xdoclet tags
/**
*
This is a stateless session bean for clause management
*
*
*
@ejb:bean
name="ClauseManager"
*
jndi-name="sws/remote/ClauseManager"
*
local-jndi-name="sws/local/ClauseManager"
*
type="Stateless"
*
*
@ejb:interface remote-class="gov.gsa.sws.services.clausemanager.ClauseManagerRemote"
*
local-class="gov.gsa.sws.services.clausemanager.ClauseManagerHome"
*
*
@ejb:home remote-class="gov.gsa.sws.services.clausemanager.ClauseManagerRemoteHome"
*
local-class="gov.gsa.sws.services.clausemanager.ClauseManagerLocalHome"
*
*
*
@jboss:container-configuration name="Standard Stateless SessionBean"
*
@ejb:transaction type="Never"
*
*
@jboss:ejb-ref-jndi jndi-name="ClauseManagerRemote"
*
ref-name="ClauseManagerRemoteRef"
*
*/
Here
is my build.xml
<path id="xdoclet.path">
<fileset dir="c:/xdoclet-1.2.3/lib"
includes="*.jar"/>
<fileset dir="${jbossdir}/server/all/lib/"
includes="*.jar" />
<pathelement path="."/>
</path>
<target
name="ejbdoclet" depends="init">
<taskdef
name="ejbdoclet"
classname="xdoclet.modules.ejb.EjbDocletTask"
classpathref="xdoclet.path"
/>
<tstamp>
<format property="TODAY" pattern="dd-MM-yy"/>
</tstamp>
<ejbdoclet
destdir="${build}"
excludedtags="@version,@author"
addedtags="@xdoclet-generated at ${TODAY}"
ejbspec="2.0" verbose="true" force="true" >
<fileset dir="${src}/gov/gsa/sws/services"
>
<include name="**/*.java"/>
</fileset>
<dataobject/>
<remoteinterface />
<localinterface />
<homeinterface />
<localhomeinterface />
<session />
<deploymentdescriptor destdir="${build}/ejb/META-INF"/>
<jboss version="4.0"
securityDomain="java:/jaas/samples"
preferredRelationMapping="relation-table"
datasource="java:/DefaultDS"
datasourcemapping="Hypersonic SQL"
destdir="${build}/ejb/META-INF"
/>
</ejbdoclet>
Do
you think I am missing any classes as you in my path. Or should I do something
else.
thanks
Mohammed
|