[jbosstools-issues] [JBoss JIRA] (JBIDE-18900) CordovaSim: Can't run default FeedHenry app locally

Vlado Pakan (JIRA) issues at jboss.org
Tue Feb 3 11:39:49 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-18900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037276#comment-13037276 ] 

Vlado Pakan edited comment on JBIDE-18900 at 2/3/15 11:39 AM:
--------------------------------------------------------------

Tested with Windows 7 64 bit and JBT Nightly 2015-02-03_00-49-45-B9473 on Mars with Oracle Java 1.7
* Run w/local FeedHenry Server
** app started without problems
** URL in CordovaSim is http://localhost:50555/index.html?url=http://localhost:8001
** Start page parameter within Run Configuration contains value "index.html?url=http://localhost:8001" and is editable
** when clicking on button "Say Hello From The Cloud" there is no response app is displaying text "Calling Cloud"
** console output:
{noformat}
2015-02-03 17:18:02.845:INFO::JavaFX Application Thread: Logging initialized @15363ms
2015-02-03 17:18:03.354:INFO:oejs.Server:JavaFX Application Thread: jetty-9.2.5.v20141112
2015-02-03 17:18:03.660:INFO:oejsh.ContextHandler:JavaFX Application Thread: Started o.e.j.s.ServletContextHandler at 3cfbb808{/,null,AVAILABLE}
2015-02-03 17:18:03.676:INFO:oejs.ServerConnector:JavaFX Application Thread: Started ServerConnector at cb4f2fe{HTTP/1.1}{0.0.0.0:50558}
2015-02-03 17:18:03.677:INFO:oejs.Server:JavaFX Application Thread: Started @16207ms
!JavaScript ERROR: TypeError: 'null' is not an object (evaluating 'window.localStorage['loglevel']') on line 7403 for http://localhost:50555/feedhenry.js 
!JavaScript ERROR: ReferenceError: Can't find variable: $fh on line 3 for http://localhost:50555/hello.js 
{noformat}
* Run w/remote FeedHenry Server
** app started without problems
** URL in CordovaSim is http://localhost:50577/index.html
** Start page parameter within Run Configuration is set to "Use default" and contains value "index.html"
** when clicking on button "Say Hello From The Cloud" there is no response app is displaying text "Calling Cloud"
** console output:
{noformat}
2015-02-03 17:19:30.097:INFO::JavaFX Application Thread: Logging initialized @12758ms
2015-02-03 17:19:30.809:INFO:oejs.Server:JavaFX Application Thread: jetty-9.2.5.v20141112
2015-02-03 17:19:30.882:INFO:oejsh.ContextHandler:JavaFX Application Thread: Started o.e.j.s.ServletContextHandler at 5ad3deb{/,null,AVAILABLE}
2015-02-03 17:19:30.901:INFO:oejs.ServerConnector:JavaFX Application Thread: Started ServerConnector at 17dca7b8{HTTP/1.1}{0.0.0.0:50580}
2015-02-03 17:19:30.902:INFO:oejs.Server:JavaFX Application Thread: Started @13580ms
!JavaScript ERROR: TypeError: 'null' is not an object (evaluating 'window.localStorage['loglevel']') on line 7403 for http://localhost:50577/feedhenry.js 
!JavaScript ERROR: ReferenceError: Can't find variable: $fh on line 3 for http://localhost:50577/hello.js 
{noformat}
* Run with CordovaSim
** behaves the same way as Run w/remote FeedHenry Server

Since we are using "w/" instead "with" in two menu items we should consider to rename menu item "Run with CordovaSim" to "Run w/CordovaSim"?



was (Author: vpakan):
Tested with Windows 7 64 bit and JBT Nightly 2015-02-03_00-49-45-B9473 on Mars with Oracle Java 1.7
* Run w/local FeedHenry Server
** app started without problems
** URL in CordovaSim is http://localhost:50555/index.html?url=http://localhost:8001
** Start page parameter within Run Configuration contains value index.html?url=http://localhost:8001 and is editable
** when clicking on button "Say Hello From The Cloud" there is no response app is displaying text "Calling Cloud"
** console output:
{noformat}
2015-02-03 17:18:02.845:INFO::JavaFX Application Thread: Logging initialized @15363ms
2015-02-03 17:18:03.354:INFO:oejs.Server:JavaFX Application Thread: jetty-9.2.5.v20141112
2015-02-03 17:18:03.660:INFO:oejsh.ContextHandler:JavaFX Application Thread: Started o.e.j.s.ServletContextHandler at 3cfbb808{/,null,AVAILABLE}
2015-02-03 17:18:03.676:INFO:oejs.ServerConnector:JavaFX Application Thread: Started ServerConnector at cb4f2fe{HTTP/1.1}{0.0.0.0:50558}
2015-02-03 17:18:03.677:INFO:oejs.Server:JavaFX Application Thread: Started @16207ms
!JavaScript ERROR: TypeError: 'null' is not an object (evaluating 'window.localStorage['loglevel']') on line 7403 for http://localhost:50555/feedhenry.js 
!JavaScript ERROR: ReferenceError: Can't find variable: $fh on line 3 for http://localhost:50555/hello.js 
{noformat}
* Run w/remote FeedHenry Server
** app started without problems
** URL in CordovaSim is http://localhost:50577/index.html
** Start page parameter within Run Configuration is set to "Use default" and index.html
** when clicking on button "Say Hello From The Cloud" there is no response app is displaying text "Calling Cloud"
** console output:
{noformat}
2015-02-03 17:19:30.097:INFO::JavaFX Application Thread: Logging initialized @12758ms
2015-02-03 17:19:30.809:INFO:oejs.Server:JavaFX Application Thread: jetty-9.2.5.v20141112
2015-02-03 17:19:30.882:INFO:oejsh.ContextHandler:JavaFX Application Thread: Started o.e.j.s.ServletContextHandler at 5ad3deb{/,null,AVAILABLE}
2015-02-03 17:19:30.901:INFO:oejs.ServerConnector:JavaFX Application Thread: Started ServerConnector at 17dca7b8{HTTP/1.1}{0.0.0.0:50580}
2015-02-03 17:19:30.902:INFO:oejs.Server:JavaFX Application Thread: Started @13580ms
!JavaScript ERROR: TypeError: 'null' is not an object (evaluating 'window.localStorage['loglevel']') on line 7403 for http://localhost:50577/feedhenry.js 
!JavaScript ERROR: ReferenceError: Can't find variable: $fh on line 3 for http://localhost:50577/hello.js 
{noformat}
* Run with CordovaSim
** behaves the same way as Run w/remote FeedHenry Server

Since we are using "w/" instead "with" in two menu items we should consider to rename menu item "Run with CordovaSim" to "Run w/CordovaSim"?


> CordovaSim: Can't run default FeedHenry app locally
> ---------------------------------------------------
>
>                 Key: JBIDE-18900
>                 URL: https://issues.jboss.org/browse/JBIDE-18900
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cordovasim
>    Affects Versions: 4.2.1.Final
>            Reporter: Ilya Buziuk
>            Assignee: Ilya Buziuk
>             Fix For: 4.3.0.Alpha1
>
>         Attachments: configuration.png, cordovasimFH.png, FHshortcuts.png, hello_tom.png, newLaunch.png, preferences.png, ToolsProject-Cloud-App.zip, ToolsProject-Cordova-App.zip
>
>
> Basically, the situation is the following: 
> 1. *ToolsProject-Cordova-App.zip* - is a basic FH hybrid app (all the app does is saying Hello + 'username' from the input field )
> 2. To run this app one simply needs to unpack the archive and import it as a cordova project to the studio
> 3. The application will work with a *remote* server like a charm !hello_tom.png|thumbnail!
> 4. However, there is an option to use *local* server instead of *remote* one
> 5. *ToolsProject-Cloud-App.zip* - is a app for running local server via grunt task runner
> 6. In order to run local server one needs:
> - unpack the app
> - run *npm install .*
> - run *grunt serve*
> Need to find the way to made CordovaSim use this *local* server



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list