cancel
Showing results for 
Search instead for 
Did you mean: 

Build Failed

takwa
Champ in-the-making
Champ in-the-making
Hi ,

I compile the source code of alfresco, after having taken using SVN. I compile using ant, and after 55 sec I get this error

BUILD FAILED
C:\Users\atef\Dropbox\MAMD & Atef\Alfresco\root\projects.xml:317: The following error occurred while executing this line:
C:\Users\atef\Dropbox\MAMD & Atef\Alfresco\root\macros.xml:68: The following error occurred while executing this line:
C:\Users\atef\Dropbox\MAMD & Atef\Alfresco\root\macros.xml:41: Compile failed; see the compiler error output for details.

thanks for help
9 REPLIES 9

mikeh
Star Contributor
Star Contributor
If that really is a Dropbox (.com) sync'ed folder, it might not be such a great idea to compile the code there.

You may also be facing problems due to the spaces in the parent folder structure. There's not really enough information in your post to provide more detailed help, sorry.

Thanks,
Mike

takwa
Champ in-the-making
Champ in-the-making
thank you for your reply ,I will change the location of my code and I'll post my problem with more detailed

takwa
Champ in-the-making
Champ in-the-making
After the change of the location I compile the code and I get:

Buildfile: C:\Users\atef\Alfresco\root\build.xml
init:
     [echo] user.home = C:\Users\atef
     [echo] version.number = 4.1.a
compile-core:
package-core:
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\core\build\dist\alfresco-core-4.1.a.jar
incremental-core:
compile-datamodel-java:
compile-datamodel-jibx:
compile-datamodel:
package-datamodel:
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\data-model\build\dist\alfresco-data-model-4.1.a.jar
incremental-datamodel:
compile-jlan:
     [copy] Copied 5 empty directories to 5 empty directories under C:\Users\atef\Alfresco\root\projects\alfresco-jlan\build\classes
package-jlan:
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\alfresco-jlan\build\dist\alfresco-jlan-embed-4.1.a.jar
incremental-jlan:
compile-mbeans:
package-mbeans:
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\mbeans\build\dist\alfresco-mbeans-4.1.a.jar
incremental-mbeans:
compile-deployment:
package-deployment-jar:
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\deployment\build\dist\alfresco-deployment-4.1.a.jar
compile-repository-java:
    [javac] Compiling 1 source file to C:\Users\atef\Alfresco\root\projects\repository\build\classes
compile-repository-jibx:
compile-repository:
package-repository:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\repository\build\dist
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\repository\build\dist\alfresco-repository-4.1.a.jar
assemble-deployment:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\deployment\build\assemble
     [copy] Copying 35 files to C:\Users\atef\Alfresco\root\projects\deployment\build\assemble
package-deployment-zip:
      [zip] Building zip: C:\Users\atef\Alfresco\root\projects\deployment\build\dist\alfresco-community-deployment-4.1.a.zip
package-deployment:
incremental-deployment:
incremental-repository:
compile-wdrdeployment:
package-wdrdeployment-jar:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\wdr-deployment\build\dist
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\wdr-deployment\build\dist\alfresco-wdr-deployment.jar
package-wdrdeployment:
incremental-wdrdeployment:
compile-remoteapi:
package-remoteapi:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\remote-api\build\dist
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\remote-api\build\dist\alfresco-remote-api-4.1.a.jar
incremental-remoteapi:
compile-webframeworkcommons:
package-webframeworkcommons-jar:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\web-framework-commons\build\dist
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\web-framework-commons\build\dist\alfresco-web-framework-commons-4.1.a.jar
package-webframeworkcommons:
incremental-webframeworkcommons:
compile-jndi:
package-jndi:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\jndi-client\build\dist
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\jndi-client\build\dist\alfresco-jndi-client-4.1.a.jar
incremental-jndi:
compile-catalinavirtual:
package-catalinavirtual:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\catalina-virtual\build\dist
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\catalina-virtual\build\dist\alfresco-catalina-virtual.jar
incremental-catalinavirtual:
incremental-webclient-depends:
prepare-file-transfer-receiver:
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\classes
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\dist
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble\webapps
    [mkdir] Created dir: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble\classes
compile-file-transfer-receiver:
    [javac] Compiling 31 source files to C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\classes
    [javac] Note: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\source\java\org\alfresco\repo\transfer\fsr\testdb.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
version-file-transfer-receiver:
     [copy] Copying 1 file to C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble
package-file-transfer-receiver:
     [copy] Copying 16 files to C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble\lib
     [copy] Copying 5 files to C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble\classes
      [jar] Building jar: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble\file-transfer-receiver.jar
     [copy] Copying 43 files to C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\lib
      [war] Building war: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\assemble\webapps\file-transfer-receiver.war
      [zip] Building zip: C:\Users\atef\Alfresco\root\projects\file-transfer-receiver\build\dist\file-transfer-receiver.zip
BUILD SUCCESSFUL
Total time: 3 minutes 26 seconds

but the problem I've seen in some subject on this forum that compiling code takes 23 minutes while mine took about 3min then I worry if the compilation is not complete, Would somebody has an idea if compilation is well done

takwa
Champ in-the-making
Champ in-the-making
another question:
normally after the compilation I will be have alfresco.war when I have file-transfer-receiver.war? I always worry about compiling , I think the compilation is not well done

mrogers
Star Contributor
Star Contributor
Your postings are very difficult to understand.

If it says "BUILD SUCCESSFUL" then it has worked.

Why do you think there is a problem and what target are you trying to build.

takwa
Champ in-the-making
Champ in-the-making
thanks for your reply .Now I have  just one problem:
Now I have the fichier.war and I want to deploy it ,when I deployed it with Tomcat manager a message appears
ok
  but when I start the application an error message appears
ECHEC - L'application pour le chemin de contexte /file-transfer-receiver n'a pas pu être démarrée
I already installed jdk 7, tomcat 6 and mysql 5.5

Thanks for help

takwa
Champ in-the-making
Champ in-the-making
To give more details for my problem. here is the error in the file alfresco.log
17:07:03,030 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class path resource [ftr-custom.properties] cannot be opened because it does not exist
   at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:78)
   at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
   at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:638)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
   at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1276)
   at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:625)
   at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:136)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:186)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: class path resource [ftr-custom.properties] cannot be opened because it does not exist
   at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:158)
   at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:181)
   at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:161)
   at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)
   … 29 more
I do not know, but i must configure tomcat?

usetelni
Champ in-the-making
Champ in-the-making
I'm facing the same problem to build, the error is pointed to be here:
<strong>"D: \svn-repo\HEAD\root\macros.xml:41: Compile failed; see the compiler error output for details."</strong>

And I don't have any ideia what is the problem, I need a help asap, please…

Here is the log, if need more information I can provide.

BUILD FAILED
D:\svn-repo\HEAD\root\projects.xml:317: The following error occurred while executing this line:
D:\svn-repo\HEAD\root\macros.xml:68: The following error occurred while executing this line:
D:\svn-repo\HEAD\root\macros.xml:41: Compile failed; see the compiler error output for details.
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:398)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
   at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:390)
   at org.apache.tools.ant.Target.performTasks(Target.java:411)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
   at org.apache.tools.ant.Main.runBuild(Main.java:809)
   at org.apache.tools.ant.Main.startAnt(Main.java:217)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 3 minutes 34 seconds



Thanks!

kapilpurohit
Champ in-the-making
Champ in-the-making
I am getting problem in build alfresco repository project.
I am getting following erro:

BUILD FAILED
C:\Users\kapil\workspace\HEAD\root\projects.xml:336: The following error occurred while executing this line:
C:\Users\kapil\workspace\HEAD\root\macros.xml:69: The following error occurred while executing this line:
C:\Users\kapil\workspace\HEAD\root\macros.xml:42: Compile failed; see the compiler error output for details.

Total time: 6 minutes 6 seconds

i don't know actually what is problem in project.xml file.
on line 336 of project.xml, code is : <compile-java projectdir="${dir.project.repository}" />

on line 69 of macros.xml, code is : <compile-java-javac srcdir="@{projectdir}/${dir.name.source}/${dir.name.java}" classesdir="@{projectdir}/${dir.name.build}/${dir.name.classes}" compileExcludes="@{compileExcludes}">

on line 42 of macros.xml, code is : <javac destdir="@{classesdir}" fork="true" memoryMaximumSize="${mem.size.max}" deprecation="${javac.deprecation}" debug="${javac.debug}" target="${javac.target}" source="${javac.source}" encoding="${javac.encoding}" excludes="@{compileExcludes}" includeAntRuntime="false">

log also attached with this post.
kindly help..!!