One other thought - Dim asked >is there any inheritance between the two Status classes? but I didn't see any answer from you...
If the pers.test.Status bean extends the pers.Status bean, then xdoclet does some automatic "component inheritance" that would cause it to use the generated superclasses in various places, in particular I believe get/setData use the superclass dataobject (which I think is what you were observing?) Andrew. A wise old hermit known only as Andrew Stevens <[EMAIL PROTECTED]> once said: > A wise old hermit known only as Dmitri Colebatch <[EMAIL PROTECTED]> > > once said: > > > > I am using in the mil.navy.pers.Status > > > @ejb:bean name="mil/navy/pers/Status" > > > type="CMP" > > > jndi-name="ejb/mil/navy/pers/Status" > > > > > > in the mil.navy.pers.Status > > > @ejb:bean name="mil/navy/pers/test/Status" > > > type="CMP" > > > jndi-name="ejb/mil/navy/pers/test/Status" > > What imports do you have in the two class? If you import both > mil.navy.pers.* and mil.navy.pers.test.Status (or .*) in the > test/Status EJB, then its possible that at the time it generates stuff > for it, the pers.Status has been generated and so is the only Status > class it can see (hence assumes all the references to 'Status' are to > that one). NB I'm clutching at straws a bit, since if that were the > case I'd still have expected the compiler to complain about the > ambiguity later. > > How do you have the project organised i.e. are you generating stuff > into the same source tree as the EJB files or somewhere else? What's > in the project's class/source paths when it does the generation and > javac? > > > Andrew. > > > bugger.... thought we might have found it (o: > > > > ok... if there's any chance you can post a bug, with a simple, but > > complete example... that'd be great... > > > > bear in mind though current cvs is under dramatic changes atm, so if > > it is indeed a bug, its unlikely that it'll be fixed > > immediately... > > > > cheers > > dim > > > > > > > > > > > >From: "Dmitri Colebatch" <[EMAIL PROTECTED]> > > > >To: "John Fleenor" <[EMAIL PROTECTED]> > > > >CC: "Xdoclet-User@Lists. Sourceforge. Net" > > > ><[EMAIL PROTECTED]> > > > >Subject: Re: [Xdoclet-user] Name space problems > > > >Date: Tue, 19 Mar 2002 12:13:25 +1100 > > > > > > > >[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 _______________________________________________ Xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
