Hi regarding version and stack trace for xdoclet and struts validator.
I'm using ..
xdoclet-plugins-all-1.0.1
and the stack trace is below. I notice there is a 'file not found' and
'access is' exception in it. This directory is available and the
the non validator plugin is able to create a the struts-config.xml in
the destination directory. I've tried a variety of destination paths
included:
- ant variables with and without the final slash
- hard coded
(destdir="C:\\Java\\eclipse3\\eclipse\\workspace\\rapidStruts\\target\\xdoclet\\")
all with the same result..
Is it possible the xdoclet plugin is losing the end slash (/) as it is
always missing in the stack trace.
Richard
======================== Stack trace
===================================
BUILD FAILED
C:\Java\eclipse3\eclipse\workspace\rapidStruts\build.xml:103:
java.lang.RuntimeException: Couldn't generate content
at
org.nanocontainer.ant.PicoContainerTask.execute(PicoContainerTask.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:416)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: java.lang.RuntimeException: Couldn't generate content
at org.generama.Plugin.start(Plugin.java:215)
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.nanocontainer.ant.PicoContainerTask.execute(PicoContainerTask.java:95)
... 10 more
Caused by: java.io.FileNotFoundException:
C:\Java\eclipse3\eclipse\workspace\rapidStruts\target\xdoclet (Access is
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at
org.generama.defaults.FileWriterMapper.getOutcome(FileWriterMapper.java:25)
at org.generama.Plugin.start(Plugin.java:196)
... 14 more
--- Nested Exception ---
java.lang.RuntimeException: Couldn't generate content
at org.generama.Plugin.start(Plugin.java:215)
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.nanocontainer.ant.PicoContainerTask.execute(PicoContainerTask.java:95)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:416)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: java.io.FileNotFoundException:
C:\Java\eclipse3\eclipse\workspace\rapidStruts\target\xdoclet (Access is
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:176)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at
org.generama.defaults.FileWriterMapper.getOutcome(FileWriterMapper.java:25)
at org.generama.Plugin.start(Plugin.java:196)
... 14 more
Diogo Quintela (EF) wrote:
Hello Richard
Could you specify which versions you're working with, and if
possible, a stack trace?
Regards
Diogo
________________________________________
From: rdonovan [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 31 de Agosto de 2005 15:03
To: [email protected]
Subject: [xdoclet-user] ant struts validator xdoclet .. ga boom..
Hi, I've migrated from xdoctlet to xdoclet2 without too much trouble however
I have 1 issue I would appreciate anybodys input on.
Running xdoclet struts validator plugin
<component
classname="org.xdoclet.plugin.struts.StrutsValidationXMLPlugin"
destdir="${basedir}/target/xdoclet/" />
with ANT always produces:
BUILD FAILED
C:\Java\eclipse3\eclipse\workspace\rapidStruts\build.xml:103:
java.lang.RuntimeException: Couldn't generate content
I'm using Xdoclet2's test class SimpleValidatorFormWithNoFields.java
and I have tried jdk 1.4.1 and jdk 1.5 the StrutsConfigXMLPlugin works fine.
any ideas .. has anyone else seen this problem.
thanks, Richard
----------------------------------
Sunny Amsterdam