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>
<BR>
I try to use Xdoclet but I can not make it to work.<BR>
<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>
<BR>
My ejbdoclet tag looks like:<BR>
<BR><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2><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>></P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2><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>/></P></FONT><FONT size=3D2>
<P align=3Dleft></P>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2><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>></P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#800000 size=3D2><!--<fileset di=
r=3D"./src">--></P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2><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>></P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2><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>/></P></FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#000080 size=3D2></fileset></P><=
/FONT><FONT size=3D2>
<P align=3Dleft></FONT><FONT color=3D#800000 size=3D2><deploymentdescrip=
tor destdir=3D"build/ejb/META-INF"/></P>
<P align=3Dleft><weblogic xmlencoding=3D"UTF-8" destdir=3D"build/ejb/MET=
A-INF" validatexml=3D"true"/></P>
<P align=3Dleft></ejbdoclet></P>
<P align=3Dleft></P>
</target><BR>
<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>
<BR>
My first attempt without merge gave me an ejb-jar.xml:<BR>
<enterprise-beans><BR>
<!-- Session Beans --><BR> =
<!--<BR> To add session=
beans that you have deployment descriptor info for, add<BR> &nb=
sp; a file to your XDoclet merge directory called session=
-beans.xml that contains<BR> the <se=
ssion></session> markup for those beans.<BR> &nbs=
p; --><BR>
<!-- Entity Beans --><BR> &=
nbsp; <!--<BR> To add entity b=
eans that you have deployment descriptor info for, add<BR>  =
; a file to your XDoclet merge directory called entity-be=
ans.xml that contains<BR> the <entit=
y></entity> markup for those beans.<BR> --=
><BR>
<!-- Message Driven Beans --><BR> =
; <!--<BR> To add =
message driven beans that you have deployment descriptor info for, add<BR>&=
nbsp; a file to your XDoclet merge directory =
called message-driven-beans.xml that contains<BR> &n=
bsp; the <message-driven></message-driven> markup for tho=
se beans.<BR> --><BR>
</enterprise-beans><BR>
<BR>
So I added xdoclet_merge with:<BR>
message-driven-beans.xml <BR>
containing this line:<BR>
<message-driven>org.javatx.mdb.SimpleMdb</message-driven><BR>
<BR>
weblogic-enterprise-beans.xml<BR>
containing this line:<BR>
<weblogic-enterprise-bean>org.javatx.mdb.SimpleMdb</weblogic-enter=
prise-bean> <BR><BR>
... even though <A href=3D"http://xdoclet.sourceforge.net/xdoclet/using.htm=
l">http://xdoclet.sourceforge.net/xdoclet/using.html</A> does not ment=
ion anything about merge at all.<BR>
<BR>
That gave me an ejb-jar.xml like:<BR>
<enterprise-beans><BR>
<!-- Session Beans --><BR> =
<!--<BR> To add session=
beans that you have deployment descriptor info for, add<BR> &nb=
sp; a file to your XDoclet merge directory called session=
-beans.xml that contains<BR> the <se=
ssion></session> markup for those beans.<BR> &nbs=
p; --><BR>
<!-- Entity Beans --><BR> &=
nbsp; <!--<BR> To add entity b=
eans that you have deployment descriptor info for, add<BR>  =
; a file to your XDoclet merge directory called entity-be=
ans.xml that contains<BR> the <entit=
y></entity> markup for those beans.<BR> --=
><BR>
<!-- Message Driven Beans --><BR> =
; <message-driven>org.javatx.mdb.SimpleMdb</message-driven&g=
t;<BR>
</enterprise-beans><BR>
<BR>
To me it looks like the ejbdoclet does not find my source file.<BR>
What do you think guys!<BR>
<BR>
Any comment is welcome!!<BR>
I'm really stuck.<BR>
<BR>
Best regards<BR>
Fredrik<BR>
<BR>
<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==--