YomeKitsuma
11 Oct 2012, 11:40 PM
Hi,
Here what i've got when build with ant (sencha ant build) :
Creating Application Cache with manifest http://dev.tag-all.com:28880/build/TagAll/production/cache.appcache
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 1) http://dev.tag-all.com:28880/build/TagAll/production/index.html
Application Cache Progress event (1 of 1)
Application Cache Cached event
Failed to load resource: the server responded with a status of 404 (Not Found) http://dev.tag-all.com:28880/build/TagAll/production/event/publisher/Dom.js?_dc=1350026474009
This is something that I've got in "development" when I do not properly set the "Ext.Loader.setPath"
With =
//<debug>
Ext.Loader.setPath({
'Ext': '../../../../Library/touch/src',
'Tall' : '../../../../Library/tall/src',
'TagAll': 'app'
});
//</debug>
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.component' of: 'Ext.dataview.DataView' with: 'Ext.Component'. Be sure it's intentional.sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.mask' of: 'Ext.LoadMask' with: 'Ext.Mask'. Be sure it's intentional. sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.container' of: 'Ext.dataview.DataView' with: 'Ext.Container'. Be sure it's intentional. sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.viewport' of: 'Ext.viewport.Android' with: 'Ext.viewport.Default'. Be sure it's intentional. sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
All go fine...
And without =
//<debug>
Ext.Loader.setPath({
//'Ext': '../../../../Library/touch/src',
'Tall' : '../../../../Library/tall/src',
'TagAll': 'app'
});
//</debug>
sencha-touch.js:9942 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
GET http://dev.tag-all.com:28880/TagAll/tagall/applications/mobile/event/Dispatcher.js?_dc=1350027513861 404 (Not Found) sencha-touch.js:7977 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
GET http://dev.tag-all.com:28880/TagAll/tagall/applications/mobile/event/publisher/Dom.js?_dc=1350027513871 404 (Not Found) sencha-touch.js:7977 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
Uncaught Error: [Ext.Loader] Failed loading './event/Dispatcher.js', please verify that the file exists sencha-touch.js:8319 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
Uncaught Error: [Ext.Loader] Failed loading './event/publisher/Dom.js', please verify that the file exists sencha-touch.js:8319 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
What I've understood is that issue comes from the "microloader"...
So actually it seems that is the only last step to have a good build (ok, there is also the problem pointed else where, that the app.appcache has a final "," which cause problem)
So, I'am adding in "app.js" the Requires for ALL the Ext event...
Ext.application({
name : 'TagAll',
requires : [
'Ext.MessageBox',
//-----fixing bug for build---------------
'Ext.event.*',
//----------------------------------------
'Ext.data.proxy.LocalStorage',
And now.... HOW FUNNY... i'am getting this error :
Document was loaded from Application Cache with manifest http://dev.tag-all.com:28880/build/TagAll/production/cache.appcache
Application Cache Checking event
Application Cache NoUpdate event
GET http://dev.tag-all.com:28880/build/TagAll/production/chart/series/ItemPublisher.js?_dc=1350030457345 404 (Not Found) ItemPublisher.js:1 (http://dev.tag-all.com:28880/build/TagAll/production/chart/series/ItemPublisher.js?_dc=1350030457345)
/chart/series/ItemPublisher.js
...but the application EVER NEVER USED CHART !!!!!!!!!
Here what i've got when build with ant (sencha ant build) :
Creating Application Cache with manifest http://dev.tag-all.com:28880/build/TagAll/production/cache.appcache
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 1) http://dev.tag-all.com:28880/build/TagAll/production/index.html
Application Cache Progress event (1 of 1)
Application Cache Cached event
Failed to load resource: the server responded with a status of 404 (Not Found) http://dev.tag-all.com:28880/build/TagAll/production/event/publisher/Dom.js?_dc=1350026474009
This is something that I've got in "development" when I do not properly set the "Ext.Loader.setPath"
With =
//<debug>
Ext.Loader.setPath({
'Ext': '../../../../Library/touch/src',
'Tall' : '../../../../Library/tall/src',
'TagAll': 'app'
});
//</debug>
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.component' of: 'Ext.dataview.DataView' with: 'Ext.Component'. Be sure it's intentional.sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.mask' of: 'Ext.LoadMask' with: 'Ext.Mask'. Be sure it's intentional. sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.container' of: 'Ext.dataview.DataView' with: 'Ext.Container'. Be sure it's intentional. sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
[INFO] [Ext.ClassManager] Overriding existing alias: 'widget.viewport' of: 'Ext.viewport.Android' with: 'Ext.viewport.Default'. Be sure it's intentional. sencha-touch.js:600 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
All go fine...
And without =
//<debug>
Ext.Loader.setPath({
//'Ext': '../../../../Library/touch/src',
'Tall' : '../../../../Library/tall/src',
'TagAll': 'app'
});
//</debug>
sencha-touch.js:9942 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
GET http://dev.tag-all.com:28880/TagAll/tagall/applications/mobile/event/Dispatcher.js?_dc=1350027513861 404 (Not Found) sencha-touch.js:7977 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
GET http://dev.tag-all.com:28880/TagAll/tagall/applications/mobile/event/publisher/Dom.js?_dc=1350027513871 404 (Not Found) sencha-touch.js:7977 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
Uncaught Error: [Ext.Loader] Failed loading './event/Dispatcher.js', please verify that the file exists sencha-touch.js:8319 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
Uncaught Error: [Ext.Loader] Failed loading './event/publisher/Dom.js', please verify that the file exists sencha-touch.js:8319 (http://dev.tag-all.com:28880/Library/touch/sencha-touch.js)
What I've understood is that issue comes from the "microloader"...
So actually it seems that is the only last step to have a good build (ok, there is also the problem pointed else where, that the app.appcache has a final "," which cause problem)
So, I'am adding in "app.js" the Requires for ALL the Ext event...
Ext.application({
name : 'TagAll',
requires : [
'Ext.MessageBox',
//-----fixing bug for build---------------
'Ext.event.*',
//----------------------------------------
'Ext.data.proxy.LocalStorage',
And now.... HOW FUNNY... i'am getting this error :
Document was loaded from Application Cache with manifest http://dev.tag-all.com:28880/build/TagAll/production/cache.appcache
Application Cache Checking event
Application Cache NoUpdate event
GET http://dev.tag-all.com:28880/build/TagAll/production/chart/series/ItemPublisher.js?_dc=1350030457345 404 (Not Found) ItemPublisher.js:1 (http://dev.tag-all.com:28880/build/TagAll/production/chart/series/ItemPublisher.js?_dc=1350030457345)
/chart/series/ItemPublisher.js
...but the application EVER NEVER USED CHART !!!!!!!!!