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