Yesterday
Testing the version for releasing, i had the same problems when using ant
with hibernate plugin, even though i've filled the classpath with xerces.
Could you please try to substitute xercesImpl.jar that may be in you
{ant.home}\lib with xerces-2.4.0.jar ?
I known this is not a definite resolution, but it could be worth the try.

Diogo

-----------------------------------
Diogo Bacelar Quintela
EF - Tecnologias de Informação, Lda.
Av. António Serpa, 26 - 4º Dto.
1050-027 Lisboa, Portugal
Tel: (+351) 217 827 800
Fax: (+351) 217 827 830
Email: [EMAIL PROTECTED]
PGP: 0xF51A5AB9 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: quarta-feira, 14 de Dezembro de 2005 4:42
> To: [email protected]
> Subject: [xdoclet-plugins-interest] OutputValidationError, Hibernate, lazy
> attribute in one-to-one
> 
> Hello,
> 
>  After working around the CLASSPATH/Class Not Found excpetion issues
> mentioned in my last email, I hit the following puzzling situation:
> 
>    [xdoclet] Running org.xdoclet.plugin.hibernate.HibernateMappingPlugin
>    [xdoclet]   * Generate mapping for 'Account' entity
>    [xdoclet] File /...../etc/com/example/model/Account.hbm.xml did not
> pass validation:
>    [xdoclet]    Line: 14 Column: 136
>    [xdoclet]    Message: Attribute "lazy" must be declared for element
> type "one-to-one".
> 
>  BUILD FAILED
>  /...../build.xml:431: org.generama.OutputValidationError:
>     Line: 14 Column: 136
>     Message: Attribute "lazy" must be declared for element type "one-to-
> one".
> 
>  So I looked at the generated Account.hbm.xml file, line 14, column 136
> and found this:
> 
>      <one-to-one name="user" lazy="true" cascade="all" property-
> ref="account" constrained="false" .....
> 
>  Note that this one-to-one mapping DOES have lazy="true"!
> 
>  Or is the error message saying that the "lazy" attribude is not declared
> in the Hibernate mapping DTD (http://hibernate.sourceforge.net/hibernate-
> mapping-2.0.dtd)?
> 
>  This looks like a bug.  If you think I might be doing something wrong,
> please tell me, as I'm stuck on this one.
> 
>  This is how I'm invoking the HibernateMappingPlugin:
> 
>    <xdoclet>
>     <fileset dir="${src.dir}" includes="com/example/model/*.java"/>
>     <component
> classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin"
>         version="2.0" destDir="${etc.dir}" force="true"/>
>    </xdoclet>
> 
>  Thanks,
>  Otis
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> xdoclet-plugins-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to