[hadn't realise we slipped off the sf list]
> Is has the mil.navy.pers.StatusData. Which is fully qualified but the wrong
> fully qualified name, it should be mil.navy.pers.test.StatusBean.
is there any inheritance between the two Status classes?
I think the problem is coming because inside mil.navy.pers.Status, the
mil.navy.pers.StatusData is automatically available because
of the common package. so somehow when XDoclet is generating the setData, the data
object falls to the wrong bean.
can I ask one other thing.... both these bean's have different names dont they:
@ejb:bean name="Status"
if they both have the same name there, then that would likely be the cause of your
problem (now I say it :)
let me know if this sheds any light...
cheers
dim
>
>
> thanks for your help,
>
>
> >From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> >To: "John Fleenor" <[EMAIL PROTECTED]>
> >Subject: Re: [Xdoclet-user] Name space problems
> >Date: Tue, 19 Mar 2002 11:23:35 +1100
> >
> > > The mil.navy.pers.StatusBean and mil.navy.pers.test.StatusBean are ejb
> > > source files. In the mil.navy.pers.test.StatusBean I use fully
> >qualified
> > > names on the mil.navy.pers.test.StatusData getData() and
> > > setData(mil.navy.pers.test.StatusData data). When I run xdoclet it
> > > generates a mil.navy.pers.test.StatusCMP.java file. On the setData()
> >method
> > > the parameter is mil.navy.pers.StatusData, it should be
> > > mil.navy.pers.test.StatusData.
> >
> >Alright.... I think I know what you are saying...
> >
> >so in the generated source, does the setData method have the fully
> >qualified name, or is the error because the wrong Status is
> >imported?
> >
> >cheers
> >dim
> >
> > > I hope this is not too confusing.
> >
> >you're trying hard to make it so aren't you (o:
> >
> > >
> > > Thanks,
> > > John Fleenor
> > >
> > >
> > > >From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
> > > >To: "John Fleenor" <[EMAIL PROTECTED]>,
> > > ><[EMAIL PROTECTED]>
> > > >Subject: Re: [Xdoclet-user] Name space problems
> > > >Date: Tue, 19 Mar 2002 10:17:51 +1100
> > > >
> > > > > Hello, When I create a class with the same name in diffrent packages
> > > > > forexample:
> > > > > mil.navy.pers.Status
> > > > > mil.navy.pers.test.Status
> > > >
> > > >Are the Status classes just normal classes, or EJB classes?
> > > >
> > > > > I get a compile error, class needs to be declared abstract, because
> >the
> > > > > setData() method in mil.navy.pers.test.StatusCMP is trying to pass a
> > > > > mil.navy.pers.Status.
> > > >
> > > >In generated files, XDoclet puts the imports that are in the source
> >(EJB)
> > > >file. so ensure that you have the correct status class
> > > >imported there, and it should (tm) behave (o:
> > > >
> > > >Could you explan a little more what the situation is - what are EJBs,
> >what
> > > >are other classes, and how they are intended to fit
> > > >together.
> > > >
> > > >cheers
> > > >dim
> > > >
> > >
> > >
> > >
> > >
> > > _________________________________________________________________
> > > MSN Photos is the easiest way to share and print your photos:
> > > http://photos.msn.com/support/worldwide.aspx
> > >
> >
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user