--- Brian Topping <[EMAIL PROTECTED]> wrote: > [crossposted from xdoclet-plugins...] > > Hiyas, > > I'm finally getting X2 installed. Heh, I've written > a Generama plugin, but I > can't figure out how to get the > HibernateMappingPlugin operational! :/ > > Caused by: org.apache.commons.jelly.JellyException: > The node > "[EMAIL PROTECTED] [Element: > <x:doctype uri: jelly:xml > attributes: [EMAIL PROTECTED] > [Attribute: > name trim value "true"], > [EMAIL PROTECTED] [Attribute: > name systemId value > "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd"], > [EMAIL PROTECTED] > [Attribute: name name value "hibernate-mapping"], > [EMAIL PROTECTED] [Attribute: > name publicId value > "-//Hibernate/Hibernate Mapping DTD 2.0//EN"]]/>]" > could not be added to the > b > ranch "null" because: Cannot add another element to > this Document as it > already has a root element of: x:doctype File: > jar:file:C:\Documents and > Settings\topping\.maven\repository\xdoclet-plugins\jar > s\xdoclet-plugin-hibernate-1.0-SNAPSHOT.jar!/org/xdoclet/plugin/hibernate/Hib > ernateMappingPlugin.jelly At tag > <hibernate-mapping>: line: 10 column: 24 > at > org.apache.commons.jelly.impl.TagScript.handleException(TagScript.java:443) > at > org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:143) > at > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:134) > at > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:190) > at > org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:100) > at > org.apache.commons.jelly.impl.BeanTagScript.run(BeanTagScript.java:180) > at > org.apache.commons.jelly.JellyContext.runScript(JellyContext.java:474) > at > org.generama.JellyTemplateEngine.generate(JellyTemplateEngine.java:52) > > > Any ideas what I'm doing wrong? Here's my maven.xml > smidget: > > <goal name="dentaku:hibernatedoclet"> > <path id="xdoclet.task.classpath"> > <path > refid="maven.dependency.classpath"/> > </path> > <taskdef name="xdoclet" > classname="org.xdoclet.ant.XDocletTask" > classpathref="xdoclet.task.classpath"/> > <xdoclet> > <component > classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" > destdir="${maven.build.dir}/xdoclet"/> > </xdoclet> > </goal>
after second look to your problem, what jelly dependencies you are specifying while running it? ( maven certainly has got different ones.... ) I use those for runnning hibernate plugin: <dependency> <id>commons-jelly</id> <version>1.0-beta-4-SNAPSHOT</version> <url>http://jakarta.apache.org/jelly/</url> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly-tags-xml</artifactId> <version>20030211.142705</version> <url>http://jakarta.apache.org/jelly/</url> </dependency> <dependency> <groupId>commons-jelly</groupId> <artifactId>commons-jelly-tags-define</artifactId> <version>20030211.142932</version> </dependency> <dependency> <id>commons-jexl</id> <version>1.0-beta-2</version> <url>http://jakarta.apache.org/jexl/</url> </dependency> regards, ===== ----[ Konstantin Pribluda ( ko5tik ) ]---------------- Zu Verstärkung meines Teams suche ich ab Sofort einen Softwareentwickler[In] für die Festanstellung. Arbeitsort: Mainz Skills: Programmieren, Kenntnisse in OpenSource-Bereich ----[ http://www.pribluda.de ]------------------------ __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user