Hi all,
I'm using andromda 3.0M3 with ant.
I've got 2 problems:
first:
I get the following exception for each entities during the export ant task:
net.sf.hibernate.MappingException: persistent class [be.ft.business.entities.address.Address] not found
I move the "export" dependence in hibernate/ejb/build.xml like that (to compile before to export):
<target name="compile" depends="xdoclet-ejb,xdoclet-hibernate">
<target name="jar" description="o Create the JAR bundles" depends="compile,export,-manifest">
It works. Is it correct?


second:
After fixed the first problem, I had an other exception when I deployed and try to create the database schema:
MBeanException: net.sf.hibernate.HibernateException: problem parsing configuration/hibernate.cfg.xml


It seems to copy the wrong hibernate.cfg.xml file. I made the following change in hibernate/db/build.xml:

<copy todir="${basedir}/target" file="${basedir}/src/xml/hibernate.cfg.xml" filtering="true" overwrite="true"/>

became

<copy todir="${basedir}/target" file="../ejb/target/conf/hibernate.cfg.xml" filtering="true" overwrite="true"/>

It works fine.
Is it all correct and  is there any better (or cleanest) way to do it?

Thanks in advance

Louis

_________________________________________________________________
Hotmail : bientôt 250 Mo de stockage ! http://www.imagine-msn.com/hotmail/fr-fr/




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Andromda-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to