我有一个简单的HelloWorld类型的Worklight应用程序,没有适配器,只有一个“通用”环境。我正在尝试通过worklight-ant.jar文件中提供的build-app目标构建应用程序。此目标因以下堆栈跟踪而失败。关于为什么会发生这种情况的任何想法?
命令行中的StackTrace
Buildfile: /Users/jai/Dev/Workspaces/worklight-2014/EFMobile/build.xml
init:
[echo] Loading ANT Tool
build-app:
[echo] Building app at /Users/jai/Dev/Workspaces/worklight-2014/EFMobile/apps/HelloEF
[echo] Worklight Ant Task version 6.1.0.00.20131123-2150
BUILD FAILED
/Users/jai/Dev/Workspaces/worklight-2014/EFMobile/build.xml:26: java.lang.ExceptionInInitializerError
at com.worklight.builder.environment.EnvironmentBuilderFactory.get(EnvironmentBuilderFactory.java:70)
at com.worklight.builder.ApplicationBuilder.buildEnvironment(ApplicationBuilder.java:268)
at com.worklight.builder.ApplicationBuilder.buildEnvironments(ApplicationBuilder.java:230)
at com.worklight.builder.ApplicationBuilder.build(ApplicationBuilder.java:119)
at com.worklight.ant.builders.ApplicationBuilderTask.execute(ApplicationBuilderTask.java:112)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
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:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.RuntimeException: Failed creating resourcesRootFolder
at com.worklight.builder.environment.EnvironmentBuilder.initResourceFolder(EnvironmentBuilder.java:199)
at com.worklight.builder.environment.EnvironmentBuilder.<clinit>(EnvironmentBuilder.java:192)
... 22 more
Caused by: java.io.IOException: Resource not found: jslibexpanded.zip.MD5
at com.worklight.builder.util.BuilderUtils.unzipResourceIfRequired(BuilderUtils.java:723)
at com.worklight.builder.util.BuilderUtils.initResourcesFolder(BuilderUtils.java:704)
at com.worklight.builder.environment.EnvironmentBuilder.initResourceFolder(EnvironmentBuilder.java:197)
... 23 more
Total time: 1 second
答案 0 :(得分:1)
可能是你的蚂蚁比先决条件版本旧?
http://publib.boulder.ibm.com/infocenter/prodguid/v1r0/clarity-reports/report/html/softwareReqsForProduct?deliverableId=66C745D01E8711E28ACF6F870925FE36&osPlatform=Linux#!
问候