Hello!I started all over with this 
example:http://www.onjava.com/pub/a/onjava/2002/01/30/xdoclet.html?page=2I 
needed to tveak it a bit. By using a target like:  <!-- Run EJBDoclet -->  
<target name="ejbdoclet" depends="prepare">      <taskdef name="ejbdoclet"      
    classname="xdoclet.modules.ejb.EjbDocletTask"          
classpathref="project.class.path"      />      <ejbdoclet        
destdir="${generated.java.dir}"        excludedtags="@version,@author"        
ejbspec="2.0">        <fileset dir="${java.dir}">            <include 
name="**/*.java" />        </fileset>        <remoteinterface/>        
<homeinterface/>        <deploymentdescriptor 
destdir="${build.dir}/ejb/META-INF"/>        <jboss version="2.4" 
xmlencoding="UTF-8" destdir="${build.dir}/ejb/META-INF"/>        <weblogic 
xmlencoding="UTF-8" destdir="${build.dir}/ejb/META-INF" validatexml="true"/>    
    <webSphere destdir="${build.dir}/ejb/META-INF" />        <orion 
destdir="${build.dir}/ejb/META-INF" />      </ejbdoclet>  </target>I manage to 
genrate the ejb-jar.xml and weblogic-ejb-jar.xmlBest regardsFredrik> Date: Sun, 
30 Mar 2008 05:15:08 -0700> From: [EMAIL PROTECTED]> To: 
xdoclet-user@lists.sourceforge.net> Subject: Re: [Xdoclet-user] What might be 
wrong with this ant-task (ejbdoclet)??> > It looks that XDoclet did not 
recognized your sources> being EJBs. This can happen, if you forget to> 
inlcude> javax.ejb.* classes on xdoclet classpath. > > If those classes are not 
available, it's impossible> to tell what exactly is ejb - thus everything gets> 
ignored. > > > I would also drop ant itself from task classpath > ( IIRC those 
classes are available in any case ) > > > regards,> --- Fredrik Andersson 
<[EMAIL PROTECTED]>> wrote:> > > > > Hello!> > > > I try to use Xdoclet but I 
can not make it to work.> > > > I try to use it for this example code:> > 
http://dev2dev.bea.com/lpt/a/477> > > > My ejbdoclet tag looks like:> > > > 
<target name="ejbdoclet" depends="prepare">> > <taskdef name="ejbdoclet"> > 
classname="xdoclet.modules.ejb.EjbDocletTask"> >> 
classpath="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-module-1.2.3.jar">
 > />> > > > <ejbdoclet> > destdir="gen-src/java"> > 
excludedtags="@version,@author"> > ejbspec="2.0"> > verbose="true"> > 
force="true"> > mergeDir="xdoclet_merge">> > <!--<fileset dir="./src">-->> > 
<fileset> > dir="C:/Fredrik/Eclipse_workspace/spring_mdb/src">> > <include 
name="**/*.java" />> > </fileset>> > <deploymentdescriptor 
destdir="build/ejb/META-INF"/>> > <weblogic xmlencoding="UTF-8"> > 
destdir="build/ejb/META-INF" validatexml="true"/>> > </ejbdoclet>> > > > 
</target>> > > > My file structure looks like:> > build.xml> > src (all code 
under pack org/javatx/mdb)> > xdoclet_merg> > > > My first attempt without 
merge gave me an> > ejb-jar.xml:> > <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>> > > > So I added xdoclet_merge with:> > 
message-driven-beans.xml > > containing this line:> >> 
<message-driven>org.javatx.mdb.SimpleMdb</message-driven>> > > > 
weblogic-enterprise-beans.xml> > containing this line:> >> 
<weblogic-enterprise-bean>org.javatx.mdb.SimpleMdb</weblogic-enterprise-bean>> 
> > > ... even though> > 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 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 --> > >> 
<message-driven>org.javatx.mdb.SimpleMdb</message-driven>> > 
</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> > > > > >> 
_________________________________________________________________> > Spara, 
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 about anything Open Source.> >> 
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace>> 
_______________________________________________> > xdoclet-user mailing list> > 
xdoclet-user@lists.sourceforge.net> >> 
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 friend, newshound, and > know-it-all with Yahoo! Mobile. Try it 
now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ> > 
-------------------------------------------------------------------------> 
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> 
_______________________________________________> xdoclet-user mailing list> 
xdoclet-user@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
_________________________________________________________________
Mörkt och kallt? Kanske Barcelona?
http://search.live.com/results.aspx?q=Barcelona+reseguide&form=QBRE
-------------------------------------------------------------------------
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
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to