Error on build OpenElis

Hello Team, I have cloned openelis from bahmni github repository and run ant dist. the following are the errors:

$ ant dist Buildfile: /home/focus/projects/bahmni/OpenElis/build.xml Trying to override old definition of task javac

clean: [delete] Deleting directory /home/focus/projects/bahmni/OpenElis/openelis/target

init: [mkdir] Created dir: /home/focus/projects/bahmni/OpenElis/openelis/target

java.compile: [javac] Compiling 1581 source files to /home/focus/projects/bahmni/OpenElis/openelis/target [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7 [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] Copying 137 files to /home/focus/projects/bahmni/OpenElis/openelis/target

jasper.compile: [jrc] Compiling 34 report design files. [jrc] log4j:ERROR setFile(null,true) call failed. [jrc] java.io.FileNotFoundException: /logs/openelis.log (No such file or directory) [jrc] at java.io.FileOutputStream.open0(Native Method) [jrc] at java.io.FileOutputStream.open(FileOutputStream.java:270) [jrc] at java.io.FileOutputStream.(FileOutputStream.java:213) [jrc] at java.io.FileOutputStream.(FileOutputStream.java:133) [jrc] at org.apache.log4j.FileAppender.setFile(FileAppender.java:290) [jrc] at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194) [jrc] at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164) [jrc] at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257) [jrc] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285) [jrc] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171) [jrc] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184) [jrc] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502) [jrc] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471) [jrc] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921) [jrc] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790) [jrc] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696) [jrc] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471) [jrc] at org.apache.log4j.LogManager.(LogManager.java:125) [jrc] at org.apache.log4j.Logger.getLogger(Logger.java:105) [jrc] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229) [jrc] at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:65) [jrc] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [jrc] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [jrc] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [jrc] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) [jrc] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) [jrc] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) [jrc] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) [jrc] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) [jrc] at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.(JRXmlDigesterFactory.java:179) [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:205) [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170) [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:111) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:411) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:254) [jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) [jrc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [jrc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [jrc] at java.lang.reflect.Method.invoke(Method.java:498) [jrc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [jrc] at org.apache.tools.ant.Task.perform(Task.java:348) [jrc] at org.apache.tools.ant.Target.execute(Target.java:435) [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:456) [jrc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1376) [jrc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1260) [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:853) [jrc] at org.apache.tools.ant.Main.startAnt(Main.java:235) [jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) [jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiHeader.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/specimen_list.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ConfirmationSummary.jrxml … FAILED. [jrc] Error compiling report design : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ConfirmationSummary.jrxml [jrc] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: [jrc] 1. The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files [jrc] /* [jrc] ^ [jrc] 1 errors [jrc] [jrc] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:113) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:411) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:254) [jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) [jrc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [jrc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [jrc] at java.lang.reflect.Method.invoke(Method.java:498) [jrc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [jrc] at org.apache.tools.ant.Task.perform(Task.java:348) [jrc] at org.apache.tools.ant.Target.execute(Target.java:435) [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:456) [jrc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1376) [jrc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1260) [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:853) [jrc] at org.apache.tools.ant.Main.startAnt(Main.java:235) [jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) [jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityNotification.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_Version2.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Version2.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_backlog.jrxml … FAILED. [jrc] Error compiling report design : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_backlog.jrxml [jrc] net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: [jrc] 1. The type java.lang.CharSequence cannot be resolved. It is indirectly referenced from required .class files [jrc] /* [jrc] ^ [jrc] 1 errors [jrc] [jrc] at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:191) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:131) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:113) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:411) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:254) [jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) [jrc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [jrc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [jrc] at java.lang.reflect.Method.invoke(Method.java:498) [jrc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [jrc] at org.apache.tools.ant.Task.perform(Task.java:348) [jrc] at org.apache.tools.ant.Target.execute(Target.java:435) [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:456) [jrc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1376) [jrc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1260) [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:853) [jrc] at org.apache.tools.ant.Main.startAnt(Main.java:235) [jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) [jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_FollowupRequired_ByLocation.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_Version2.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/SampleLabel.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_Serology.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/CILNSPHeader.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/WorkplanByTest.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/PatientReportCILNSP.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiHIVSummary.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_Version1.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_BioChem.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_info.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_ByLocation.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ReferredOutBySite.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/WorkplanByTestSection.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiNoticeOfReportError.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_Default.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ElisaWorkplan.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Followup_patient_info.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_info_Version2.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiLabAggregate.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/PatientReportHaitiClinical.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityByGroupCategory.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Version1.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityByReceivedDate.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCIHeader.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID.jrxml … OK. [jrc] File : /home/focus/projects/bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NoticeOfReportError.jrxml … OK.

BUILD FAILED /home/focus/projects/bahmni/OpenElis/build.xml:74: Errors were encountered when compiling report designs.

ANY HELP WILL BE MUCH APPRECIATED

Hi @fosha,

did you make any changes to project or its failing without any changes? If it is failing without any changes, can you check your JAVA version? You need Java-1.7 to build OpenELIS.

Hello @sumanmaity112 its true i was using java 1.8 but after changing to java 1.7 another error occur. It has to do with compass program, i have installed compass on ma pc but the error still there.

projects/bahmni/OpenElis/build.xml:44: Execute failed: java.io.IOException: Cannot run program “compass” (in directory “/projects/bahmni/OpenElis/openelis/WebContent”): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:853) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) … 23 more

Hi @fosha,

Can you look into this repository?

In setup.sh file of the repo have all the dependency require by OpenELIS

Hi @sumanmaity112 so i have installed openelis vagrant and navigate to /bahmni/Openelis then run and dist but i get the same error as before

[vagrant@localhost ~]$ cd /bahmni/OpenElis/ [vagrant@localhost OpenElis]$ ant dist Buildfile: /bahmni/OpenElis/build.xml Trying to override old definition of task javac

clean:

init: [mkdir] Created dir: /bahmni/OpenElis/openelis/target

java.compile: [javac] Compiling 1581 source files to /bahmni/OpenElis/openelis/target [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/ClientCookies.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/HttpClient.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/Authenticator.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/ConnectionDetails.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/openmrs/OpenMRSLoginAuthenticator.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/HttpClientInternal.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [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] 6 warnings [copy] Copying 137 files to /bahmni/OpenElis/openelis/target

jasper.compile: [jrc] Compiling 34 report design files. [jrc] log4j:ERROR setFile(null,true) call failed. [jrc] java.io.FileNotFoundException: /logs/openelis.log (No such file or directory) [jrc] at java.io.FileOutputStream.open(Native Method) [jrc] at java.io.FileOutputStream.(FileOutputStream.java:221) [jrc] at java.io.FileOutputStream.(FileOutputStream.java:142) [jrc] at org.apache.log4j.FileAppender.setFile(FileAppender.java:290) [jrc] at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194) [jrc] at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164) [jrc] at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257) [jrc] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285) [jrc] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171) [jrc] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184) [jrc] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502) [jrc] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471) [jrc] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921) [jrc] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790) [jrc] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696) [jrc] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471) [jrc] at org.apache.log4j.LogManager.(LogManager.java:125) [jrc] at org.apache.log4j.Logger.getLogger(Logger.java:105) [jrc] at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229) [jrc] at org.apache.commons.logging.impl.Log4JLogger.(Log4JLogger.java:65) [jrc] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [jrc] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [jrc] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [jrc] at java.lang.reflect.Constructor.newInstance(Constructor.java:526) [jrc] at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) [jrc] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235) [jrc] at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) [jrc] at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) [jrc] at net.sf.jasperreports.engine.xml.JRXmlDigesterFactory.(JRXmlDigesterFactory.java:179) [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:205) [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:170) [jrc] at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:154) [jrc] at net.sf.jasperreports.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:111) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.compile(JRAntCompileTask.java:411) [jrc] at net.sf.jasperreports.ant.JRAntCompileTask.execute(JRAntCompileTask.java:254) [jrc] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) [jrc] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) [jrc] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [jrc] at java.lang.reflect.Method.invoke(Method.java:606) [jrc] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [jrc] at org.apache.tools.ant.Task.perform(Task.java:348) [jrc] at org.apache.tools.ant.Target.execute(Target.java:435) [jrc] at org.apache.tools.ant.Target.performTasks(Target.java:456) [jrc] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) [jrc] at org.apache.tools.ant.Project.executeTarget(Project.java:1376) [jrc] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [jrc] at org.apache.tools.ant.Project.executeTargets(Project.java:1260) [jrc] at org.apache.tools.ant.Main.runBuild(Main.java:857) [jrc] at org.apache.tools.ant.Main.startAnt(Main.java:236) [jrc] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287) [jrc] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113) [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NoticeOfReportError.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityByGroupCategory.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_Serology.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ElisaWorkplan.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/specimen_list.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/SampleLabel.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCIHeader.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_backlog.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiNoticeOfReportError.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_BioChem.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_Version1.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_FollowupRequired_ByLocation.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_info_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_Default.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ReferredOutBySite.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_info.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/PatientReportCILNSP.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ConfirmationSummary.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/PatientReportHaitiClinical.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/WorkplanByTestSection.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityByReceivedDate.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiLabAggregate.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Followup_patient_info.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_ByLocation.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiHeader.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityNotification.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Version1.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/WorkplanByTest.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/CILNSPHeader.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiHIVSummary.jrxml … OK.

compass.compile:

BUILD FAILED /bahmni/OpenElis/build.xml:44: Execute failed: java.io.IOException: Cannot run program “compass” (in directory “/bahmni/OpenElis/openelis/WebContent”): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:857) at org.apache.tools.ant.Main.startAnt(Main.java:236) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) … 23 more

Total time: 36 seconds

Hi @fosha,

Can you reclone the OpenELIS repo? After that, goto your elis-dev-vagrant machine and run the following commands

  • sudo su
  • cd /bahmni/OpenElis
  • ant setupDB && ant dist

still it fail on the same place [vagrant@localhost ~]$ sudo su [root@localhost vagrant]# cd /bahmni/OpenElis/ [root@localhost OpenElis]# ant setupDB && ant dist Buildfile: /bahmni/OpenElis/build.xml Trying to override old definition of task javac

initDB: [exec] Creating database : clinlims [exec] CREATE ROLE [exec] CREATE DATABASE [exec] GRANT [exec] Adding required extensions [exec] CREATE EXTENSION

updateDB: [echo] Running migration for contexts : Bahmni [exec] Migration successful

setupDB:

BUILD SUCCESSFUL Total time: 28 seconds Buildfile: /bahmni/OpenElis/build.xml Trying to override old definition of task javac

clean:

init: [mkdir] Created dir: /bahmni/OpenElis/openelis/target

java.compile: [javac] Compiling 1581 source files to /bahmni/OpenElis/openelis/target [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/ClientCookies.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/HttpClient.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/Authenticator.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/ConnectionDetails.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/openmrs/OpenMRSLoginAuthenticator.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [javac] warning: /bahmni/OpenElis/openelis/WebContent/WEB-INF/lib/web-clients-0.87-SNAPSHOT.jar(org/bahmni/webclients/HttpClientInternal.class): major version 52 is newer than 51, the highest major version supported by this compiler. [javac] It is recommended that the compiler be upgraded. [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] 6 warnings [copy] Copying 137 files to /bahmni/OpenElis/openelis/target

jasper.compile: [jrc] Compiling 34 report design files. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NoticeOfReportError.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityByGroupCategory.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_Serology.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ElisaWorkplan.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/specimen_list.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/SampleLabel.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCIHeader.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_backlog.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiNoticeOfReportError.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_BioChem.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_Version1.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_FollowupRequired_ByLocation.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_info_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Version2.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Workplan_Default.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ReferredOutBySite.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/RetroCI_Patient_EID_info.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/PatientReportCILNSP.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/ConfirmationSummary.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/PatientReportHaitiClinical.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/WorkplanByTestSection.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityByReceivedDate.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiLabAggregate.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Followup_patient_info.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_Indeterminate_ByLocation.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiHeader.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/NonConformityNotification.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/Patient_ARV_Version1.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/WorkplanByTest.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/CILNSPHeader.jrxml … OK. [jrc] File : /bahmni/OpenElis/openelis/WebContent/WEB-INF/reports/HaitiHIVSummary.jrxml … OK.

compass.compile:

BUILD FAILED /bahmni/OpenElis/build.xml:44: Execute failed: java.io.IOException: Cannot run program “compass” (in directory “/bahmni/OpenElis/openelis/WebContent”): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:857) at org.apache.tools.ant.Main.startAnt(Main.java:236) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113) Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.(UNIXProcess.java:187) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) … 23 more

Total time: 39 seconds `

Hi @fosha,

I did the same steps what you have done, it was failing in a different task, not for compass.

After modifying the following lines

<copy tofile="${dist}/LICENSE">
    <fileset dir="${src}" file="LICENSE"/>
 </copy>

to

<copy file="LICENSE" todir="${dist}"/>

build is passing

1 Like

Hi @sumanmaity112 so i deleted all files on vm and run vagrant up again, this time ant dist went fine up to LICENSE after changing as you suggested i got BUILD SUCCESSFUL. thank you a lot for sharing your time.:grinning:

@sumanmaity112 shouldn’t this then be a correcting commit on the master branch?

Hi @mksd,

I will create PR for this fix

@sumanmaity112 @mksd @fosha

I am also trying the same thing without vagrant setup.Is it possible to build openelis war file and deploy it on the tomcat?I got war file from bahmni-developer but while deploying it on tomcat.I got the following error. https://paste.ubuntu.com/p/BXwB4FMvzF/

Hi @naveed1228, I personally never tried. But If you can build the war file, you should be able to deploy it on tomcat

I got the war file from @swathivarkala but it’s not working.I pasted the log.Can you please have a look at this. https://paste.ubuntu.com/p/BXwB4FMvzF/

Hi @naveed1228, do you have openmrs installed? As OpenElis require oenmrs to work. please look into line number 270 in log file

That shouldn’t matter. Naveed probably already has openmrs running on a tomcat where it registered the jdbc. You can alternatively put in catalina/lib, but thats ok. We don’t see that issue since all our webapplications are deployed as runnable with embedded tomcat independently. There is nothing specific we are doing at startup, other than packaging the war as jar and having a main class load it with embedded tomcat.

Thanks @sumanmaity112 and @angshuonline. I checked with both with openmrs and without openmrs installation but unable to run the openElis. Can you please tell me some resources from where I can get help,other-wise please specify some steps for installation of openelis on tomcat. As I mentioned I got the war file from one of bahmni member,I am trying to generate my own war using this github:https://github.com/Bahmni/OpenElis but I am unable to build. I have Java_7 compass and ant installed. First I cloned the repo and then run “ant dist” and getting this error.

D:\openElis\build.xml:44: Execute failed: java.io.IOException: Cannot run progra m “compass” (in directory “D:\openElis\openelis\WebContent”): CreateProcess erro r=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(ProcessBuilder.java:1047) at java.lang.Runtime.exec(Runtime.java:617) at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Jav a13CommandLauncher.java:58) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:426) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:440) at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:631) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav a:106) at org.apache.tools.ant.Task.perform(Task.java:352) at org.apache.tools.ant.Target.execute(Target.java:437) at org.apache.tools.ant.Target.performTasks(Target.java:458) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe cutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:857) at org.apache.tools.ant.Main.startAnt(Main.java:236) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:286) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th e file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.(ProcessImpl.java:385) at java.lang.ProcessImpl.start(ProcessImpl.java:136) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028) … 23 more

Total time: 15 seconds

Hi, we can’t seem to replicate your problem at all. several of us (at least 2) have tried to do this on multiple dev machines without a problem.

This is what we have

  • java: 1.7.0_79-b15
  • ant: 1.9.9
  • compass:1.0.3
  • ruby: 2.0
  • os: mac, centos

from the root “OpenElis” directory, I just run “ant dist” (or “ant compass.compile”).

Thanks,let me try with your specified version may be It’s due to version problem.

I used the following versions but got the same error. .java version “1.7.0_67” .Apache Ant™ version 1.9.9 .Compass 1.0.3 (Polaris) .ruby 2.0.0p0 (2013-02-24) [x64-mingw32] window 10 pro

@angshuonline Can you please send the war file to me to run it on tomcat.