Untrusted URL

34 views
Skip to first unread message

eduard...@gmail.com

unread,
Oct 2, 2006, 2:57:38 PM10/2/06
to Google Web Toolkit
Please, somebody can help me.

I' using Ubuntu and I'm loosing my mind with the "Untrusted URL" error
in hosted mode.
I'm already tryied de tips in that below post.

thanx a lot

post:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/94ebd4fb141163d8/9b9be1aa371545bd?lnk=st&q=%22Confirmation+was+required+to+visit+untrusted+URL%22&rnum=1#9b9be1aa371545bd

My /etc/hosts, apolo is the machine name, change that causes a "sudo
error":
127.0.0.1 apolo.localdomain apolo

Error in hosted mode:
[WARN] Confirmation was required to visit untrusted URL:
'http://www.localhost.com:8888/com.destaca.testes.FirstGWT/FirstGWTInLinux.html

[WARN] reason:
http://www.localhost.com:8888/com.destaca.testes.FirstGWT/FirstGWT.html
is not in the whitelist

I tried add whitelist in *.shell file:
#!/bin/sh
APPDIR=`dirname $0`;
java -cp
"$APPDIR/src:$APPDIR/bin:/home/eduardo/Sites/GWTTeste/gwt-user.jar:/home/eduardo/Sites/GWTTeste/gwt-dev-linux.jar"
com.google.gwt.dev.GWTShell -whitelist
"^http[:][/][/]www[.]localhost[.]com[:]8888" -out "$APPDIR/www" "$@"
com.destaca.testes.FirstGWT/FirstGWT.html

the error:
www.localhost.com could not be found. Please check the name and try
again

Chad Bourque

unread,
Oct 2, 2006, 4:15:34 PM10/2/06
to Google-We...@googlegroups.com
The way I did it was in Eclipse, under the Run menu, choose Run... Then, on the Arguments tab, I added this before the -out ...

-whitelist " ^http://webdev"

Of course, you should be able to just paste the warning you got there. If you aren't using Eclipse, then, I don't know where you'd put it.

HTH,
Chad
--
There are two types of people in the world:
  * Those who need closure

eduard...@gmail.com

unread,
Oct 3, 2006, 8:09:44 AM10/3/06
to Google Web Toolkit
Thanks a lot

I'd other problems with apache linux too, then I give up. Maybe other
day....

Reply all
Reply to author
Forward
0 new messages