Mehretab,
I am not very familiar with Tomcat but it sounds like a permissions issue. Are you adding the WAB app files to the webapps folder in your Tomcat deployment?
I hope by now you are awake and thanks for the reply. Yes my WAB app files are in the webapps folder. My services are publicly shared in portal and I have ofcourse an esri base map. My question is Is it necessary/must to set a proxy? The mystery for me is it works fine in my offices browsers but not if I want to access it at home form my machine. Are they extra steps in the deployment that deals with permission issues?
Mehretab,
No a Proxy is only necessary when using secured services or wanting to use services that require credits on AGOL or geometry service operations that need to use POST instead of PUT. There is no extra steps dealing with permissions that I am aware of.
Robert,
It would be interesting to try it on IIS server to see if the Tomcat deployment process is the problem. Do you know some free providers.
Mehretab,
If you are using MS Windows OS then you have free access to IIS.
Robert,
yes you are right but unfortunately our organisation disabled it.
So you just go to control panel > Programs and Features > Turn Windows features on or off > Internet Information Services and add it.
If their IT/administrators give them the ability to do that (our blocks it for us now).
Mehretab Tquabo Sium Is it a public web site that you can share? That way others can test browsers they have since it may be something that is blocked by your home browser.
Otherwise, I agree with Robert that is something that is being blocked by Tomcat, possibly external permission access to "/...../..../jimu.js/statisticsUtils.js" ?? My guess is you modified the path, but if not, maybe it doesn't recognize the path (just guessing here. I haven't used Tomcat for a long time either)
Mehretab...we deploy our apps from WAB Developer to IIS; however, we have to modify the env.js file for each app to call out the proper URL for the Esri JavaScript API once published to IIS. On line 61 of the file, I change the string...
FROM:
apiUrl = null,
TO:
apiUrl = '//js.arcgis.com/3.19',
Referenced here: https://developers.arcgis.com/web-appbuilder/sample-code/change-url-of-arcgis-api-for-javascript.htm