Re: What might be wrong with this ant-task (ejbdoclet)??

Fredrik Andersson <[email protected]> Tue, 1 Apr 2008 07:57:22 +0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============1080116381==
Content-Type: multipart/alternative;
	boundary="_0a47c808-8d2e-404e-abc3-345670f1f7b1_"

--_0a47c808-8d2e-404e-abc3-345670f1f7b1_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hello!I started all over with this example:http://www.onjava.com/pub/a/onja=
va/2002/01/30/xdoclet.html?page=3D2I needed to tveak it a bit. By using a t=
arget like:  <!-- Run EJBDoclet -->  <target name=3D"ejbdoclet" depends=3D"=
prepare">      <taskdef name=3D"ejbdoclet"          classname=3D"xdoclet.mo=
dules.ejb.EjbDocletTask"          classpathref=3D"project.class.path"      =
/>      <ejbdoclet        destdir=3D"${generated.java.dir}"        excluded=
tags=3D"@version,@author"        ejbspec=3D"2.0">        <fileset dir=3D"${=
java.dir}">            <include name=3D"**/*.java" />        </fileset>    =
    <remoteinterface/>        <homeinterface/>        <deploymentdescriptor=
 destdir=3D"${build.dir}/ejb/META-INF"/>        <jboss version=3D"2.4" xmle=
ncoding=3D"UTF-8" destdir=3D"${build.dir}/ejb/META-INF"/>        <weblogic =
xmlencoding=3D"UTF-8" destdir=3D"${build.dir}/ejb/META-INF" validatexml=3D"=
true"/>        <webSphere destdir=3D"${build.dir}/ejb/META-INF" />        <=
orion destdir=3D"${build.dir}/ejb/META-INF" />      </ejbdoclet>  </target>=
I manage to genrate the ejb-jar.xml and weblogic-ejb-jar.xmlBest regardsFre=
drik> Date: Sun, 30 Mar 2008 05:15:08 -0700> From: [email protected]> To=
: [email protected]> Subject: Re: [Xdoclet-user] What migh=
t be wrong with this ant-task (ejbdoclet)??> > It looks that XDoclet did no=
t recognized your sources> being EJBs. This can happen, if you forget to> i=
nlcude> javax.ejb.* classes on xdoclet classpath. > > If those classes are =
not available, it's impossible> to tell what exactly is ejb - thus everythi=
ng gets> ignored. > > > I would also drop ant itself from task classpath > =
( IIRC those classes are available in any case ) > > > regards,> --- Fredri=
k Andersson <[email protected]>> wrote:> > > > > Hello!> > > > I=
 try to use Xdoclet but I can not make it to work.> > > > I try to use it f=
or this example code:> > http://dev2dev.bea.com/lpt/a/477> > > > My ejbdocl=
et tag looks like:> > > > <target name=3D"ejbdoclet" depends=3D"prepare">> =
> <taskdef name=3D"ejbdoclet"> > classname=3D"xdoclet.modules.ejb.EjbDoclet=
Task"> >> classpath=3D"xdoclet/lib/xdoclet.jar;xdoclet/lib/log4j.jar;C:/Fre=
drik/Download/Ant/apache-ant-1.7.0/lib/ant.jar;C:/Fredrik/Download/Xdoclet/=
xdoclet-1.2.3/lib/xdoclet-ejb-module-1.2.3.jar"> > />> > > > <ejbdoclet> > =
destdir=3D"gen-src/java"> > excludedtags=3D"@version,@author"> > ejbspec=3D=
"2.0"> > verbose=3D"true"> > force=3D"true"> > mergeDir=3D"xdoclet_merge">>=
 > <!--<fileset dir=3D"./src">-->> > <fileset> > dir=3D"C:/Fredrik/Eclipse_=
workspace/spring_mdb/src">> > <include name=3D"**/*.java" />> > </fileset>>=
 > <deploymentdescriptor destdir=3D"build/ejb/META-INF"/>> > <weblogic xmle=
ncoding=3D"UTF-8"> > destdir=3D"build/ejb/META-INF" validatexml=3D"true"/>>=
 > </ejbdoclet>> > > > </target>> > > > My file structure looks like:> > bu=
ild.xml> > src (all code under pack org/javatx/mdb)> > xdoclet_merg> > > > =
My first attempt without merge gave me an> > ejb-jar.xml:> > <enterprise-be=
ans>> > <!-- Session Beans --> <!-- To add> > session beans that you have d=
eployment descriptor> > info for, add a file to your XDoclet merge> > direc=
tory called session-beans.xml that contains > > the <session></session> mar=
kup 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 <e=
ntity></entity> markup for those beans. > > -->> > <!-- Message Driven Bean=
s --> <!-- > > To add message driven beans that you have deployment> > desc=
riptor info for, add a file to your> > XDoclet merge directory called> > me=
ssage-driven-beans.xml that contains the> > <message-driven></message-drive=
n> markup for those> > beans. -->> > </enterprise-beans>> > > > So I added =
xdoclet_merge with:> > message-driven-beans.xml > > containing this line:> =
>> <message-driven>org.javatx.mdb.SimpleMdb</message-driven>> > > > weblogi=
c-enterprise-beans.xml> > containing this line:> >> <weblogic-enterprise-be=
an>org.javatx.mdb.SimpleMdb</weblogic-enterprise-bean>> > > > ... even thou=
gh> > http://xdoclet.sourceforge.net/xdoclet/using.html> > does not mention=
 anything about merge at all.> > > > That gave me an ejb-jar.xml like:> > <=
enterprise-beans>> > <!-- Session Beans --> <!-- To add> > session beans th=
at you have deployment descriptor> > info for, add a file to your XDoclet m=
erge> > 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 contai=
ns > > the <entity></entity> markup for those beans. > > -->> > <!-- Messag=
e Driven Beans --> > >> <message-driven>org.javatx.mdb.SimpleMdb</message-d=
riven>> > </enterprise-beans>> > > > To me it looks like the ejbdoclet does=
 not find my> > source file.> > What do you think guys!> > > > Any comment =
is welcome!!> > I'm really stuck.> > > > Best regards> > Fredrik> > > > > >=
> _________________________________________________________________> > Spar=
a, redigera och organisera dina foton enkelt med> > Photo Gallery!> > http:=
//get.live.com/photogallery/overview>> ------------------------------------=
-------------------------------------> > Check out the new SourceForge.net =
Marketplace.> > It's the best place to buy or sell services for> > just abo=
ut anything Open Source.> >> http://ad.doubleclick.net/clk;164216239;135030=
38;w?http://sf.net/marketplace>> __________________________________________=
_____> > xdoclet-user mailing list> > [email protected]> >=
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user> > > > > ----[ =
Konstantin Pribluda http://www.pribluda.de ]----------------> JTec quality =
components: http://www.pribluda.de/projects/> > > _________________________=
___________________________________________________________> Be a better fr=
iend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://m=
obile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao8Wcj9tAcJ> > -------------------=
------------------------------------------------------> Check out the new S=
ourceForge.net Marketplace.> It's the best place to buy or sell services fo=
r> just about anything Open Source.> http://ad.doubleclick.net/clk;16421623=
9;13503038;w?http://sf.net/marketplace> ___________________________________=
____________> xdoclet-user mailing list> [email protected]=
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
_________________________________________________________________
M=F6rkt och kallt? Kanske Barcelona?
http://search.live.com/results.aspx?q=3DBarcelona+reseguide&form=3DQBRE=

--_0a47c808-8d2e-404e-abc3-345670f1f7b1_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>
Hello!<BR><BR>I started all over with this example:<BR><A href=3D"http://ww=
w.onjava.com/pub/a/onjava/2002/01/30/xdoclet.html?page=3D2" target=3D_blank=
><U><FONT color=3D#810081>http://www.onjava.com/pub/a/onjava/2002/01/30/xdo=
clet.html?page=3D2</FONT></U></A><BR><BR>I needed to tveak it a bit. By usi=
ng a target like:<BR>&nbsp; &lt;!-- Run EJBDoclet --&gt;<BR>&nbsp; &lt;targ=
et name=3D"ejbdoclet" depends=3D"prepare"&gt;<BR>&nbsp; &nbsp; &nbsp; &lt;t=
askdef name=3D"ejbdoclet"<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; classname=
=3D"xdoclet.modules.ejb.EjbDocletTask"<BR>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp=
; classpathref=3D"project.class.path"<BR>&nbsp; &nbsp; &nbsp; /&gt;<BR><BR>=
&nbsp; &nbsp; &nbsp; &lt;ejbdoclet<BR>&nbsp; &nbsp; &nbsp; &nbsp; destdir=
=3D"${generated.java.dir}"<BR>&nbsp; &nbsp; &nbsp; &nbsp; excludedtags=3D"@=
version,@author"<BR>&nbsp; &nbsp; &nbsp; &nbsp; ejbspec=3D"2.0"&gt;<BR><BR>=
&nbsp; &nbsp; &nbsp; &nbsp; &lt;fileset dir=3D"${java.dir}"&gt;<BR>&nbsp; &=
nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;include name=3D"**/*.java" /&gt;<BR>&=
nbsp; &nbsp; &nbsp; &nbsp; &lt;/fileset&gt;<BR><BR>&nbsp; &nbsp; &nbsp; &nb=
sp; &lt;remoteinterface/&gt;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &lt;homeinterfa=
ce/&gt;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &lt;deploymentdescriptor destdir=3D"=
${build.dir}/ejb/META-INF"/&gt;<BR><BR>&nbsp; &nbsp; &nbsp; &nbsp; &lt;jbos=
s version=3D"2.4" xmlencoding=3D"UTF-8" destdir=3D"${build.dir}/ejb/META-IN=
F"/&gt;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &lt;weblogic xmlencoding=3D"UTF-8" d=
estdir=3D"${build.dir}/ejb/META-INF" validatexml=3D"true"/&gt;<BR>&nbsp; &n=
bsp; &nbsp; &nbsp; &lt;webSphere destdir=3D"${build.dir}/ejb/META-INF" /&gt=
;<BR>&nbsp; &nbsp; &nbsp; &nbsp; &lt;orion destdir=3D"${build.dir}/ejb/META=
-INF" /&gt;<BR><BR>&nbsp; &nbsp; &nbsp; &lt;/ejbdoclet&gt;<BR><BR>&nbsp; &l=
t;/target&gt;<BR><BR>I manage to genrate the ejb-jar.xml and weblogic-ejb-j=
ar.xml<BR><BR>Best regards<BR>Fredrik<BR><BR>&gt; Date: Sun, 30 Mar 2008 05=
:15:08 -0700<BR>&gt; From: [email protected]<BR>&gt; To: xdoclet-user@li=
sts.sourceforge.net<BR>&gt; Subject: Re: [Xdoclet-user] What might be wrong=
 with this ant-task (ejbdoclet)??<BR>&gt; <BR>&gt; It looks that XDoclet di=
d not recognized your sources<BR>&gt; being EJBs. This can happen, if you f=
orget to<BR>&gt; inlcude<BR>&gt; javax.ejb.* classes on xdoclet classpath. =
<BR>&gt; <BR>&gt; If those classes are not available, it's impossible<BR>&g=
t; to tell what exactly is ejb - thus everything gets<BR>&gt; ignored. <BR>=
&gt; <BR>&gt; <BR>&gt; I would also drop ant itself from task classpath <BR=
>&gt; ( IIRC those classes are available in any case ) <BR>&gt; <BR>&gt; <B=
R>&gt; regards,<BR>&gt; --- Fredrik Andersson &lt;fredand44_java3d@hotmail.=
com&gt;<BR>&gt; wrote:<BR>&gt; <BR>&gt; &gt; <BR>&gt; &gt; Hello!<BR>&gt; &=
gt; <BR>&gt; &gt; I try to use Xdoclet but I can not make it to work.<BR>&g=
t; &gt; <BR>&gt; &gt; I try to use it for this example code:<BR>&gt; &gt; h=
ttp://dev2dev.bea.com/lpt/a/477<BR>&gt; &gt; <BR>&gt; &gt; My ejbdoclet tag=
 looks like:<BR>&gt; &gt; <BR>&gt; &gt; &lt;target name=3D"ejbdoclet" depen=
ds=3D"prepare"&gt;<BR>&gt; &gt; &lt;taskdef name=3D"ejbdoclet"<BR>&gt; &gt;=
 classname=3D"xdoclet.modules.ejb.EjbDocletTask"<BR>&gt; &gt;<BR>&gt; class=
path=3D"xdoclet/lib/xdoclet.jar;xdoclet/lib/log4j.jar;C:/Fredrik/Download/A=
nt/apache-ant-1.7.0/lib/ant.jar;C:/Fredrik/Download/Xdoclet/xdoclet-1.2.3/l=
ib/xdoclet-ejb-module-1.2.3.jar"<BR>&gt; &gt; /&gt;<BR>&gt; &gt; <BR>&gt; &=
gt; &lt;ejbdoclet<BR>&gt; &gt; destdir=3D"gen-src/java"<BR>&gt; &gt; exclud=
edtags=3D"@version,@author"<BR>&gt; &gt; ejbspec=3D"2.0"<BR>&gt; &gt; verbo=
se=3D"true"<BR>&gt; &gt; force=3D"true"<BR>&gt; &gt; mergeDir=3D"xdoclet_me=
rge"&gt;<BR>&gt; &gt; &lt;!--&lt;fileset dir=3D"./src"&gt;--&gt;<BR>&gt; &g=
t; &lt;fileset<BR>&gt; &gt; dir=3D"C:/Fredrik/Eclipse_workspace/spring_mdb/=
src"&gt;<BR>&gt; &gt; &lt;include name=3D"**/*.java" /&gt;<BR>&gt; &gt; &lt=
;/fileset&gt;<BR>&gt; &gt; &lt;deploymentdescriptor destdir=3D"build/ejb/ME=
TA-INF"/&gt;<BR>&gt; &gt; &lt;weblogic xmlencoding=3D"UTF-8"<BR>&gt; &gt; d=
estdir=3D"build/ejb/META-INF" validatexml=3D"true"/&gt;<BR>&gt; &gt; &lt;/e=
jbdoclet&gt;<BR>&gt; &gt; <BR>&gt; &gt; &lt;/target&gt;<BR>&gt; &gt; <BR>&g=
t; &gt; My file structure looks like:<BR>&gt; &gt; build.xml<BR>&gt; &gt; s=
rc (all code under pack org/javatx/mdb)<BR>&gt; &gt; xdoclet_merg<BR>&gt; &=
gt; <BR>&gt; &gt; My first attempt without merge gave me an<BR>&gt; &gt; ej=
b-jar.xml:<BR>&gt; &gt; &lt;enterprise-beans&gt;<BR>&gt; &gt; &lt;!-- Sessi=
on Beans --&gt; &lt;!-- To add<BR>&gt; &gt; session beans that you have dep=
loyment descriptor<BR>&gt; &gt; info for, add a file to your XDoclet merge<=
BR>&gt; &gt; directory called session-beans.xml that contains <BR>&gt; &gt;=
 the &lt;session&gt;&lt;/session&gt; markup for those beans. <BR>&gt; &gt; =
--&gt;<BR>&gt; &gt; &lt;!-- Entity Beans --&gt; &lt;!-- To add<BR>&gt; &gt;=
 entity beans that you have deployment descriptor<BR>&gt; &gt; info for, ad=
d a file to your XDoclet merge<BR>&gt; &gt; directory called entity-beans.x=
ml that contains <BR>&gt; &gt; the &lt;entity&gt;&lt;/entity&gt; markup for=
 those beans. <BR>&gt; &gt; --&gt;<BR>&gt; &gt; &lt;!-- Message Driven Bean=
s --&gt; &lt;!-- <BR>&gt; &gt; To add message driven beans that you have de=
ployment<BR>&gt; &gt; descriptor info for, add a file to your<BR>&gt; &gt; =
XDoclet merge directory called<BR>&gt; &gt; message-driven-beans.xml that c=
ontains the<BR>&gt; &gt; &lt;message-driven&gt;&lt;/message-driven&gt; mark=
up for those<BR>&gt; &gt; beans. --&gt;<BR>&gt; &gt; &lt;/enterprise-beans&=
gt;<BR>&gt; &gt; <BR>&gt; &gt; So I added xdoclet_merge with:<BR>&gt; &gt; =
message-driven-beans.xml <BR>&gt; &gt; containing this line:<BR>&gt; &gt;<B=
R>&gt; &lt;message-driven&gt;org.javatx.mdb.SimpleMdb&lt;/message-driven&gt=
;<BR>&gt; &gt; <BR>&gt; &gt; weblogic-enterprise-beans.xml<BR>&gt; &gt; con=
taining this line:<BR>&gt; &gt;<BR>&gt; &lt;weblogic-enterprise-bean&gt;org=
.javatx.mdb.SimpleMdb&lt;/weblogic-enterprise-bean&gt;<BR>&gt; &gt; <BR>&gt=
; &gt; ... even though<BR>&gt; &gt; http://xdoclet.sourceforge.net/xdoclet/=
using.html<BR>&gt; &gt; does not mention anything about merge at all.<BR>&g=
t; &gt; <BR>&gt; &gt; That gave me an ejb-jar.xml like:<BR>&gt; &gt; &lt;en=
terprise-beans&gt;<BR>&gt; &gt; &lt;!-- Session Beans --&gt; &lt;!-- To add=
<BR>&gt; &gt; session beans that you have deployment descriptor<BR>&gt; &gt=
; info for, add a file to your XDoclet merge<BR>&gt; &gt; directory called =
session-beans.xml that contains <BR>&gt; &gt; the &lt;session&gt;&lt;/sessi=
on&gt; markup for those beans. <BR>&gt; &gt; --&gt;<BR>&gt; &gt; &lt;!-- En=
tity Beans --&gt; &lt;!-- To add<BR>&gt; &gt; entity beans that you have de=
ployment descriptor<BR>&gt; &gt; info for, add a file to your XDoclet merge=
<BR>&gt; &gt; directory called entity-beans.xml that contains <BR>&gt; &gt;=
 the &lt;entity&gt;&lt;/entity&gt; markup for those beans. <BR>&gt; &gt; --=
&gt;<BR>&gt; &gt; &lt;!-- Message Driven Beans --&gt; <BR>&gt; &gt;<BR>&gt;=
 &lt;message-driven&gt;org.javatx.mdb.SimpleMdb&lt;/message-driven&gt;<BR>&=
gt; &gt; &lt;/enterprise-beans&gt;<BR>&gt; &gt; <BR>&gt; &gt; To me it look=
s like the ejbdoclet does not find my<BR>&gt; &gt; source file.<BR>&gt; &gt=
; What do you think guys!<BR>&gt; &gt; <BR>&gt; &gt; Any comment is welcome=
!!<BR>&gt; &gt; I'm really stuck.<BR>&gt; &gt; <BR>&gt; &gt; Best regards<B=
R>&gt; &gt; Fredrik<BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; &gt;<BR>&gt; ______=
___________________________________________________________<BR>&gt; &gt; Sp=
ara, redigera och organisera dina foton enkelt med<BR>&gt; &gt; Photo Galle=
ry!<BR>&gt; &gt; http://get.live.com/photogallery/overview&gt;<BR>&gt; ----=
---------------------------------------------------------------------<BR>&g=
t; &gt; Check out the new SourceForge.net Marketplace.<BR>&gt; &gt; It's th=
e best place to buy or sell services for<BR>&gt; &gt; just about anything O=
pen Source.<BR>&gt; &gt;<BR>&gt; http://ad.doubleclick.net/clk;164216239;13=
503038;w?http://sf.net/marketplace&gt;<BR>&gt; ____________________________=
___________________<BR>&gt; &gt; xdoclet-user mailing list<BR>&gt; &gt; xdo=
[email protected]<BR>&gt; &gt;<BR>&gt; https://lists.sourcefo=
rge.net/lists/listinfo/xdoclet-user<BR>&gt; &gt; <BR>&gt; <BR>&gt; <BR>&gt;=
 ----[ Konstantin Pribluda http://www.pribluda.de ]----------------<BR>&gt;=
 JTec quality components: http://www.pribluda.de/projects/<BR>&gt; <BR>&gt;=
 <BR>&gt; _________________________________________________________________=
___________________<BR>&gt; Be a better friend, newshound, and <BR>&gt; kno=
w-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=3DAh=
u06i62sR8HDtDypao8Wcj9tAcJ<BR>&gt; <BR>&gt; -------------------------------=
------------------------------------------<BR>&gt; Check out the new Source=
Forge.net Marketplace.<BR>&gt; It's the best place to buy or sell services =
for<BR>&gt; just about anything Open Source.<BR>&gt; http://ad.doubleclick.=
net/clk;164216239;13503038;w?http://sf.net/marketplace<BR>&gt; ____________=
___________________________________<BR>&gt; xdoclet-user mailing list<BR>&g=
t; [email protected]<BR>&gt; https://lists.sourceforge.net=
/lists/listinfo/xdoclet-user<BR><br /><hr />Den perfekta mixen av n=F6jesny=
heter & livekonserter! <a href=3D'http://video.se.msn.com/v/sv-se/v.htm' ta=
rget=3D'_new'>MSN Video</a></body>
</html>=

--_0a47c808-8d2e-404e-abc3-345670f1f7b1_--


--===============1080116381==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
--===============1080116381==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

--===============1080116381==--