cancel
Showing results for 
Search instead for 
Did you mean: 

Build Fails

sunil_softweb
Champ in-the-making
Champ in-the-making
Hi,

I am trying to build alfresco on tomcat after downloading the source from SVN. The command that I give is as below :

ant build-tomcat

But I get an error as shown below :

compile-slingshot:
    [mkdir] Created dir: D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\classes
    [javac] Compiling 89 source files to D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\classes
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning
     [copy] Copied 1 empty directory to 1 empty directory under D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\sling
shot\build\classes

package-slingshot-jar:
    [mkdir] Created dir: D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\dist
      [jar] Building jar: D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\dist\alfresco-share-4.2.b.j
ar

assemble-slingshot-war:
    [mkdir] Created dir: D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble
     [copy] Copying 1219 files to D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble
     [copy] Copying 612 files to D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble
     [copy] Copying 3474 files to D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble\WEB-INF\cl
asses
     [copy] Copied 111 empty directories to 2 empty directories under D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects
\slingshot\build\assemble\WEB-INF\classes
     [copy] Copying 68 files to D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble\WEB-INF\clas
ses
     [copy] Copying 72 files to D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble\WEB-INF\lib
    [unzip] Expanding: D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\3rd-party\distro\yui-2.9.0-patched.zip into D:
\Sunil\AlfresscoWorkspace\Alfresco\root\projects\slingshot\build\assemble
     [java] Working directory ignored when same JVM is used.
     [java] Installing AMP 'D:\Sunil\AlfresscoWorkspace\Alfresco\root\modules\auto-apply-amps-share\alfresco-mm-share-0.
1.5.9.amp' into WAR 'D:\Sunil\AlfresscoWorkspace\Alfresco\root/projects/slingshot/build/assemble'
     [java] 09260000 Unabled to read a manifest for the war file: D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects\sli
ngshot\build\assemble

BUILD FAILED
D:\Sunil\AlfresscoWorkspace\Alfresco\root\projects.xml:1424: The following error occurred while executing this line:
D:\Sunil\AlfresscoWorkspace\Alfresco\root\macros.xml:256: Java returned: 1

Total time: 9 minutes 59 seconds

Can someone please guide as to what may be the issue over here?

I am trying to build the 4.2.b version of Alfresco.


Regards
Sunil
8 REPLIES 8

mrogers
Star Contributor
Star Contributor
Just checking.   But the first "gotcha" is to use Java 7.

sunil_softweb
Champ in-the-making
Champ in-the-making
Hi,

I am using Java 7. This is what I got when run the command java -version on command prompt.

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

I hope this is alright.


Regards
Sunil

mrogers
Star Contributor
Star Contributor
I built HEAD successfully.   And of course the tagged release compiles.

sunil_softweb
Champ in-the-making
Champ in-the-making
Hi,

Thanks for replying.

I want to know if I am doing anything wrong. I don't get what the error means to say. Am I missing any configuration?


Regards
Sunil

sunil_softweb
Champ in-the-making
Champ in-the-making
Hi,

Is there any log file generated at the time of build so that I can have a look at the detailed exception?


Regards
Sunil

alejandrogarcia
Champ in-the-making
Champ in-the-making
Hi guys,

I'm sorry for reviving this post, but I'm facing exactly the same problem. It's funny because I successfully built some days ago and now suddenly it is failing:

package-webclient-war:
     [copy] Copying 72 files to C:\Development\Workspaces\Alfresco\alfres
co-source\projects\web-client\build\assemble\WEB-INF\classes\alfresco\messages
     [copy] Copying 1 file to C:\Development\Workspaces\Alfresco\alfresco
-source\projects\web-client\build\assemble\WEB-INF\classes\alfresco\model
     [copy] Copying 4 files to C:\Development\Workspaces\Alfresco\alfresc
o-source\projects\web-client\build\assemble\WEB-INF\classes\alfresco\workflow
      [war] Building war: C:\Development\Workspaces\Alfresco\alfresco-sou
rce\projects\web-client\build\dist\alfresco.war
     [java] Installing AMP 'C:\Development\Workspaces\Alfresco\alfresco-s
ource\modules\auto-apply-amps-repo\alfresco-mm-repo-0.1.5.9.amp' into WAR 'C:\De
velopment\Workspaces\Alfresco\alfresco-source/projects/web-client/build/d
ist/alfresco.war'
     [java] Adding files relating to version '0.1.5.9' of module 'alfresco-mm-re
po'
     [java]    - File '/WEB-INF/lib/alfresco-mm-repo-0.1.5.9.jar' added to war f
rom amp
     [java]    - File '/WEB-INF/classes/alfresco/mm-thumbnail-service-context.xm
l' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/module/alfresco-mm-repo/module-
context.xml' added to war from amp
     [java]    - Directory '/WEB-INF/classes/alfresco/module/alfresco-mm-repo' a
dded to war
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_aep.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ai.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_aiff.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_asf.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_asnd.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_asx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_au.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_avi.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_avx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_bmp.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_css.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_doc.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_docm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_docx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_dotm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_eml.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_eps.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_fla.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_flv.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_fxp.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_gif.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_html.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_indd.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_jpeg.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_jpg.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_key.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_m4v.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mov.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_movie.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mp2.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mp3.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mp4.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mpeg.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mpeg2.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_mpv2.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_numbers.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_odg.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_odp.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ods.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_odt.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_oga.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ogg.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ogv.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_pages.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_pdf.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_png.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_potm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_potx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ppam.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ppj.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ppsm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ppsx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_ppt.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_pptm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_pptx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_psd.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_qt.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_rtf.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_sldm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_sldx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_snd.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_spx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_svg.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_swf.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_tiff.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_txt.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_wav.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_webm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_wma.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_wmv.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xbm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xlam.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xls.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xlsb.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xlsm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xlsx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xltm.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xltx.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_xml.png' added to war from amp
     [java]    - File '/WEB-INF/classes/alfresco/thumbnail/thumbnail_placeholder
_256_zip.png' added to war from amp
     [java] 11040000 An IO error was encountered during deployment of the AMP in
to the WAR

BUILD FAILED
C:\Development\Workspaces\Alfresco\build.xml:185: The following error occ
urred while executing this line:
C:\Development\Workspaces\Alfresco\alfresco-source\projects.xml:1784: The
following error occurred while executing this line:
C:\Development\Workspaces\Alfresco\alfresco-source\macros.xml:256: Java r
eturned: 1

Total time: 12 minutes 10 seconds

I'm sure it is not a problem of the Java version I'm using to build:

C:\Development\Workspaces\Alfresco>java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

Any idea? @sunil_softweb, did you solve this issue?

Regards.

alejandrogarcia
Champ in-the-making
Champ in-the-making
This link provides full information of the error: http://pastebin.com/1tEpemLM

Any idea? I still cannot understand what's wrong  :?

Thanks.

Regards.

alejandrogarcia
Champ in-the-making
Champ in-the-making
I have solved the problem after a system restart and building again without any other application working. I guess it has been caused by any weird and unknown problem related to a file locking by another process.

It is weird, I know, bit I hope it helps others.