Didn't realize yet if you can read my messages that fail signature... 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 > Diogo Quintela (EF) > Sent: terça-feira, 6 de Setembro de 2005 17:15 > To: [EMAIL PROTECTED]; xdoclet-plugins- > [EMAIL PROTECTED] > Subject: RE: [xdoclet-plugins-interest] SAXException in Hibernate plugin > > >From this > org.xml.sax.SAXNotRecognizedException: Feature: > http://apache.org/xml/features/validation/schema > at > org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:219) > at org.dom4j.io.SAXReader.setFeature(SAXReader.java:218) > at > org.generama.defaults.XMLOutputValidator.validate(XMLOutputValidator.java: > 59 > ) > > You seem to been using crimson has your XML parser. > > http://www.google.com/search?q=crimson+versus+xerces > .. > http://archives.java.sun.com/cgi-bin/wa?A2=ind0201&L=xml- > interest&F=&S=&P=26 > 7 > > > --- CUTTED --- > > I heard that IBM donated xerces to apache and Sun did the same with > > crimson. Which one is better? Why? > > Crimson seems to be faster, but I saw some postings on groups.google.com > about issues with the SAX2 implementation. Also in contrary to xerces, > crimson doesn't support schemas at all. > > It seems crimson is no longer actively maintained; so if you have any > problems with it, you're probably better off with xerces. > --- CUTTED --- > > >From your logs there isn't any crimson....jar in the classpath. > Please check JDK\jre\lib\ext if it's there. > > Humm... I found it. It included with JDK1.4 (in rt.jar). Maybe it's the > default parser if another one is not included in classpath (for example > xerces). > > OK, another approach, has we need to inject Xerces into classpath to allow > it's registration has default parser.... > > Try > a) Dump xerces{impl}.jar into JDK\jre\lib\ext (avoid this for now..) > > b) From maven.plugin, > > <goal name="xdoclet2:init"> > <path id="xdoclet.task.classpath"> > <ant:pathelement location="${maven.build.dir}"/> > <ant:pathelement location="${pom.build.sourceDirectory}"/> > <ant:pathelement path="${plugin.dependencyClasspath}"/> > <j:forEach var="lib" items="${pom.artifacts}"> > <j:set var="dep" value="${lib.dependency}"/> > <j:if test="${dep.getProperty('xdoclet.dependency') == > 'true'}"> > <ant:pathelement location="${lib.path}"/> > </j:if> > </j:forEach> > </path> > </goal> > > Try to set in your project.xml > <dependency> > <id>xerces</id> > <version>2.4.0</version> > <properties> > <dist.bundle>true</dist.bundle> > <xdoclet.dependency>true</xdoclet.dependency> > </properties> > </dependency> > > If this works, we need to set a way in our project to force this kind of > injections.. (maybe with the same hack). > > 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 > ________________________________________ > From: Anatol Pomozov [mailto:[EMAIL PROTECTED] > Sent: terça-feira, 6 de Setembro de 2005 16:22 > To: Diogo Quintela (EF) > Subject: Re: [xdoclet-plugins-interest] SAXException in Hibernate plugin > > Hi, Diogo. > > I have run maven with -X flag and share logs in internet. Could you please > look at it. I really have no clue why this exception happens. > > http://...../log.zip > > On 9/6/05, Diogo Quintela (EF) < [EMAIL PROTECTED]> wrote: > Humm Could maven classpath be overriding xerces ? > Do we need to update dom4j also ?? .. > Try to use maven X to see if it gives any clue. > > 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 > ________________________________________ > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Anatol Pomozov > Sent: terça-feira, 6 de Setembro de 2005 16:03 > To: [email protected] > Subject: Re: [xdoclet-plugins-interest] SAXException in Hibernate plugin > > Hi, Diogo. > > Do you mean add to xdoclet-plugins\maven-xdoclet2-plugin\project.xml file? > > I have add there but it does not help... > On 9/6/05, Diogo Quintela (EF) < [EMAIL PROTECTED]> wrote: > Humm That's the xerces dependency missing. I forgot to include it. > > Anatol, please add into main project.xml and retry. > > <dependency> > <id>xerces</id> > <version>2.4.0</version> > <properties> > <dist.bundle>true</dist.bundle> > </properties> > </dependency> > > > > 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 > ________________________________________ > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Anatol Pomozov > Sent: terça-feira, 6 de Setembro de 2005 15:48 > To: [email protected] > Subject: [xdoclet-plugins-interest] SAXException in Hibernate plugin > > Hi, all. > > I just build xdolcet 1.0.3-SNAPSHOT from CVS and try to run Hibernate > plugin > on my project. > > I got following error. It comes from Generama and I believe die to latest > changes. > > Could you help me to solve it?? > > > [xdoclet] * Generate mapping for 'MyEntity' entity > SAXException > org.xml.sax.SAXNotRecognizedException: Feature: > http://apache.org/xml/features/validation/schema > at > org.apache.crimson.parser.XMLReaderImpl.setFeature(XMLReaderImpl.java:219) > at org.dom4j.io.SAXReader.setFeature(SAXReader.java:218) > at > org.generama.defaults.XMLOutputValidator.validate(XMLOutputValidator.java > :59 > ) > at org.generama.Plugin.start(Plugin.java:189) > at > org.picocontainer.defaults.DefaultPicoContainer.start(DefaultPicoContainer > .j > ava:349) > at > org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart > (Lifecyc > leContainerBuilder.java:52) > at > org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer( > Li > fecycleContainerBuilder.java:45) > at > org.nanocontainer.ant.PicoContainerTask.execute( > PicoContainerTask.java:95) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:195) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) > at > org.apache.commons.jelly.tags.core.WhileTag.doTag(WhileTag.java :62) > at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > at > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( > MavenGoalTag.java: > 78) > at > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performActi > on > (MavenGoalTag.java:109) > at org.apache.maven.werkz.Goal.fire(Goal.java:656) > at org.apache.maven.werkz.Goal.attain (Goal.java:592) > at org.apache.maven.werkz.Goal.attainPrecursors(Goal.java:505) > at org.apache.maven.werkz.Goal.attain(Goal.java:590) > at > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:693) > at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263) > at org.apache.maven.cli.App.doMain(App.java:511) > at org.apache.maven.cli.App.main(App.java:1258) > at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39 > ) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > pl > .java:25) > at java.lang.reflect.Method.invoke (Method.java:324) > at com.werken.forehead.Forehead.run(Forehead.java:551) > at com.werken.forehead.Forehead.main(Forehead.java:581) > > -- > anatol > > > > -- > anatol > > > > > > -- > anatol ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ xdoclet-plugins-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest
