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

Fredrik Andersson <[email protected]> Sat, 29 Mar 2008 21:53:02 +0000
Newsgroups gmane.comp.java.xdoclet.user
Message-ID <[email protected]>
--===============0937733074==
Content-Type: multipart/alternative;
	boundary="_cc773cc8-b668-447d-b3cf-a8615ade510f_"

--_cc773cc8-b668-447d-b3cf-a8615ade510f_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hello!
=20
I try to use Xdoclet but I can not make it to work.
=20
I try to use it for this example code:
http://dev2dev.bea.com/lpt/a/477
=20
My ejbdoclet tag looks like:
=20
<target name=3D"ejbdoclet" depends=3D"prepare">
<taskdef name=3D"ejbdoclet" classname=3D"xdoclet.modules.ejb.EjbDocletTask"=
 classpath=3D"xdoclet/lib/xdoclet.jar;xdoclet/lib/log4j.jar;C:/Fredrik/Down=
load/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 xmlencoding=3D"UTF-8" destdir=3D"build/ejb/META-INF" validatexml=
=3D"true"/>
</ejbdoclet>

</target>
=20
My file structure looks like:
build.xml
src (all code under pack org/javatx/mdb)
xdoclet_merg
=20
My first attempt without merge gave me an ejb-jar.xml:
   <enterprise-beans>
      <!-- Session Beans -->     <!--       To add session beans that you h=
ave deployment descriptor info for, add       a file to your XDoclet merge =
directory called session-beans.xml that contains       the <session></sessi=
on> markup for those beans.     -->
      <!-- Entity Beans -->     <!--       To add entity beans that you hav=
e deployment descriptor info for, add       a file to your XDoclet merge di=
rectory called entity-beans.xml that contains       the <entity></entity> m=
arkup for those beans.     -->
      <!-- Message Driven Beans -->     <!--       To add message driven be=
ans 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>
=20
So I added xdoclet_merge with:
message-driven-beans.xml=20
 containing this line:
<message-driven>org.javatx.mdb.SimpleMdb</message-driven>
 =20
weblogic-enterprise-beans.xml
 containing this line:
<weblogic-enterprise-bean>org.javatx.mdb.SimpleMdb</weblogic-enterprise-bea=
n>=20
... even though http://xdoclet.sourceforge.net/xdoclet/using.html does not =
mention anything about merge at all.
=20
That gave me an ejb-jar.xml like:
   <enterprise-beans>
      <!-- Session Beans -->     <!--       To add session beans that you h=
ave deployment descriptor info for, add       a file to your XDoclet merge =
directory called session-beans.xml that contains       the <session></sessi=
on> markup for those beans.     -->
      <!-- Entity Beans -->     <!--       To add entity beans that you hav=
e deployment descriptor info for, add       a file to your XDoclet merge di=
rectory called entity-beans.xml that contains       the <entity></entity> m=
arkup for those beans.     -->
      <!-- Message Driven Beans -->   <message-driven>org.javatx.mdb.Simple=
Mdb</message-driven>
   </enterprise-beans>
=20
To me it looks like the ejbdoclet does not find my source file.
What do you think guys!
=20
Any comment is welcome!!
I'm really stuck.
=20
Best regards
Fredrik
=20
=20
_________________________________________________________________
Spara, redigera och organisera dina foton enkelt med Photo Gallery!
http://get.live.com/photogallery/overview=

--_cc773cc8-b668-447d-b3cf-a8615ade510f_
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>
&nbsp;<BR>
I try to use Xdoclet but I can not make it to work.<BR>
&nbsp;<BR>
I try to use it for this example code:<BR>
<A href=3D"http://dev2dev.bea.com/lpt/a/477">http://dev2dev.bea.com/lpt/a/4=
77</A><BR>
&nbsp;<BR>
My ejbdoclet tag looks like:<BR>
&nbsp;<BR><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>&lt;target</FONT><FON=
T size=3D2> </FONT><FONT color=3D#000080 size=3D2>name=3D</FONT><FONT color=
=3D#008000 size=3D2>"ejbdoclet"</FONT><FONT size=3D2> </FONT><FONT color=3D=
#000080 size=3D2>depends=3D</FONT><FONT color=3D#008000 size=3D2>"prepare"<=
/FONT><FONT color=3D#000080 size=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>&lt;taskdef</FONT><FO=
NT size=3D2> </FONT><FONT color=3D#000080 size=3D2>name=3D</FONT><FONT colo=
r=3D#008000 size=3D2>"ejbdoclet"</FONT><FONT size=3D2> </FONT><FONT color=
=3D#000080 size=3D2>classname=3D</FONT><FONT color=3D#008000 size=3D2>"xdoc=
let.modules.ejb.EjbDocletTask"</FONT><FONT size=3D2> </FONT><FONT color=3D#=
000080 size=3D2>classpath=3D</FONT><FONT color=3D#008000 size=3D2>"xdoclet/=
lib/xdoclet.jar;xdoclet/lib/log4j.jar;C:/Fredrik/Download/Ant/apache-ant-1.=
7.0/lib/ant.jar;C:/Fredrik/Download/Xdoclet/xdoclet-1.2.3/lib/xdoclet-ejb-m=
odule-1.2.3.jar"</FONT><FONT size=3D2> </FONT><FONT color=3D#000080 size=3D=
2>/&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></P>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>&lt;ejbdoclet</P></FO=
NT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>destdir=3D</FONT><FON=
T color=3D#008000 size=3D2>"gen-src/java"</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>excludedtags=3D</FONT=
><FONT color=3D#008000 size=3D2>"@version,@author"</P></FONT><FONT size=3D2=
>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>ejbspec=3D</FONT><FON=
T color=3D#008000 size=3D2>"2.0"</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>verbose=3D</FONT><FON=
T color=3D#008000 size=3D2>"true"</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>force=3D</FONT><FONT =
color=3D#008000 size=3D2>"true"</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>mergeDir=3D</FONT><FO=
NT color=3D#008000 size=3D2>"xdoclet_merge"</FONT><FONT color=3D#000080 siz=
e=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#800000 size=3D2>&lt;!--&lt;fileset di=
r=3D"./src"&gt;--&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>&lt;fileset</FONT><FO=
NT size=3D2> </FONT><FONT color=3D#000080 size=3D2>dir=3D</FONT><FONT color=
=3D#008000 size=3D2>"C:/Fredrik/Eclipse_workspace/spring_mdb/src"</FONT><FO=
NT color=3D#000080 size=3D2>&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>&lt;include</FONT><FO=
NT size=3D2> </FONT><FONT color=3D#000080 size=3D2>name=3D</FONT><FONT colo=
r=3D#008000 size=3D2>"**/*.java"</FONT><FONT size=3D2> </FONT><FONT color=
=3D#000080 size=3D2>/&gt;</P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2>&lt;/fileset&gt;</P><=
/FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#800000 size=3D2>&lt;deploymentdescrip=
tor destdir=3D"build/ejb/META-INF"/&gt;</P>
<P align=3Dleft>&lt;weblogic xmlencoding=3D"UTF-8" destdir=3D"build/ejb/MET=
A-INF" validatexml=3D"true"/&gt;</P>
<P align=3Dleft>&lt;/ejbdoclet&gt;</P>
<P align=3Dleft></P>
&lt;/target&gt;<BR>
&nbsp;<BR>
My file structure looks like:<BR>
build.xml<BR>
src (all code under pack <FONT size=3D2>org/javatx/mdb</FONT>)<BR>
xdoclet_merg<BR>
&nbsp;<BR>
My first attempt without merge gave me an ejb-jar.xml:<BR>
&nbsp;&nbsp; &lt;enterprise-beans&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Session Beans --&gt;<BR>&nbsp;&nbsp;=
&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To add session=
 beans that you have deployment descriptor info for, add<BR>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; a file to your XDoclet merge directory called session=
-beans.xml that contains<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the &lt;se=
ssion&gt;&lt;/session&gt; markup for those beans.<BR>&nbsp;&nbsp;&nbsp;&nbs=
p; --&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Entity Beans --&gt;<BR>&nbsp;&nbsp;&=
nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To add entity b=
eans that you have deployment descriptor info for, add<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp; a file to your XDoclet merge directory called entity-be=
ans.xml that contains<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the &lt;entit=
y&gt;&lt;/entity&gt; markup for those beans.<BR>&nbsp;&nbsp;&nbsp;&nbsp; --=
&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Message Driven Beans --&gt;<BR>&nbsp=
;&nbsp;&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To add =
message driven beans that you have deployment descriptor info for, add<BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a file to your XDoclet merge directory =
called message-driven-beans.xml that contains<BR>&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp; the &lt;message-driven&gt;&lt;/message-driven&gt; markup for tho=
se beans.<BR>&nbsp;&nbsp;&nbsp;&nbsp; --&gt;<BR>
&nbsp;&nbsp; &lt;/enterprise-beans&gt;<BR>
&nbsp;<BR>
So I added xdoclet_merge with:<BR>
message-driven-beans.xml <BR>
&nbsp;containing this line:<BR>
&lt;message-driven&gt;org.javatx.mdb.SimpleMdb&lt;/message-driven&gt;<BR>
&nbsp; <BR>
weblogic-enterprise-beans.xml<BR>
&nbsp;containing this line:<BR>
&lt;weblogic-enterprise-bean&gt;org.javatx.mdb.SimpleMdb&lt;/weblogic-enter=
prise-bean&gt; <BR><BR>
... even though <A href=3D"http://xdoclet.sourceforge.net/xdoclet/using.htm=
l">http://xdoclet.sourceforge.net/xdoclet/using.html</A>&nbsp;does not ment=
ion anything about merge at all.<BR>
&nbsp;<BR>
That gave me an ejb-jar.xml like:<BR>
&nbsp;&nbsp; &lt;enterprise-beans&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Session Beans --&gt;<BR>&nbsp;&nbsp;=
&nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To add session=
 beans that you have deployment descriptor info for, add<BR>&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; a file to your XDoclet merge directory called session=
-beans.xml that contains<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the &lt;se=
ssion&gt;&lt;/session&gt; markup for those beans.<BR>&nbsp;&nbsp;&nbsp;&nbs=
p; --&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Entity Beans --&gt;<BR>&nbsp;&nbsp;&=
nbsp;&nbsp; &lt;!--<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To add entity b=
eans that you have deployment descriptor info for, add<BR>&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp; a file to your XDoclet merge directory called entity-be=
ans.xml that contains<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; the &lt;entit=
y&gt;&lt;/entity&gt; markup for those beans.<BR>&nbsp;&nbsp;&nbsp;&nbsp; --=
&gt;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Message Driven Beans --&gt;<BR>&nbsp=
;&nbsp; &lt;message-driven&gt;org.javatx.mdb.SimpleMdb&lt;/message-driven&g=
t;<BR>
&nbsp;&nbsp; &lt;/enterprise-beans&gt;<BR>
&nbsp;<BR>
To me it looks like the ejbdoclet does not find my source file.<BR>
What do you think guys!<BR>
&nbsp;<BR>
Any comment is welcome!!<BR>
I'm really stuck.<BR>
&nbsp;<BR>
Best regards<BR>
Fredrik<BR>
&nbsp;<BR>
&nbsp;<BR></FONT><br /><hr />Tokbilliga solresor & gratis reseguider! <a hr=
ef=3D'http://resor.se.msn.com/' target=3D'_new'>MSN Resor</a></body>
</html>=

--_cc773cc8-b668-447d-b3cf-a8615ade510f_--


--===============0937733074==
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
--===============0937733074==
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

--===============0937733074==--