Hey I didn't know about that page! Probably someone could write an updated *tutor* on using xdoclet and submit it to both xdoclet and jboss.
Ara. > -----Original Message----- > From: Patrick Peralta [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 05, 2001 6:22 PM > To: 'Dmitri Colebatch'; '[EMAIL PROTECTED]' > Cc: [EMAIL PROTECTED] > Subject: RE: [Ejbdoclet-user] newbie xdoclet questions > > Many thanks goes to Dmitri and Ara for pointing out that my bean needed to > implement javax.ejb.EntityBean. I suppose the culprit can be found in the > JBoss documentation (http://www.jboss.org/documentation/HTML/ch10s29.html) > which is for EJBDoclet and not XDoclet. I don't know if they exist > already > (I haven't found any) but I suppose example projects using XDoclet would > be > really nice to go along with the documentation. Most of the documentation > consists of tag and @ usages (which is actually quite extensive - and very > good) instead of user guides and complete examples. > > As far as the XDoclet list, I will be glad to join. However this page > (http://xdoclet.sourceforge.net/docs/resources.html) that is announcing > the > xdoclet mailing list actually takes you to the ejbdoclet-user list....so > whoever has access might want to update that link. ;) > > Once again, thanks for your help! > Patrick > > -----Original Message----- > From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 04, 2001 6:45 PM > To: Patrick Peralta; [EMAIL PROTECTED] > Subject: RE: [Ejbdoclet-user] newbie xdoclet questions > > > Hi, > > (quick grumble about sourceforge's refusal to allow reply to list) > > > Hello list, > friendly suggestion that you use the XDoclet list, this is the ejbdoclet > list, which I dont think there are too many subscribers left on (o: > > > The first question I have is about the log4j configuration. I get the > > following message while running ant: > > > > ---------------------------------------------------------------------- > > [ejbdoclet] Generating Javadoc > > [ejbdoclet] Javadoc execution > > [ejbdoclet] Loading source files for package ast.todo.ejb.todo... > > [ejbdoclet] Constructing Javadoc information... > > [ejbdoclet] log4j:ERROR No appenders could be found for category > > (xdoclet.SubTask.merge). > > [ejbdoclet] log4j:ERROR Please initialize the log4j system properly. > > [ejbdoclet] Create ejb-jar.xml > > [ejbdoclet] Create jboss.xml > > [ejbdoclet] Create jaws.xml > > ---------------------------------------------------------------------- > > > > ...and I tried running ant with the option > > -Dlog4j.configuration=log4j.properties with the following properties > file: > ok... I'm not a log4j config expert, but... inside xdoclet.jar there is a > log4j.properties file, which I'm guessing might be being used...? but > like > I said, I'm no expert there. Might be worth trying to change that one > instead (emacs does a nice job of making this easy as pie (o: > > > public abstract class ToDoBean { > > ok, as of XDoclet 1.0, your ejbs need to implement the interface > themselves. So in this case you'll need to put "implements EntityBean" on > the end of that line > > > > > /** > > * Create todo item > > * > > */ > from memory you need a @ejb:create-method tag there... > > > /** > > * Id of this item. > > * > > * > > * @ejb:pk-field > > * @ejb:persistent-field > > * @ejb:remote-method > > * > > */ > @ejb:remote-method has been replaced with @ejb:interface-method in XDoclet > to make it EJB2.0 compatable > > > /** > > * Id of this todo item. > > */ > do you intend this to be a remote method? If so, needs a > @ejb:interface-method tag > > > I would greatly appreciate any suggestions or pointers that would help > me > > with the two problems I'm having. > hope the above helps. I'd also spend some time reading the docs... I > spent > almost a full week (well, a full week of nights) improving them so that > they > are much clearer than they were in ejbdoclet, there is a page on migrating > from ejbdoclet, which would be a good starting point IMHO. They should be > in your distribution, they're also online at > http://xdoclet.sourceforge.net/docs > > cheers > dim _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
