You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Ken Perl <ke...@gmail.com> on 2005/12/22 02:33:05 UTC

console build error

Hi,

Can anyone give me some suggestion on the error?

+----------------------------------------
| Executing default Geronimo :: Console :: Portal Framework
| Memory: 38M/58M
+----------------------------------------
Attempting to download ant-1.6.5.jar.
912K downloaded

default:

build:end:

build:start:

default:
war:init:

war:war-resources:
    [copy] Copying 59 files to
/root/geronimo1.0/applications/console-framework/target/geronimo-console-framework
    [copy] Copying 1 file to
/root/geronimo1.0/applications/console-framework/target/geronimo-console-framework/WEB-INF

java:prepare-filesystem:

java:compile:
    [echo] Compiling to
/root/geronimo1.0/applications/console-framework/target/classes
    [echo] No java source files to compile.

java:jar-resources:

test:prepare-filesystem:

test:test-resources:

test:compile:
    [echo] No test source files to compile.

test:test:
    [echo] No tests to run.

war:webapp:
    [echo] Assembling webapp geronimo-console-framework

war:war:
    [echo] Building WAR geronimo-console-framework
    [jar] Building jar:
/root/geronimo1.0/applications/console-framework/target/geronimo-console-framework-1.0-SNAPSHOT.war

war:install:
preCompile:
    [echo] Pre-compiling JSPs from
/root/geronimo1.0/applications/console-framework/src/webapp to
/root/geronimo1.0/applications/console-framework/target/geronimo-console-framework/WEB-INF/work.
    [java] Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/util/FileUtils
    [java]      at org.apache.jasper.JspC.resolveFile(JspC.java:1354)
    [java]      at org.apache.jasper.JspC.setOutputDir(JspC.java:713)
    [java]      at org.apache.jasper.JspC.setArgs(JspC.java:257)
    [java]      at org.apache.jasper.JspC.main(JspC.java:227)

BUILD FAILED
File...... /root/.maven/cache/maven-multiproject-plugin-1.3.1/plugin.jelly
Element... maven:reactor
Line...... 217
Column.... 9
Unable to obtain goal [default] --
/root/geronimo1.0/applications/console-framework/maven.xml:32:115:
<ant:java> Java returned: 1


--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'

Re: console build error

Posted by Ken Perl <ke...@gmail.com>.
Thanks, Paul,  re-download and re-build is success.
Does the maven check the md5sum after a downloading?

On 12/23/05, Paul McMahan <pa...@gmail.com> wrote:
> Ken,  the error you are seeing is strange because I see where maven
> downloads the correct version of ant:
>
>
> >
> > +----------------------------------------
> > | Executing default Geronimo :: Console :: Portal Framework
> > | Memory: 38M/58M
> > +----------------------------------------
> > Attempting to download ant-1.6.5.jar.
> > 912K downloaded
>
>
>  But then fails to precompile the JSPs because one of the classes in that
> jar is not found:
>
> > war:install:
> > preCompile:
> >     [echo] Pre-compiling JSPs from
> >
> /root/geronimo1.0/applications/console-framework/src/webapp
> to
> >
> /root/geronimo1.0/applications/console-framework/target/geronimo-console-framework/WEB-INF/work.
> >     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/tools/ant/util/FileUtils
> >
>
>  I tried to recreate the error by removing ant-1.6.5.jar from my local maven
> repository but, as expected, maven downloaded the dependent jar and
> successfully compiled the JSPs again.   However, I noticed in doing so that
> the size of ant-1.6.5.jar I downloaded was 1009K instead of the size that
> you downloaded 912K.  So I suspect that you may have a corrupt version of
> ant-1.6.5.jar in your repository that you may want to redownload.
>
>  Best wishes,
>  Paul
>


--
perl -e 'print unpack(u,"62V5N\"FME;G\!E<FQ`9VUA:6PN8V]M\"\@``
")'

Re: console build error

Posted by Paul McMahan <pa...@gmail.com>.
Ken,  the error you are seeing is strange because I see where maven
downloads the correct version of ant:


> +----------------------------------------
> | Executing default Geronimo :: Console :: Portal Framework
> | Memory: 38M/58M
> +----------------------------------------
> Attempting to download ant-1.6.5.jar.
> 912K downloaded



But then fails to precompile the JSPs because one of the classes in that jar
is not found:

war:install:
> preCompile:
>     [echo] Pre-compiling JSPs from
> /root/geronimo1.0/applications/console-framework/src/webapp to
>
> /root/geronimo1.0/applications/console-framework/target/geronimo-console-framework/WEB-INF/work.
>     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/tools/ant/util/FileUtils
>

I tried to recreate the error by removing ant-1.6.5.jar from my local maven
repository but, as expected, maven downloaded the dependent jar and
successfully compiled the JSPs again.   However, I noticed in doing so that
the size of ant-1.6.5.jar I downloaded was 1009K instead of the size that
you downloaded 912K.  So I suspect that you may have a corrupt version of
ant-1.6.5.jar in your repository that you may want to redownload.

Best wishes,
Paul