08-25-2010 10:01 PM
I am developing a widget that call a website (jsp + servlet). Because this website hasn't been published, and located in my office network, I don't activate MDS simulator to access this website. I just start my webserver, and run my widget on a Blackberry Simulator (9550). It works perfectly. I can see all pages and also all servlets are working correctly.
Then I notice a problem on this simulator. I cannot see any images that should be appeared on my website. I try to change simulator, and still have the same problem. But if I try to access a website outside of my office, like Google, it works perfectly. All images are showing.
Anyone can help me to solve this problem? As an additional information, my office network uses a proxy server to connect to internet. Thank you.
08-26-2010 09:13 AM
Are your images coming from a different domain than the pages you are using in the widget? If so you must white list their origins.
I'm just trying to figure out if it is a whitelisting issue or if there is an issue with the proxy configuration.
08-26-2010 09:45 PM
No, all of my images are on the same location, also I have listed them on the config file. Another strange thing, I have made another application, Java Application (not a widget) to access the same web page. And everything works well. All images are appear. But I have another problem with this application, I still do not know how to set the proxy information.
Thanks and regards,
08-26-2010 09:56 PM
Sorry, wrong information.. not a proxy config, but DNS config, because I've got this error: net.rim.device.cldc.io.dns.DNSException: DNS error. What is it mean????
Thanks and regards,
08-27-2010 09:00 AM
So you have created a Java application with BrowserField2 and loaded the page with your contents fine?
If that is the case, then it would lead me to believe that it has something to do with the whitelisting.
Can you post the full path of the image that you are trying to load and also the <access> section of your config.xml file so that we can take a look.
09-01-2010 01:44 AM
Sorry for late response.
Here is the <access> section:
<access uri="http://192.168.10.130:9080/ehmsweb/images/logoASM.jpg" subdomains="true"></access>
<access uri="http://192.168.10.130:9080/ehmsweb/images/logoASM.png" subdomains="true"></access>
I can see the image through Browser Application, but not through my widget.
09-01-2010 09:03 AM
09-03-2010 09:04 AM
The problem was that you were whitelisting the actual resource and not its origin. The whitelist is based on origin/domains
Everything is evaluated using the same origin policy. You can find out more on the same origin policy here: