steps to build the extjs app for mongo example

185 views
Skip to first unread message

Steve Schreiner

unread,
Jul 27, 2014, 4:17:14 PM7/27/14
to extdire...@googlegroups.com
Hi Ralph,

What steps need to be done to download ext into your mongo example app?  I tried navigating to the resources/static folder and then ran sencha app upgrade -ext but it throws an error about having to be in an application folder.  I want to be able to change themes by running sencha app build

Also, it seems within my intellij project any js changes I make do no get pushed to my exploded running war like it did before.  I have to start and stop the running project before the changes are seen on the browser

Thanks,
Steve

Ralph Schaer

unread,
Jul 28, 2014, 1:17:12 AM7/28/14
to extdire...@googlegroups.com
Hi

The problem is that eds-starter-mongodb is not a Sencha Cmd application. But it's possible to convert it.
Here the necessary steps:

- In pom.xml remove 
    Line 23: <ext.version>5.0.1.1109-NIGHTLY</ext.version>
    Line 33-38: <repositories>....</repository>      
    Line 88-117: Remove all ext and yuicompressor dependencies
    Line 123-137: Remove resources definition

- Remove these files
    src/main/resources/index.html
    src/main/resources/version.properties
    src/main/resources/webresources.yml
    src/main/java/ch/rasc/eds/starter/service/IndexController.java

- In src/main/java/ch/rasc/eds/starter/Application.java remove these lines
    Line 56-79: The servletContextInitializer bean

- Open a Shell/Terminal/Command Prompt. cd into eds-starter-mongodb\src\main\resources\static

- Start sencha cmd: sencha generate app -ext SimpleApp .

- Delete eds-starter-mongodb\src\main\resources\static\app.js.$old




>Also, it seems within my intellij project any js changes I make do no get pushed to my exploded running war like it >did before.  I have to start and stop the running project before the changes are seen on the browser

Maybe you did not start the application with the development profile flag.
Start the main class Application with this system property flag -Dspring.profiles.active=development  
This is not necessary for the sencha cmd version of the application.



Steve Schreiner

unread,
Aug 17, 2014, 3:43:55 PM8/17/14
to extdire...@googlegroups.com
Thanks for the info Ralph.  I followed the steps as you suggested but when I ran the project nothing appeared on the web page.  I then decide to do a sencha app build but got errors during the build.  Is it possible to create a sencha cmd version of the eds-start-mongodb project?

Steve


-- The contents of this message, together with any attachments, are intended only for the use of the individual or entity to which they are addressed and may contain confidential information. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If you have received this message in error, please contact the sender immediately and permanently delete or destroy the material/information.


--
You received this message because you are subscribed to the Google Groups "extdirectspring" group.
To unsubscribe from this group and stop receiving emails from it, send an email to extdirectspri...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ralph Schaer

unread,
Aug 18, 2014, 1:57:49 AM8/18/14
to extdire...@googlegroups.com
Hi

Looks like I forgot a few things in my description. I had to add the following lines to the app.json file.

 "js": [   
        {
            "path": "app.js",
            "bundle": true
        },
        {
            "path": "api.js",
            "remote": true
        }
    ],

    "requires": [     
      "sencha-charts" 
    ],


I created a branch named cmd in the eds-starter-mongodb project. You can simply checkout this branch and then change into the directory eds-starter-mongodb/src/main/resources/static and build the app with this command: sencha app build. To make it work you need the latest version of sencha cmd v5.0.1.231
After that you can start the app with mvn spring-boot:run and open the url http://localhost


 
Ralph

Steve Schreiner

unread,
Aug 18, 2014, 8:27:10 PM8/18/14
to extdire...@googlegroups.com
Thanks for creating the cmd branch Ralph.  I did as you indicated and get the following sencha builds error:

eds-starter-mongodb-cmd\src\main\resources\static>sencha app build
Sencha Cmd v5.0.1.231
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[ERR] C2008: Requirement had no matching files (Ext.util.Animate) -- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88:137
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: C2008: Requirement had no matching files (Ext.util.Animate) -- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88
:137
[ERR]
[ERR] Total time: 8 seconds
[ERR] The following error occurred while executing this line:
C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\.sencha\app\build-impl.xml:373: The following error occurred while executing this line:
C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\.sencha\app\init-impl.xml:258: com.sencha.exceptions.ExNotFound: C2008: Requirement had no matching files (Ext.util.Animate) -
- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88:137
     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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 net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.AntScript.execute(AntScript.java:117)
     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:246)
     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:496)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:35)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.Sencha.dispatch(Sencha.java:73)
     at com.sencha.command.Sencha.main(Sencha.java:141)
   Caused by: The following error occurred while executing this line:
C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\.sencha\app\init-impl.xml:258: com.sencha.exceptions.ExNotFound: C2008: Requirement had no matching files (Ext.util.Animate) -
- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88:137
     at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     at com.sencha.ant.CallTask.execute(CallTask.java:130)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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 net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.AntScript.execute(AntScript.java:117)
     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:246)
     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:496)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:35)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.Sencha.dispatch(Sencha.java:73)
     at com.sencha.command.Sencha.main(Sencha.java:141)
   Caused by: com.sencha.exceptions.ExNotFound: C2008: Requirement had no matching files (Ext.util.Animate) -- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Compone
nt.js:88:137
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
     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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     at com.sencha.ant.CallTask.execute(CallTask.java:130)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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 net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.AntScript.execute(AntScript.java:117)
     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:246)
     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:496)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:35)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.Sencha.dispatch(Sencha.java:73)
     at com.sencha.command.Sencha.main(Sencha.java:141)
   Caused by: C2008: Requirement had no matching files (Ext.util.Animate) -- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88:137
     at com.sencha.tools.compiler.sources.SymbolCache.linkClassGraph(SymbolCache.java:192)
     at com.sencha.tools.compiler.sources.SymbolCache.processSymbols(SymbolCache.java:274)
     at com.sencha.tools.compiler.sources.ClassPathScope.getScopeSymbols(ClassPathScope.java:406)
     at com.sencha.tools.compiler.sources.ClassPathScope.getSourceFilesInScope(ClassPathScope.java:392)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:553)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.compiler.sources.ClassPathScope.excludeAll(ClassPathScope.java:551)
     at com.sencha.tools.page.AppJsonBuilder.load(AppJsonBuilder.java:215)
     at com.sencha.command.compile.app.LoadAppCommand.execute(LoadAppCommand.java:60)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.compile.CompileCommands.dispatch(CompileCommands.java:299)
     at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:124)
     at com.sencha.ant.CompileTask$CompileToken.initialize(CompileTask.java:156)
     at com.sencha.ant.CompileTask$CompileToken.dispatchCommand(CompileTask.java:163)
     at com.sencha.ant.CompileTask.doExecute(CompileTask.java:123)
     at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:32)
     at com.sencha.ant.CompileTask.execute(CompileTask.java:36)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
     at com.sencha.ant.CallTask.execute(CallTask.java:130)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
     at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
     at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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 net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
     at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     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.AntScript.execute(AntScript.java:117)
     at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
     at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
     at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:246)
     at com.sencha.command.environment.AppOrPackageEnvironment.execute(AppOrPackageEnvironment.java:496)
     at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:35)
     at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:329)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:175)
     at com.sencha.cli.Command.dispatch(Command.java:43)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.cli.Commands.dispatch(Commands.java:64)
     at com.sencha.command.Sencha.dispatch(Sencha.java:73)
     at com.sencha.command.Sencha.main(Sencha.java:141)

Steve Schreiner

unread,
Aug 18, 2014, 9:19:16 PM8/18/14
to extdire...@googlegroups.com
Not sure if it was me downloading the latest version of ext and then running, but I then got the sencha app build to work.

eds-starter-mongodb-cmd\src\main\resources\static>sencha app upgrade C:\Users\trophytoolbox\Downloads\ext-5.0.1-commercial\ext-5.0.1
Sencha Cmd v5.0.1.231
[INF] Loading configuration for framework directory: C:\Users\trophytoolbox\Downloads\ext-5.0.1-commercial\ext-5.0.1
[INF] upgrading application
[INF] Upgrading to sdk at C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext
[INF] Application structure already at current cmd version

I also restarted my computer so not sure if that fixed it.

As a side note, I see the Companies tree root, but clicking or double clicking on it, nothing expands....

Steve Schreiner

unread,
Aug 18, 2014, 9:28:21 PM8/18/14
to extdire...@googlegroups.com
I also get an error in UserController.js when Ext.toast() is called, says undefined is not a function

onDeleteUserConfirm: function(choice) {
if (choice === 'yes') {
var selectedUser = this.getViewModel().get('selectedUser');
selectedUser.erase({
callback: function(e) {
Ext.toast({
html: 'User deleted',
title: 'Info',
width: 200,
align: 't',
shadow: true
});
this.getStore('users').load();

On Monday, August 18, 2014 9:19:16 PM UTC-4, Steve Schreiner wrote:
Not sure if it was me downloading the latest version of ext and then running, but I then got the sencha app build to work.

eds-starter-mongodb-cmd\src\main\resources\static>sencha app upgrade C:\Users\trophytoolbox\Downloads\ext-5.0.1-commercial\ext-5.0.1
Sencha Cmd v5.0.1.231
[INF] Loading configuration for framework directory: C:\Users\trophytoolbox\Downloads\ext-5.0.1-commercial\ext-5.0.1
[INF] upgrading application
[INF] Upgrading to sdk at C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext
[INF] Application structure already at current cmd version

I also restarted my computer so not sure if that fixed it.

As a side note, I see the Companies tree root, but clicking or double clicking on it, nothing expands....

On Monday, August 18, 2014 8:27:10 PM UTC-4, Steve Schreiner wrote:
Thanks for creating the cmd branch Ralph.  I did as you indicated and get the following sencha builds error:

eds-starter-mongodb-cmd\src\main\resources\static>sencha app build
Sencha Cmd v5.0.1.231
[INF] Processing Build Descriptor : default
[INF] Loading app json manifest...
[ERR] C2008: Requirement had no matching files (Ext.util.Animate) -- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88:137
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: C2008: Requirement had no matching files (Ext.util.Animate) -- C:\Users\trophytoolbox\Documents\GitHub\eds-starter-mongodb-cmd\src\main\resources\static\ext\src\Component.js:88
:137

Steve Schreiner

unread,
Aug 18, 2014, 9:40:13 PM8/18/14
to extdire...@googlegroups.com
The tree now loads properly.  I deleted my existing users collection and re-ran the app....

Steve Schreiner

unread,
Aug 18, 2014, 10:55:36 PM8/18/14
to extdire...@googlegroups.com

I can run sencha app build and I get no build error, and then I run the project using the settings shown in the screenshot, the app seems to run fine, but the app is using the crisp theme even though the neptune theme is specified in the app.json ("theme": "ext-theme-neptune")



On Monday, August 18, 2014 1:57:49 AM UTC-4, ralph wrote:

ralph

unread,
Aug 18, 2014, 11:57:13 PM8/18/14
to extdire...@googlegroups.com

On Tuesday, August 19, 2014 3:28:21 AM UTC+2, Steve Schreiner wrote:
I also get an error in UserController.js when Ext.toast() is called, says undefined is not a function

To fix this you have to add a requires: ['Ext.window.Toast'], in the SimpleApp.view.crud.UserController "class".

 

ralph

unread,
Aug 19, 2014, 12:00:19 AM8/19/14
to extdire...@googlegroups.com

On Tuesday, August 19, 2014 4:55:36 AM UTC+2, Steve Schreiner wrote:

I can run sencha app build and I get no build error, and then I run the project using the settings shown in the screenshot, the app seems to run fine, but the app is using the crisp theme even though the neptune theme is specified in the app.json ("theme": "ext-theme-neptune")


No idea what the problem here is. Maybe you have to clear the browser cache.  

ralph

unread,
Aug 19, 2014, 12:20:05 AM8/19/14
to extdire...@googlegroups.com
To summarize here are the steps to run the demo app on a "naked" windows.

2. Start MongoDb: bin\mongod --dbpath path\to\my\db\directory
4. cd eds-starter-mongodb
5. Checkout cmd branch: git checkout cmd
6. cd src\main\resources\static
7. Build the Ext JS app: sencha app build
8. cd ..\..\..\..
9. Run the application: mvn spring-boot:run
10. Open url http://localhost in a browser  





Reply all
Reply to author
Forward
0 new messages