I am trying to learn how to use Google Web Toolkit. I followed the
instructions listed on "Getting Started Guide", downloaded the package,
unpacked it and ran the script "./KitchenSink-shell".
When I do so, I get the following message in a pop up window
"Allow access to
'http://www.localhost.com:8888/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html'
for the rest of this session?"
I clicked on "Yes" and another pop up window showed me the following
message.
"www.localhost.com could not be found. Please check the name and try
again."
Google Web Toolkit Development shell shows the following message
[INFO] Starting HTTP on port 8888
[WARN] Confirmation was required to visit untrusted URL:
'http://www.localhost.com:8888/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html[WARN]
reason:
http://www.localhost.com:8888/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html
is not in the whitelist
[WARN] whitelist:
[WARN] To fix: add regex matching URL to -whitelist command line
argument
list:
[WARN] To fix: add regex matching URL to -whitelist command line
argument
[WARN] Example: -whitelist=" ^http://www[.]localhost[.]com:8888"
[[WARN] Example: -blacklist=" ^http://www[.]localhost[.]com:8888"WARN]
To reject automatically: add regex matching URL to -blacklist command
line argument
I tried commands like "./KitchenSink-shell -whitelist="
^http://www[.]localhost[.]com:8888", "./KitchenSink-shell -whitelist="
http://www.localhost.com:8888" etc. But, none of them seem to work. I
also searched through Google for "-whitelist ", but couldn't find much
information to solve this problem.
I have gtk+-1.2.10-29.1.1 and java 1.5.0_08 on a machine running
Fedora.
Any suggestions about how to solve this problem will be of great help.
Thanks,
Ajay.
This sounds like a machine configuration issue. I would check your
/etc/hosts file and be sure it has a line like this:
127.0.0.1 localhost.localdomain localhost
If that doesn't help, try changing the url you use to
http://127.0.0.1:8888/...
Hope this helps,
Scott
Thanks a lot. GWT worked fine when I used http://127.0.0.1:8888/
instead of http://www.localhost.com:8888/
I had the following line
127.0.0.1 localhost.localdomain localhost localhost.com
in my /etc/hosts file and I have now changed it to
127.0.0.1 localhost.localdomain localhost localhost.com
www.localhost.com
and restarted the network connection. But, it did not make any
difference when the URL is
http://www.localhost.com:8888/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html
i.e I still get the same warnings and messages that I posted in my
previous message. I also tried using the following URL
http://localhost:8888/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html
as the URL http://localhost/ works fine for my apache web server. Even
that displayed the same error messages.
Do you have any suggestions about what I might have to do to solve this
problem?
Thanks,
Ajay.
> But, it did not make any difference when the URL is
> http://www.localhost.com:8888/com.google.gwt.sample.kitchensink.KitchenSink/KitchenSink.html
www.localhost.com is the wrong URL entirely. I have no idea why your
browser would be trying to change http://localhost into
http://www.localhost.com. All I can think is that it's reading some
setting from some existing Firefox preferences in your home directory.
Maybe try playing with your Firefox settings?
Either way,
127.0.0.1 localhost.localdomain localhost
is the correct line for your /etc/hosts, there should be any need to
try to resolve localhost.com.
I wish I had better advice!
Scott