Hi, I tracked down this problem to a problem initializing the
VelocityEngine, specifically it is this line that is raising the exception:

 InputStream inputStream = getClass()
                .getResourceAsStream('/' + DEFAULT_RUNTIME_PROPERTIES);
            
            configuration.load( inputStream );

where DEFAULT_RUNTIME_PROPERTIES =
"org/apache/velocity/runtime/defaults/velocity.properties"

I can create a simple project (one class and one test) and Maven
site:generate works fine.  However with a big project, I can't run that same
goal because the code above doesn't work.  

I'm still stuck, any advice?

-----Original Message-----
From: Steve Garcia
To: 'Maven Users List'
Sent: 12/13/2003 11:45 AM
Subject: Tasklist / vdoclet report exception

I'm running the site:generate goal on my project and my tasklist report
fails with the following exception (and relevant stack trace info):  Has
anyone seen this error before?  Does anyone know how I can fix it?

I'm able to do other things like compile, test, javadoc, etc.  I have
seen
site:generation work in the past on other projects I've used, but this
is
the largest one I've tried mavenizing.  I'm using Maven 1.0 rc1, and the
plugin version should be a part of the stack trace.

Thanks for your help.

    [echo] Generating the Task List...
xdoc:init:

maven-tasklist-plugin:report:
    [echo] Generating tasklist ...

BUILD FAILED
File...... file:/C:/Documents and
Settings/SGarcia/.maven/plugins/maven-vdoclet-pl
ugin-1.1-SNAPSHOT/
Element... vdoclet:vdocletBean
Line...... 21
Column.... 11
vdoclet.GeneratorException
com.werken.werkz.UnattainableGoalException: Unable to obtain goal [site]
--
file:/
C:/Documents and
Settings/SGarcia/.maven/plugins/maven-vdoclet-plugin-1.1-SNAPSHOT
/:21:11: <vdoclet:vdocletBean> null
        at com.werken.werkz.Goal.fire(Goal.java:646)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.Goal.attainPrecursors(Goal.java:488)
        at com.werken.werkz.Goal.attain(Goal.java:573)
[snip]
org.apache.commons.jelly.JellyTagException: file:/C:/Documents and
Settings/SGarci
a/.maven/plugins/maven-vdoclet-plugin-1.1-SNAPSHOT/:21:11:
<vdoclet:vdocletBean> n
ull
        at
org.apache.commons.jelly.impl.DynamicBeanTag.doTag(DynamicBeanTag.java:
243)
        at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:
145)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:125)
        at
org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
[snip]
Caused by: vdoclet.GeneratorException
        at vdoclet.Generator.initVelocityEngine(Generator.java:89)
        at vdoclet.Generator.<init>(Generator.java:71)
        at
org.apache.maven.vdoclet.VDocletBean.generate(VDocletBean.java:145)
        at
org.apache.maven.vdoclet.VDocletBean.execute(VDocletBean.java:103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[snip]
Caused by: java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:61)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
        at
org.apache.commons.collections.ExtendedProperties.load(Unknown
Source)
        at
org.apache.commons.collections.ExtendedProperties.load(Unknown
Source)
        at
org.apache.velocity.runtime.RuntimeInstance.setDefaultProperties(Runtim
eInstance.java:356)
        at
org.apache.velocity.runtime.RuntimeInstance.initializeProperties(Runtim
eInstance.java:481)
        at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:2
63)
        at
org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:4
99)
        at
org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:144)
        at vdoclet.Generator.initVelocityEngine(Generator.java:87)
        ... 59 more
Root cause
vdoclet.GeneratorException
        at vdoclet.Generator.initVelocityEngine(Generator.java:89)
        at vdoclet.Generator.<init>(Generator.java:71)
        at
org.apache.maven.vdoclet.VDocletBean.generate(VDocletBean.java:145)
        at
org.apache.maven.vdoclet.VDocletBean.execute(VDocletBean.java:103)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to