AFAICS you get normal javadoc warnings and everything works fine. It's
normal. Javadoc complains as usual. Ignore all those javadoc warnings.

Ara.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 1:42 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: AW: [Xdoclet-user] Create method with data object as
parameter
> 
> Hi,
> 
> I do exactly as you say and what I get is the following output after
> running
> ant.
> 
> c:\Programme\idea\bla>ant
> Buildfile: build.xml
> 
> init:
> 
> prepare:
> 
> ejbdoclet:
> [ejbdoclet] Generating Javadoc
> [ejbdoclet] Javadoc execution
> [ejbdoclet] Loading source file
> C:\Programme\idea\bla\src\test\ejb\PartnerEB.jav
> a...
> [ejbdoclet] Constructing Javadoc information...
> [ejbdoclet] C:\Programme\idea\bla\src\test\ejb\PartnerEB.java:9:
package
> test.vo
>  does not exist
> [ejbdoclet] import test.vo.*;
> [ejbdoclet] ^
> [ejbdoclet] C:\Programme\idea\bla\src\test\ejb\PartnerEB.java:88:
cannot
> resolve
>  symbol
> [ejbdoclet] symbol  : class PartnerEBVO
> [ejbdoclet] location: class test.ejb.PartnerEB
> [ejbdoclet]     public String ejbCreate(PartnerEBVO data) throws
> CreateException
> 
> [ejbdoclet]                             ^
> [ejbdoclet] Running <homeInterface/>
> [ejbdoclet] Running <localHomeInterface/>
> [ejbdoclet] Running <remoteInterface/>
> [ejbdoclet] Running <localInterface/>
> [ejbdoclet] Running <session/>
> [ejbdoclet] Running <dataobject/>
> [ejbdoclet] Running <entitycmp/>
> [ejbdoclet] Running <deploymentDescriptor/>
> [ejbdoclet] Running <jboss/>
> [ejbdoclet] Running <strutsForm/>
> [ejbdoclet] 2 warnings
> 
> compile-ejbs:
> 
> ejb-jar:
> 
> BUILD SUCCESSFUL
> 
> I include the following line @ejb:data-object  package="test.vo" in my
> java
> source file to have my created value/data object placed in package
> test.vo.
> In build.xml I tell ant to name value objects xVO by saying:
<dataobject
> pattern="{0}VO"/>. Indeed after running ant, I can see the generated
> dataobject in gen-src/test/vo and it's named PartnerEBVO.
> 
> To refer to it I import the package test.vo into my source class and
try
> to
> pass PartnerEBVO which will be in package test.vo after EJBDoclet
> generation
> as parameter for my ejbCreate method. Both things cause problems for
> EJBDoclet/javadoc, as you can see at the top, although I do run
ejbdoclet
> before compiling and although I included the generated src dir when
> compiling: <target name="compile-ejbs" depends="ejbdoclet"> and <javac
> srcdir="${java.dir};${generated.java.dir}".
> 
> Can you help me out?
> 
> Thanks :)
> 
> Regards,
> Bernie
> 
> -----Ursprungliche Nachricht-----
> Von: Ara Abrahamian [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 1. Februar 2002 10:45
> An: Meyer-Willner, Bernhard; [EMAIL PROTECTED]
> Betreff: RE: [Xdoclet-user] Create method with data object as
parameter
> 
> 
> Take a look at samples/script/build.xml:
> 
>    <target name="compile-ejbs" depends="ejbdoclet">
>       <!-- Compile EJBs -->
>       <javac srcdir="${java.dir};${generated.java.dir}"
>              destdir="${ejb.classes.dir}"
> 
>
includes="test/ejb/*.java,test/interfaces/*.java,test/struts/*.java,test
> /ejb/cmr/*.java,test/dao/*.java">
> 
>          <classpath refid="project.class.path" />
>       </javac>
>    </target>
> 
> The trick is depends="ejbdoclet", so code is generated before you
start
> compiling. The other trick is to add the generated stuff to the list
of
> sources used in compilation, which is done using:
> srcdir="${java.dir};${generated.java.dir}"
> 
> ${generated.java.dir} point to where the generated stuff is placed.
> 
> PS: I'll probably turn it into an FSQ entry :-)
> 
> Ara.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> > [EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED]
> > Sent: Friday, February 01, 2002 12:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Xdoclet-user] Create method with data object as parameter
> >
> > Hi,
> > I'm testing out Xdoclet at the moment and it works really great,
> however I
> > have trouble with the following: I want to pass a Xdoclet-generated
> data
> > object for my entity bean as the parameter for its ejbCreate method.
> > However, when I include it using the fully qualified name (it's the
> right
> > name, I can see the data object generated after running my ant build
> > script), the compiler gets angry, because it can't find the data
> object;
> > rightfully so in a way, because when compiling the source class it's
> not
> > there yet, because it's being generated by Xdoclet. In the samples I
> saw
> > some examples where such data object was passed to ejbCreate and it
> > worked.
> > Anyway, it would really help me a lot if someone could provide me
with
> an
> > example of doing what I want including a sample of his/her ejbCreate
> > method,
> > the Xdoclet tags and the relevant part of the ant build script.
> Thanks!!
> >
> > Bernhard Meyer-Willner
> >
> >
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to