You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by "Glenn A. McAllister" <gl...@somanetworks.com> on 2002/03/28 21:45:48 UTC

[maven] java.lang.reflect.InvocationTargetException when running maven:docs

Vitals: Ant 1.4.1 with optional.jar downloaded from Jakarta
        Junit 3.7 in $ANT_HOME/lib
        Xalan 2.3.1 in $ANT_HOME/lib (removed crimson)
        Latest Maven CVS as of Thurs. Mar 28 - afternoon.

I can get maven to bootstrap and install reasonably well
(./build-bootstrap.sh followed by "ant maven:install-jar" and renaming the
maven-1.0-b2-dev.jar to maven.jar) but when I run "ant maven:docs" to
generate the Maven documentation I eventually get:

<snip/>

junit-xml:
     [dvsl] Loading stylesheet 
/export/home/glenn/maven/stylesheets/junit.dvsl
     [dvsl]  [error] ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
     [dvsl] Processing 
/export/home/glenn/jakarta/jakarta-turbine-maven/test-reports/TESTS-TestSuites.xml 
to 
/export/home/glenn/jakarta/jakarta-turbine-maven/target/generated-xdocs/junit-report.xml

cvs-change-log:
[change-log] Error in class org.apache.maven.ChangeLog

BUILD FAILED

/export/home/glenn/maven/build-docs.xml:155: 
java.lang.reflect.InvocationTargetException


Unfortunately, no stack trace.  Any suggestions?

Glenn McAllister
SOMA Networks, Inc.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [maven] java.lang.reflect.InvocationTargetException when running maven:docs

Posted by "Glenn A. McAllister" <gl...@somanetworks.com>.
On 28 Mar 2002, Jason van Zyl wrote:

> On Thu, 2002-03-28 at 17:16, Glenn A. McAllister wrote:
> > On 28 Mar 2002, Jason van Zyl wrote:
> > 
> > > I will update the installers right now. Unless you built from CVS there
> > > will be a problem. Did you use an installer or build from CVS?
> > 
> > I built from CVS.  Seems my ssh key is still on icarus so I didn't have 
> > to do the rather long winded -d :pserver:etc. anoncvs stuff. :)
> 
> Cool, I see that Pete got you sorted out :-)

Sort of. :)

I now know the exec is causing the error.  However, why is it failing? 
There really isn't enough information coming back from the cvs command.  
Time to start digging... :)

Glenn McAllister
SOMA Networks, Inc.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [maven] java.lang.reflect.InvocationTargetException when running maven:docs

Posted by Jason van Zyl <jv...@zenplex.com>.
On Thu, 2002-03-28 at 17:16, Glenn A. McAllister wrote:
> On 28 Mar 2002, Jason van Zyl wrote:
> 
> > I will update the installers right now. Unless you built from CVS there
> > will be a problem. Did you use an installer or build from CVS?
> 
> I built from CVS.  Seems my ssh key is still on icarus so I didn't have 
> to do the rather long winded -d :pserver:etc. anoncvs stuff. :)

Cool, I see that Pete got you sorted out :-)
 
> Glenn McAllister
> SOMA Networks, Inc.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [maven] java.lang.reflect.InvocationTargetException when running maven:docs

Posted by "Glenn A. McAllister" <gl...@somanetworks.com>.
On 28 Mar 2002, Jason van Zyl wrote:

> I will update the installers right now. Unless you built from CVS there
> will be a problem. Did you use an installer or build from CVS?

I built from CVS.  Seems my ssh key is still on icarus so I didn't have 
to do the rather long winded -d :pserver:etc. anoncvs stuff. :)

Glenn McAllister
SOMA Networks, Inc.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [maven] java.lang.reflect.InvocationTargetException when running maven:docs

Posted by Jason van Zyl <jv...@zenplex.com>.
On Thu, 2002-03-28 at 15:45, Glenn A. McAllister wrote:
> 
> Vitals: Ant 1.4.1 with optional.jar downloaded from Jakarta
>         Junit 3.7 in $ANT_HOME/lib
>         Xalan 2.3.1 in $ANT_HOME/lib (removed crimson)
>         Latest Maven CVS as of Thurs. Mar 28 - afternoon.
> 
> I can get maven to bootstrap and install reasonably well
> (./build-bootstrap.sh followed by "ant maven:install-jar" and renaming the
> maven-1.0-b2-dev.jar to maven.jar) but when I run "ant maven:docs" to
> generate the Maven documentation I eventually get:
> 
> <snip/>
> 
> junit-xml:
>      [dvsl] Loading stylesheet 
> /export/home/glenn/maven/stylesheets/junit.dvsl
>      [dvsl]  [error] ResourceManager : unable to find resource 
> 'VM_global_library.vm' in any resource loader.
>      [dvsl] Processing 
> /export/home/glenn/jakarta/jakarta-turbine-maven/test-reports/TESTS-TestSuites.xml 
> to 
> /export/home/glenn/jakarta/jakarta-turbine-maven/target/generated-xdocs/junit-report.xml
> 
> cvs-change-log:
> [change-log] Error in class org.apache.maven.ChangeLog
> 
> BUILD FAILED
> 
> /export/home/glenn/maven/build-docs.xml:155: 
> java.lang.reflect.InvocationTargetException
> 
> 
> Unfortunately, no stack trace.  Any suggestions?

I will update the installers right now. Unless you built from CVS there
will be a problem. Did you use an installer or build from CVS?

 
> Glenn McAllister
> SOMA Networks, Inc.
> 
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
-- 
jvz.

Jason van Zyl
jvanzyl@apache.org

http://tambora.zenplex.org


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [maven] java.lang.reflect.InvocationTargetException when running maven:docs

Posted by "Glenn A. McAllister" <gl...@somanetworks.com>.
On Thu, 28 Mar 2002, Pete Kazmier wrote:

> On a side note, you no longer have to do all that "stuff" to build
> Maven.  Just type:
> 
> ant -f build-bootstrap.xml bootstrap
> 
> It'll take care of all the details for you.  The build documentation for
> Maven has been updated to reflect this recent change.

Sweet.  That worked very nicely, thanks.

> > junit-xml:
> >      [dvsl] Loading stylesheet 
> > /export/home/glenn/maven/stylesheets/junit.dvsl
> >      [dvsl]  [error] ResourceManager : unable to find resource 
> > 'VM_global_library.vm' in any resource loader.
> 
> Although it says "[error]", this is not really an error, in fact its
> normal.  I need to suppress this message from Velocity, but there is a
> little issue that is preventing me right now.  

No prob, I didn't think it was a blocker.

> 
> > cvs-change-log:
> > [change-log] Error in class org.apache.maven.ChangeLog
> > 
> > BUILD FAILED
> > 
> > /export/home/glenn/maven/build-docs.xml:155: 
> > java.lang.reflect.InvocationTargetException
> > 
> > Unfortunately, no stack trace.  Any suggestions?
> 
> How about the output of ant -debug?

doh. :( Sorry, I should have thought of that.

Here are the relavent parts of the -debug output:

<snip/>
Class org.apache.tools.ant.types.Commandline loaded from parent loader
Class org.apache.tools.ant.types.Commandline$Argument loaded from parent 
loader
Class org.apache.tools.ant.taskdefs.Execute loaded from parent loader
Execute:Java13CommandLauncher: cvs log "-d >=2002-03-23"
[change-log] Error in class org.apache.maven.ChangeLog

BUILD FAILED

/export/home/glenn/maven/build-docs.xml:155: 
java.lang.reflect.InvocationTargetException
	at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:101)
	at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.Project.executeTargets(Project.java:560)
	at org.apache.tools.ant.Main.runBuild(Main.java:454)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
java.lang.reflect.InvocationTargetException: java.lang.Exception: cvs: 
cannot execute
	at org.apache.maven.ChangeLog.doExecute(ChangeLog.java:259)
	at 
org.apache.maven.executor.ProjectExecutor.execute(ProjectExecutor.java:119)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:97)
	at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:266)
	at org.apache.tools.ant.Task.perform(Task.java:217)
	at org.apache.tools.ant.Target.execute(Target.java:184)
	at org.apache.tools.ant.Target.performTasks(Target.java:202)
	at org.apache.tools.ant.Project.executeTarget(Project.java:601)
	at org.apache.tools.ant.Project.executeTargets(Project.java:560)
	at org.apache.tools.ant.Main.runBuild(Main.java:454)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)

Looking at the source, it failed to execute the cvs command for some 
reason.  When I execute the cvs log command above from the command line 
in the jakarta-turbine-maven directory it produces LOTS of output.

Glenn McAllister
SOMA Networks, Inc.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [maven] java.lang.reflect.InvocationTargetException when running maven:docs

Posted by Pete Kazmier <pe...@kazmier.com>.
On Thu, Mar 28, 2002 at 03:45:48PM -0500, Glenn A. McAllister wrote:
> I can get maven to bootstrap and install reasonably well
> (./build-bootstrap.sh followed by "ant maven:install-jar" and renaming
> the maven-1.0-b2-dev.jar to maven.jar) 

On a side note, you no longer have to do all that "stuff" to build
Maven.  Just type:

ant -f build-bootstrap.xml bootstrap

It'll take care of all the details for you.  The build documentation for
Maven has been updated to reflect this recent change.

> junit-xml:
>      [dvsl] Loading stylesheet 
> /export/home/glenn/maven/stylesheets/junit.dvsl
>      [dvsl]  [error] ResourceManager : unable to find resource 
> 'VM_global_library.vm' in any resource loader.

Although it says "[error]", this is not really an error, in fact its
normal.  I need to suppress this message from Velocity, but there is a
little issue that is preventing me right now.  

> cvs-change-log:
> [change-log] Error in class org.apache.maven.ChangeLog
> 
> BUILD FAILED
> 
> /export/home/glenn/maven/build-docs.xml:155: 
> java.lang.reflect.InvocationTargetException
> 
> Unfortunately, no stack trace.  Any suggestions?

How about the output of ant -debug?

Thanks,
Pete

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>