On Wed, 2004-04-28 at 02:55, Leandro Melo wrote: > When i started my night developoing today, i decided > to create a CMP named CompanyPhone. So, i did it the > same way i've done for the other cmps i have in may > app. > Then, after added it to module, i went to generate > classes and got the following error message. > > [ant] BUILD FAILED: > file:C:/eclipse/workspace/PartyPlace/PartyEJB/META-INF/xdoclet.xml:65: > End of entity not allowed; an end tag is missing. > > Then, after a few minutes of investigation, i realized > that when i was adding the beans to the module, > something was going on that erased part of xdoclet.xml > file. I have no idea why. > This thing keeps happenning, i add a just created bean > to the module and something erases part of my > xdoclet.xml file automatically. > I've tried removing the workspace, startin eclipse > over and over withoud the specific project, but when i > restore the project > from my backups the problems keeps happenning. > Could someone please help me???
You say this is happening when you click "Add to module"; what exactly does that do? (I dont use eclipse myself) Are you talking about running the script or something else? If it happens when you run the script, try running Ant from the command line and see if it still happens. If it's just some eclipse project management-type function, I suggest an eclipse support forum might be a better place to ask; if XDoclet isn't doing anything at the time it happens, it's not likely to be something we can fix :-) > What i have before adding the ejb to the module > ... > <ejbdoclet > destdir="${project.dir}/${ejbsrc.dir}" > mergedir="${ejb.dd.dir}" > excludedtags="@version,@author,@todo" > addedtags="@lomboz generated" > ejbspec="2.0" > force="${xdoclet.force}" > verbose="true" > > > <!-- PLEASE KEEP THE BEAN MARKER COMMENTS IF YOU > MODIFY THE FILE. > CONTENTS BETWEEN THE MARKERS ARE AUTO INSERTED > WITH EACH > BUILD. --> > <!-- BEANS START --> > <fileset dir="${project.dir}/src/" > defaultexcludes="yes"> > <include name="ltcmelo/cmp/AddressBean.java" /> > </fileset> > > <fileset dir="${project.dir}/src/" > defaultexcludes="yes"> > <include > name="ltcmelo/session/AvailableHousesInfoBean.java" /> > </fileset> ... Er, why not just use <fileset dir="${project.dir}/src/" defaultexcludes="yes"> <include name="**/*Bean.java" /> </fileset> rather than listing them all separately, or is the build script generated for you as you add files to the project? Andrew. ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user