cancel
Showing results for 
Search instead for 
Did you mean: 

ant -f continuous.xml distribute failed

nnay
Champ in-the-making
Champ in-the-making
When I build the full distribution from the SVN I get the following error :

BUILD FAILED
/home/yguilloux/Documents/Dev/Alfresco/HEAD/root/continuous.xml:270: Error while expanding /home/yguilloux/Documents/Dev/Alfresco/ALF-BINARIES/tomcat/apache-tomcat-5.5.25-virtserver-alfresco-1.1.zip
java.io.FileNotFoundException: /home/yguilloux/Documents/Dev/Alfresco/ALF-BINARIES/tomcat/apache-tomcat-5.5.25-virtserver-alfresco-1.1.zip (No such file or directory)

Any idea will be welcome Smiley Happy

Yann

Alfresco LABS 3.0E r13680 from SVN
Ubuntu Linux 8.10
Sun JDK 1.5
Tomcat 6.0 (for quick test only)
MySQL 5.0.67
5 REPLIES 5

alfrescouser
Champ in-the-making
Champ in-the-making
Hello friend,
I am also getting the problem while running ant -f continuous.xml distribute command through command line .

If u get the solution ,could you Please post that..

Thanks,
Madhura

oalan
Champ in-the-making
Champ in-the-making
I have problems like you on the command:

ant -f continuous.xml distribute

I have succesfully build the projects by running ant but when i try to run the above comment i get the following error,
I copied the part that fails the command:

compile:
    [javac] Compiling 113 source files to C:\Documents and Settings\user\Desktop
\Alfresco Last\HEAD\root\modules\sharepoint\amp\build\classes
    [javac]
    [javac]
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
    [javac]     at com.sun.tools.javac.tree.TreeMaker.Modifiers(TreeMaker.java:4
43)
    [javac]     at com.sun.tools.javac.tree.TreeMaker.Modifiers(TreeMaker.java:4
50)
    [javac]     at com.sun.tools.javac.parser.Parser.blockStatements(Parser.java
:1555)
    [javac]     at com.sun.tools.javac.parser.Parser.block(Parser.java:1462)
    [javac]     at com.sun.tools.javac.parser.Parser.block(Parser.java:1476)
    [javac]     at com.sun.tools.javac.parser.Parser.methodDeclaratorRest(Parser
.java:2532)
    [javac]     at com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclara
tion(Parser.java:2481)
    [javac]     at com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser
.java:2408)
    [javac]     at com.sun.tools.javac.parser.Parser.classDeclaration(Parser.jav
a:2253)
    [javac]     at com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDecla
ration(Parser.java:2191)
    [javac]     at com.sun.tools.javac.parser.Parser.typeDeclaration(Parser.java
:2180)
    [javac]     at com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java
:2126)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java
:509)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java
:550)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler
.java:801)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.ja
va:727)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:69)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)
    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac
13.java:56)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
    [javac]     at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)
    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)

BUILD FAILED
C:\Documents and Settings\user\Desktop\Alfresco Last\HEAD\root\continuous.xml:97
0: The following error occurred while executing this line:
C:\Documents and Settings\user\Desktop\Alfresco Last\HEAD\root\modules\sharepoin
t\amp\build.xml:37: Compile failed; see the compiler error output for details.

Total time: 7 minutes 8 seconds
C:\Documents and Settings\user\Desktop\Alfresco Last\HEAD\root>

It seems that there is a problem with the java heap space. I increased the heap space to 1024m but i am getting the same error again.

Is there anybody that solves that problem.

Thanks,
Oral

joksy
Champ in-the-making
Champ in-the-making
I have problems like you on the command:

ant -f continuous.xml distribute

I have succesfully build the projects by running ant but when i try to run the above comment i get the following error,
I copied the part that fails the command:

compile:
    [javac] Compiling 113 source files to C:\Documents and Settings\user\Desktop
\Alfresco Last\HEAD\root\modules\sharepoint\amp\build\classes
    [javac]
    [javac]
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
    [javac]     at com.sun.tools.javac.tree.TreeMaker.Modifiers(TreeMaker.java:4
43)
    [javac]     at com.sun.tools.javac.tree.TreeMaker.Modifiers(TreeMaker.java:4
50)
    [javac]     at com.sun.tools.javac.parser.Parser.blockStatements(Parser.java
:1555)
    [javac]     at com.sun.tools.javac.parser.Parser.block(Parser.java:1462)
    [javac]     at com.sun.tools.javac.parser.Parser.block(Parser.java:1476)
    [javac]     at com.sun.tools.javac.parser.Parser.methodDeclaratorRest(Parser
.java:2532)
    [javac]     at com.sun.tools.javac.parser.Parser.classOrInterfaceBodyDeclara
tion(Parser.java:2481)
    [javac]     at com.sun.tools.javac.parser.Parser.classOrInterfaceBody(Parser
.java:2408)
    [javac]     at com.sun.tools.javac.parser.Parser.classDeclaration(Parser.jav
a:2253)
    [javac]     at com.sun.tools.javac.parser.Parser.classOrInterfaceOrEnumDecla
ration(Parser.java:2191)
    [javac]     at com.sun.tools.javac.parser.Parser.typeDeclaration(Parser.java
:2180)
    [javac]     at com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java
:2126)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java
:509)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java
:550)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler
.java:801)
    [javac]     at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.ja
va:727)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:353)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:279)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:270)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:69)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)
    [javac]     at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac
13.java:56)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
    [javac]     at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
    [javac]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:288)
    [javac]     at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
    [javac]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:597)
    [javac]     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchU
tils.java:106)

BUILD FAILED
C:\Documents and Settings\user\Desktop\Alfresco Last\HEAD\root\continuous.xml:97
0: The following error occurred while executing this line:
C:\Documents and Settings\user\Desktop\Alfresco Last\HEAD\root\modules\sharepoin
t\amp\build.xml:37: Compile failed; see the compiler error output for details.

Total time: 7 minutes 8 seconds
C:\Documents and Settings\user\Desktop\Alfresco Last\HEAD\root>

It seems that there is a problem with the java heap space. I increased the heap space to 1024m but i am getting the same error again.

Is there anybody that solves that problem.

Thanks,
Oral

Hi one part of your problem is solvable by using the ANT_OPTS variable to increase the jvm memory through ant.

But also in my I have the problem of expanding argh

joksy
Champ in-the-making
Champ in-the-making
ant -f continuous.xml distribute-sdk

askant
Champ in-the-making
Champ in-the-making
Hello friend,
I am also getting the problem while running ant -f continuous.xml distribute command through command line .

If u get the solution ,could you Please post that..

Thanks,
Madhura

For the benefit of interested users, I did the following acitivities to solve the above issue:
1.) Download apache-tomcat-5.5.25.zip.
2.) Created ALF-BINARIES/tomcat folder
3.) unzip apache-tomcat-5.5.25.zip to a temp folder.
     This will create folder "apache-tomcat-5.5.25"
4.) rename this "apache-tomcat-5.5.25" folder to "apache-tomcat-5.5.25-virtserver-alfresco-1.1".
5.) create a zip file using the following command :
   
zip -r apache-tomcat-5.5.25-virtserver-alfresco-1.1.zip apache-tomcat-5.5.25-virtserver-alfresco-1.1
6.) move this new "apache-tomcat-5.5.25-virtserver-alfresco-1.1.zip" to ALF-BINARIES/tomcat folder.