ibm mobilefirst - IBM Worklight 6.0 - Dojo library uses localhost after deploy -
i have worklight 6.0 project uses new dojo 1.9 libs, created external dojo project, documentation suggested, then, in main project properties, under "dojo toolkit", references dojo19 project.
the project works on local server, did "run as" | "build remote server...", , entered correct domain:port , context path, clicked build, *.wlapp files updated. (i've updated settings publicworklighthostname / publicworklightport / publicworklightprotocol in "environment entries web modules" in installed war match remote server names/port/protocol.)
but, after deploying both war , -all.wlapp file, accessing app js errors when tries refer dojo19 library:
page @ https://<myip>:9443/<myproject>/apps/services/www/ /mobilewebapp/default/iodmobile.html ran insecure content http://localhost:64441/dojo19/<myproject>/iodmobile/mobilewebapp/dojo/nls/core-web-layer_en-us.js.
the dojo19 project name in worklight developer workspace referred above.
why trying localhost? seems there's missing step here in deploying dojo library project worklight.
where trying preview application when error message?
- see changes in dojo in worklight 6.0
- if launching application in emulator/simulator/device, see billy rowe's answer in question
partial copy/paste:
step 1: verify application works in mobile browser simulator provide library resources checked. if console log showing resources being served server, these have copied application before deploying avd or device
step 2: after think have dojo/resources within project, uncheck provide library resources , test again in mbs. if fails in mbs, missing in application in library/server. can check provide library resources , retest see if shows is. not resources shown, e.g. if there's missing css file.
also suggest of in development environment (that is, in eclipse) before starting deploy .war file , .wlapp file etc... (which, btw, hope you're doing based on new instructions worklight 6.0)
Comments
Post a Comment