I downloaded Sencha SDK 2.1.0 and Sencha CMD 3.0.0.250.
The sencha command is working fine, but when I run sencha generate app GS ../GS command throws the following exception:
Code:
[ERR] javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExProcess: Failed creating background process (<Unknown source>#15) in <Unknown source> at line number 15
environment versions:- Mac OS 10.6.8 (Core DUO)
- JRE: 1.6.0_37
- Ruby (required for Compass): 1.8.7
Here is the whole output in debug mode:
Code:
fs:sencha-touch-2 Test$ sencha -d generate app GS ../GS
Sencha Cmd v3.0.0.250
[DBG] found sencha.cfg at /Users/Test/bin/Sencha/Cmd/3.0.0.250
[DBG] Checking for framework config overrides
[DBG] creating workspace at '../GS'
[DBG] checking null for plugin.xml
[DBG] checking null for plugin.xml
[DBG] checking /Users/Test/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current for plugin.xml
[DBG] checking /Users/Test/bin/Sencha/Cmd/3.0.0.250 for plugin.xml
[DBG] located plugin /Users/Test/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current/plugin.xml
[INF] init-properties:
[INF] init-sencha-command:
[INF] init:
[INF] -before-generate-workspace:
[INF] generate-workspace-impl:
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/Init.js
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/String.js
[WRN] Ignoring @require ../version/Version.js in js/String.js
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/Format.js
[WRN] Ignoring @require ../Ext-more.js in js/Format.js
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/Template.js
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/XTemplateParser.js
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/XTemplateCompiler.js
[DBG] loadJavaScript: jar:file:/Users/Test/bin/Sencha/Cmd/3.0.0.250/sencha.jar!/com/sencha/tools/generator/js/XTemplate.js
[DBG] Initializing Velocity, Calling init()...
[DBG] Starting Apache Velocity v1.7 (compiled: 2010-11-19 12:14:37)
[DBG] Default Properties File: org/apache/velocity/runtime/defaults/velocity.properties
[DBG] Trying to use logger class org.apache.velocity.runtime.log.AvalonLogChute
[DBG] Target log system for org.apache.velocity.runtime.log.AvalonLogChute is not available (java.lang.NoClassDefFoundError: org/apache/log/format/Formatter). Falling back to next log system...
[DBG] Trying to use logger class org.apache.velocity.runtime.log.Log4JLogChute
[DBG] Target log system for org.apache.velocity.runtime.log.Log4JLogChute is not available (java.lang.NoClassDefFoundError: org/apache/log4j/Layout). Falling back to next log system...
[DBG] Trying to use logger class org.apache.velocity.runtime.log.CommonsLogLogChute
[DBG] Target log system for org.apache.velocity.runtime.log.CommonsLogLogChute is not available (java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory). Falling back to next log system...
[DBG] Trying to use logger class org.apache.velocity.runtime.log.ServletLogChute
[DBG] Target log system for org.apache.velocity.runtime.log.ServletLogChute is not available (java.lang.NoClassDefFoundError). Falling back to next log system...
[DBG] Trying to use logger class org.apache.velocity.runtime.log.JdkLogChute
[DBG] Using logger class org.apache.velocity.runtime.log.JdkLogChute
[DBG] ResourceLoader instantiated: org.apache.velocity.runtime.resource.loader.FileResourceLoader
[DBG] Do unicode file recognition: false
[DBG] FileResourceLoader : adding path '/'
[DBG] ResourceCache: initialized (class org.apache.velocity.runtime.resource.ResourceCacheImpl) with class java.util.Collections$SynchronizedMap cache map.
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Stop
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Define
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Break
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Evaluate
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[DBG] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[DBG] Created '20' parsers.
[DBG] Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
[DBG] Velocimacro : Default library not found.
[DBG] Velocimacro : allowInline = true : VMs can be defined inline in templates
[DBG] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[DBG] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[DBG] Velocimacro : autoload off : VM system will not automatically reload global library macros
[DBG] Running generate
[INF] -before-copy-framework-to-workspace:
[INF] copy-framework-to-workspace-impl:
[INF] [copy] Copying 1005 files to /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/touch
[INF] [copy] Copied 158 empty directories to 3 empty directories under /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/touch
[INF] [copy] Copying 1 file to /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/touch
[INF] [copy] Copying 1 file to /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/touch
[INF] [propertyfile] Updating property file: /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/.sencha/workspace/sencha.cfg
[INF] -after-copy-framework-to-workspace:
[INF] copy-framework-to-workspace:
[INF] -after-generate-workspace:
[INF] generate-workspace:
[DBG] found sencha.cfg at /Users/Test/bin/Sencha/Cmd/3.0.0.250
[DBG] found workspace at /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/.sencha/workspace
[DBG] Checking for framework config overrides
[DBG] checking null for plugin.xml
[DBG] checking null for plugin.xml
[DBG] checking /Users/Test/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current for plugin.xml
[DBG] checking /Users/Test/bin/Sencha/Cmd/3.0.0.250 for plugin.xml
[DBG] located plugin /Users/Test/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current/plugin.xml
[INF] init-properties:
[INF] init-sencha-command:
[INF] init:
[INF] -before-generate-app:
[INF] generate-app-impl:
[DBG] Running generate
[INF] [mkdir] Created dir: /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/app/model
[INF] [mkdir] Created dir: /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/app/controller
[INF] [mkdir] Created dir: /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/app/store
[INF] [mkdir] Created dir: /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/GS/app/profile
[DBG] found sencha.cfg at /Users/Test/bin/Sencha/Cmd/3.0.0.250
[DBG] found cmd at /Applications/eclipseSTS/vfabric-tc-server-developer-2.7.2.RELEASE/base-instance/webapps/sencha-touch-2/cmd
[DBG] Checking for framework config overrides
[DBG] resolving framework config overrides for 'touch'
[DBG] Detected framework version 2.1.0.447
[DBG] using framework config override '/Users/Test/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current'
[INF] Generating new packager.json file using native packager
[DBG] using path /Users/Test/bin/Sencha/Cmd/3.0.0.250/stbuild:/Users/Test/bin/Sencha/Cmd/3.0.0.250/stbuild/bin:/Users/Test/bin/Sencha/Cmd/3.0.0.250:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/usr/share/maven-2.2.1/bin:/usr/share/grails-2.1.0/bin
[DBG] executable located at /Users/Test/bin/Sencha/Cmd/3.0.0.250/stbuild/stbuild
[DBG] using workding directory .
[ERR] javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExProcess: Failed creating background process (<Unknown source>#15) in <Unknown source> at line number 15
com.sencha.exceptions.BasicException: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExProcess: Failed creating background process (<Unknown source>#15) in <Unknown source> at line number 15
at com.sencha.exceptions.BasicException.wrap(BasicException.java:43)
at com.sencha.cli.Command.dispatch(Command.java:104)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.cli.Commands.dispatch(Commands.java:49)
at com.sencha.command.Sencha.main(Sencha.java:71)
Caused by: /Users/Test/bin/Sencha/Cmd/3.0.0.250/plugins/touch/current/plugin.xml:95: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExProcess: Failed creating background process (<Unknown source>#15) in <Unknown source> at line number 15
at org.apache.tools.ant.util.ReflectUtil.toBuildException(ReflectUtil.java:183)
at org.apache.tools.ant.util.ReflectUtil.throwBuildException(ReflectUtil.java:166)
at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:110)
at org.apache.tools.ant.util.ReflectWrapper.invoke(ReflectWrapper.java:81)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:103)
at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:67)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor11.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:392)
at org.apache.tools.ant.Target.performTasks(Target.java:413)
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 com.sencha.ant.AntRunner.run(AntRunner.java:156)
at com.sencha.ant.AntRunner.run(AntRunner.java:72)
at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:87)
at com.sencha.command.BasePluginCommands$BasePluginCommand.run(BasePluginCommands.java:91)
at com.sencha.command.BasePluginCommands$BaseNamePathCommand.run(BasePluginCommands.java:135)
at com.sencha.command.generator.GeneratorCommands$AppCommand.execute(GeneratorCommands.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sencha.cli.Command.dispatch(Command.java:78)
... 3 more
Caused by: javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.sencha.exceptions.ExProcess: Failed creating background process (<Unknown source>#15) in <Unknown source> at line number 15
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:156)
at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:170)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.util.ReflectUtil.invoke(ReflectUtil.java:108)
... 30 more