XD2/Mvn2/ Web plugin gives errors when including more than 1filter in filters.xml
"Marco Mistroni" <[email protected]> Sat, 21 Apr 2007 22:25:04 +0100
| Newsgroups | gmane.comp.java.xdoclet-plugins |
|---|---|
| Message-ID | <[email protected]> |
hi all,
i am using mvn2 xd2 web plugin in my webapp
so far everything has worked fine, but today i tried to add one more filter
in my filters.xml (now i have 2 filters instead of 1)
and mvn2 xd2 plugin fails with following stacktrace
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: XDoclet plugin
failed: Exception occurred when running Jelly
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:475)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: XDoclet plugin
failed: Exception occurred when running Jelly
at org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:158)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: org.generama.GeneramaException: Exception occurred when running
Jelly
at org.generama.JellyTemplateEngine.generate(
JellyTemplateEngine.java:59)
at org.generama.Plugin.start(Plugin.java:278)
at org.picocontainer.defaults.DefaultPicoContainer.start(
DefaultPicoContainer.java:349)
at
org.nanocontainer.integrationkit.LifecycleContainerBuilder.autoStart(
LifecycleContainerBuilder.java:52)
at
org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(
LifecycleContainerBuilder.java:45)
at org.codehaus.xdoclet.XDocletMojo.execute(XDocletMojo.java:149)
... 18 more
Caused by: org.apache.commons.jelly.JellyTagException:
jar:file:/home/marco/.m2/repository/xdoclet-plugins/xdoclet-plugin-web/1.0.4-SNAPSHOT/xdoclet-
plugin-web-1.0.4-SNAPSHOT.jar!/org/xdoclet/plugin/web/WebPlugin.jelly:88:49:<g:merge>
could not import script
at org.generama.jelly.MergeTag.doTag(MergeTag.java:71)
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.IfTag.doTag(IfTag.java:42)
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.xml.ReplaceNamespaceTag.doTag(
ReplaceNamespaceTag.java:98)
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.xml.ElementTag.doTag(
ElementTag.java:154)
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.JellyTag.doTag(JellyTag.java
:45)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:247)
at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java
:704)
at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java
:668)
at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java
:590)
at org.generama.JellyTemplateEngine.generate(
JellyTemplateEngine.java:51)
... 23 more
Caused by: org.apache.commons.jelly.JellyException: null:-1:-1: <null> Could
not parse Jelly script
at org.apache.commons.jelly.JellyContext.compileScript(
JellyContext.java:547)
at org.apache.commons.jelly.JellyContext.runScript(JellyContext.java
:678)
at org.generama.jelly.MergeTag.doTag(MergeTag.java:62)
... 44 more
Caused by: org.xml.sax.SAXParseException: The markup in the document
following the root element must be well-formed.
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.jelly.parser.XMLParser.parse(XMLParser.java
:254)
at org.apache.commons.jelly.JellyContext.compileScript(
JellyContext.java:543)
... 46 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Sat Apr 21 22:21:05 BST 2007
[INFO] Final Memory: 7M/13M
[INFO] --------------------------------------------
FYI i am using the latest (i think) 2.0.5 of xd2 mvn2 plugin, the one htat
has the fix for taglib and servlet mappings...
anyone can help out?
thanx and regards
Marco
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest