GWT 2.3 error

17 views
Skip to first unread message

wmtr...@yahoo.com

unread,
Jun 22, 2011, 9:38:03 PM6/22/11
to Google Web Toolkit
Hello,

I'm new to GWT so please be understanding. I was trying to build a
URL, basic @ 1st, and then add parameters as I get more familiar. I'm
building within a web application using Java and I was trying to print
out the URL to my JBoss server:

String url = urlBuilder.buildString();
System.out.println("URL " + url);

However, I get an error @ the String url line:

java.lang.UnsatisfiedLinkError:
com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/
lang/String;
at com.google.gwt.http.client.URL.encodeImpl(Native Method)
at com.google.gwt.http.client.URL.encode(URL.java:155)
.....

Does anyone know how to resolve this error? Any help would be greatly
appreciated.

Thanks

Colin Alworth

unread,
Jun 26, 2011, 2:03:07 PM6/26/11
to google-we...@googlegroups.com
"com.google.gwt.http.client.URL"
The client package in that indicates that this class is only to be used in client code, code that is compiled to JS. This is causing problems for you, as part of that class is implemented using native JS, which of course JBoss can't run.

You'll need to find another class like URL that can be used on the server. Classes that appear in GWT that can be used on the server are in the .shared or .server packages.
Reply all
Reply to author
Forward
0 new messages