Hi,

Still no go :(

I don't have anything special here:
$ ll /usr/local/jdk/jre/lib/ext/
-rw-r--r--  1 root root   8176 Nov 10 16:01 dnsns.jar
-rw-r--r--  1 root root 802394 Dec 14 00:28 localedata.jar
-r--r--r--  1 root root 153235 Nov 10 15:45 sunjce_provider.jar
-r--r--r--  1 root root 175811 Nov 10 15:45 sunpkcs11.jar

And I have only xerces-2.4.0.jar in my ant/lib dir now.

I'm still getting this error:
build.xml:431: org.generama.OutputValidationError:
   Line: 14 Column: 136
   Message: Attribute "lazy" must be declared for element type "one-to-one".


Changing XML parsers didn't help (xerces 2.4, 2.6.2, 2.7.1).

Does 1.0.2 version work for anyone?  Hibernate plugin, executed from Ant?
Any help would be appreciated (I'm stuck in coding :()

Thanks,
Otis


----- Original Message ----
From: Diogo Quintela (EF) <[EMAIL PROTECTED]>
To: [email protected]
Sent: Thu 15 Dec 2005 04:21:28 AM EST
Subject: RE: [xdoclet-plugins-interest] OutputValidationError, Hibernate, lazy 
attribute in one-to-one

That is a problem that exists running through ant (at least that what
happened to me).
Btw, I don't known how the loading is taking place, but at least in
jre/lib/ext it isn't enough do rename the jars (try to move them to another
place), letting there only xerces-2.4.0.jar

It has a new generama, but no changes whatsoever around there (xml related)
as I recall.
Btw, do you have anything laid in {jdk.home}\jre\lib\ext ?

Regards
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 17:00
> To: [email protected]
> Subject: Re: [xdoclet-plugins-interest] OutputValidationError, Hibernate,
> lazy attribute in one-to-one
> 
> Hi Diogo,
> 
> That didn't help.  In my ant/lib directory I have:
> 
> -rw-rw-r--  1 otis otis  895924 Nov 22 13:28 xerces-2.4.0.jar
> -rw-r--r--  1 otis otis 1010675 Dec 14 11:45 xercesImpl-2.6.2.jar-bak
> -rw-r--r--  1 otis otis 1203860 Dec 14 11:42 xercesImpl-2.7.1.jar-bak
> -rw-r--r--  1 otis otis  124724 Dec 14 11:45 xml-apis-2.6.2.jar-bak
> -rw-r--r--  1 otis otis  194205 Dec 14 11:42 xml-apis-2.7.1.jar-bak
> 
> 2.6.2 is what came with my ant 1.6.3 (it was named xercesImpl.jar, I
> renamed it)
> 2.7.1 is the latest Xerces that I tried (didn't help)
> 2.4.0 is what you suggested and what I tried, and that didn't help :(
> 
> Did using Xerces 2.4.0 Jar remove the problem for you?
> 
> My guess is this is a bug in that Generama package.... does the 1.0.3
> version that was jsut released have a newer version of that?
> 
> Thanks,
> Otis
> 
> ----- Original Message ----
> From: Diogo Quintela (EF) <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Wed 14 Dec 2005 05:25:09 AM EST
> Subject: RE: [xdoclet-plugins-interest] OutputValidationError, Hibernate,
> lazy attribute in one-to-one
> 
> 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
> 
> 
> 
> 
> 
> -------------------------------------------------------
> 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_idv37&alloc_id865&opk
> _______________________________________________
> xdoclet-plugins-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest





-------------------------------------------------------
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_idv37&alloc_id865&op=click
_______________________________________________
xdoclet-plugins-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to