RPC slow in hosted mode + external server

2009-03-24 Thread Eros

Hi everyone,

RPC calls to the server suddenly became extremely slow when working in
hosted mode using an external web server. By "extremely slow" I mean
it takes almost 10 seconds to complete the call, during which the
application freezes completely (huge PITA when you start having timers
firing up RPCs every few seconds) . When I compile and deploy the
application to the server everything works smoothly.

The two computers are on a local network, I tried various combinations
like using another server or a virtualbox on the same desktop machine,
no change. I also tried disabling firewalls and everything I could
think of that might interfere with network traffic.

Here's the configuration:

Development machine:

- GWT 1.53
- Eclipse 3.4.2 on Windows XP
- Cypal Studio 1.0

Server:
- Ubuntu server 8.04.1
- Geronimo Tomcat 2.1.3
- Java 1.6

Did anyone have similar problems? Any suggestions as to where I could
look for a solution?

Best,
Eros
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Importing server-side classes

2009-02-18 Thread Eros

Thank you both, I was finally able to do it (I had completely missed
the source tag since it wasn't in any of the sample xml files I used
so far).

And yes, using a separate package for data object is definitely a good
idea, I'll start refactoring right away.

Cheers,
Eros
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Importing server-side classes

2009-02-18 Thread Eros

Hi everybody,

I know this is probably a very stupid question but please bear with
me.

I'm trying to use the same class on server and client (so I don't have
to duplicate code): is it at all possible? Apparently it is, but for
the life of me I can't figure out how to do it, I did the following,
in file Client.java

package my.client;
import my.server.Myclass;

In file Client.gwt.xml I added:



At this point the compiler complained about a missing .gwt.xml file,
so I added a file Myclass.gwt.xml to the my.server directory, the file
looks like this:








but I still get this error:

No source code is available for type my.server.Myclass; did you forget
to inherit a required module?

Any pointers will be very much appreciated.

Cheers,
Eros
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cookies in hosted mode won't go away

2008-11-18 Thread Eros

On Nov 17, 7:21 pm, "yunhui song" <[EMAIL PROTECTED]> wrote:
> Cookies.removeCookie("userId") doesn't work  here too. I use expire time to
> remove it, it works.

Great, thanks for the tip!

E
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cookies in hosted mode won't go away

2008-11-17 Thread Eros

I finally managed to get rid of the cookie: I had set it to expire in
14 days, so I set the system time 30 days in the future and it finally
worked.

Still there's gotta be a way of getting rid of unwanted cookies in
hosted mode, is this a bug? (or maybe a feature ;-))
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Cookies in hosted mode won't go away

2008-11-17 Thread Eros

Hi,

I can't get rid of cookies in hosted mode. I wrote a "userId" cookie
using:

Cookies.setCookie("userId", userId);

and now I can't remove it.

I tried the following:

- Cookies.removeCookie("userId");
- restarting the hosted mode
- Eclipse -> Project -> Clean...
- restarting Eclipse
- removing www
- removing everything under tomcat/work/gwt/localhost/_/

If I do a "Compile/Browse" everything works as expected, cookies get
removed with Cookies.remove or clearing the cache in Firefox.

I use Ubuntu 8.10 and GWT 1.5.3

Any help is appreciated.

Cheers,
Eros

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---