Re: GWT + URL Rewriting (Apache)

2010-03-11 Thread Fabiano
Sometimes, having the application relative path different form the
relative path inside the AP (context) causes seriaization issues.
In case you like to mount :8080/MyApps/  to :80/site/things/
MyApps  serialization is not going to work.
My suggestion is:
Load the nocache.js using relative paths src="/MyApps" and sets things
in ordet to fit the relative paths: :8080/MyApps  :80/MyApps ..
I have never used this mount stuff, I have only used Squid redirection
but should be a similar problem.
Reagrds

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread Chris Lercher
Hey Rudolf,

well, I don't think so! As long as he isn't redirecting from http://mydomain
to http://mydomain:8080 (and according to his description, he
doesn't), everything is fine. He's using jk to mount the tomcat dir
internally, but that's ok.

Chris

On Mar 10, 4:30 pm, rudolf michael  wrote:
> hey Chris,
> You missed out the port 8080.
> apparently he is using apache on port 80 and tomcat on port 
> 8080.http://mydomain:8080is not the same ashttp://mydomain. those are 2
> different domains.
>
> On Wed, Mar 10, 2010 at 5:25 PM, Chris Lercher wrote:
>
>
>
> > I think he isn't doing cross domain calls (the redirect is just from
> >http://mydomain/tohttp://mydomain/MyApp/)
>
> > There was someone with a very similar question on this forum just a
> > few days ago (I can't find the post anymore, maybe you'll find it). I
> > think the solution may have had something to do with the context root
> > of the application (?!)
>
> > What I would do is try to access the servlet directly from the browser
> > (yes, it will tell you, that the GET method isn't supported, but
> > you'll see, if the URL is correct)
>
> > hth
> > Chris
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
hey Chris,
You missed out the port 8080.
apparently he is using apache on port 80 and tomcat on port 8080.
http://mydomain:8080 is not the same as http://mydomain. those are 2
different domains.

On Wed, Mar 10, 2010 at 5:25 PM, Chris Lercher wrote:

> I think he isn't doing cross domain calls (the redirect is just from
> http://mydomain/ to http://mydomain/MyApp/)
>
> There was someone with a very similar question on this forum just a
> few days ago (I can't find the post anymore, maybe you'll find it). I
> think the solution may have had something to do with the context root
> of the application (?!)
>
> What I would do is try to access the servlet directly from the browser
> (yes, it will tell you, that the GET method isn't supported, but
> you'll see, if the URL is correct)
>
> hth
> Chris
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread Chris Lercher
I think he isn't doing cross domain calls (the redirect is just from
http://mydomain/ to http://mydomain/MyApp/)

There was someone with a very similar question on this forum just a
few days ago (I can't find the post anymore, maybe you'll find it). I
think the solution may have had something to do with the context root
of the application (?!)

What I would do is try to access the servlet directly from the browser
(yes, it will tell you, that the GET method isn't supported, but
you'll see, if the URL is correct)

hth
Chris

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
Check this out,
http://raibledesigns.com/rd/entry/how_to_do_cross_domain#proxyServlet
hope
that this will help you.
you cannot cross domain AJAX calls ==> http/rpc requests, i wasn't pointing
to the static content like html/images/css

On Wed, Mar 10, 2010 at 4:43 PM, jbroquefere <
jeanbaptiste.roquef...@gmail.com> wrote:

> yes, but this step works fine i said :)
>
> in tomcat
> http://mydomain:8080/MyApp/
>
> with jkmount
> http://mydomain/MyApp/   -> this one works fine
>
> after this step, i want to ise apache url rewriting to access my site
> directly with
> http://mydomain/
>
> the Myapp.html is found, because widgets are displayed, but RPC
> failed.
>
>
> On Mar 10, 3:39 pm, rudolf michael  wrote:
> > http://mydomain:8080/MyApp/is NOT the same ashttp://mydomain/MyApp/
> > those are 2 different domains.
> >
> > On Wed, Mar 10, 2010 at 3:34 PM, jbroquefere <
> >
> >
> >
> > jeanbaptiste.roquef...@gmail.com> wrote:
> > > in my configuration, domain is the same
> >
> > > in tomcat
> > >http://mydomain:8080/MyApp/
> >
> > > with jkmount
> > >http://mydomain/MyApp/
> >
> > > and the last step which doesnt work
> > >http://mydomain/
> >
> > > the html file is found, but the first call to the service failed.
> >
> > > On Mar 10, 1:41 pm, rudolf michael  wrote:
> > > > you need to know that GWT/ajax does not allow cross domain
> communication.
> >
> > > > Apparently you have a security problem with cross domain
> communication.
> >
> > > > On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere <
> >
> > > > jeanbaptiste.roquef...@gmail.com> wrote:
> > > > > Hello everybody,
> > > > > i have to publish my gwt app under jkmount + url rewriting.
> >
> > > > > Just under jkmount, everything works fine
> > > > > but when i use url rewriting, it does not work.
> > > > > I have thie error (on my tomcat console):
> > > > > com.google.gwt.user.client.rpc.SerializationException: Type
> > > > > 'com.my.comp.MyObject' was not assignable to
> > > > > 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
> > > > > custom field serializer.For security purposes, this type will not
> be
> > > > > serialized.: instance = enterprise
> >
> > > > > MyObj is a simple enum, and i repeat everythings works fine under
> > > > > tomcat, then under apache+jkmount (which redirect to apache), but
> it
> > > > > doesnt work with url rewriting.
> >
> > > > > Is there a way to make it working fine?
> >
> > > > > Regards,
> >
> > > > > Jean-Baptiste Roquefère
> >
> > > > > --
> > > > > 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-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com> > > cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread jbroquefere
yes, but this step works fine i said :)

in tomcat
http://mydomain:8080/MyApp/

with jkmount
http://mydomain/MyApp/   -> this one works fine

after this step, i want to ise apache url rewriting to access my site
directly with
http://mydomain/

the Myapp.html is found, because widgets are displayed, but RPC
failed.


On Mar 10, 3:39 pm, rudolf michael  wrote:
> http://mydomain:8080/MyApp/is NOT the same ashttp://mydomain/MyApp/
> those are 2 different domains.
>
> On Wed, Mar 10, 2010 at 3:34 PM, jbroquefere <
>
>
>
> jeanbaptiste.roquef...@gmail.com> wrote:
> > in my configuration, domain is the same
>
> > in tomcat
> >http://mydomain:8080/MyApp/
>
> > with jkmount
> >http://mydomain/MyApp/
>
> > and the last step which doesnt work
> >http://mydomain/
>
> > the html file is found, but the first call to the service failed.
>
> > On Mar 10, 1:41 pm, rudolf michael  wrote:
> > > you need to know that GWT/ajax does not allow cross domain communication.
>
> > > Apparently you have a security problem with cross domain communication.
>
> > > On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere <
>
> > > jeanbaptiste.roquef...@gmail.com> wrote:
> > > > Hello everybody,
> > > > i have to publish my gwt app under jkmount + url rewriting.
>
> > > > Just under jkmount, everything works fine
> > > > but when i use url rewriting, it does not work.
> > > > I have thie error (on my tomcat console):
> > > > com.google.gwt.user.client.rpc.SerializationException: Type
> > > > 'com.my.comp.MyObject' was not assignable to
> > > > 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
> > > > custom field serializer.For security purposes, this type will not be
> > > > serialized.: instance = enterprise
>
> > > > MyObj is a simple enum, and i repeat everythings works fine under
> > > > tomcat, then under apache+jkmount (which redirect to apache), but it
> > > > doesnt work with url rewriting.
>
> > > > Is there a way to make it working fine?
>
> > > > Regards,
>
> > > > Jean-Baptiste Roquefère
>
> > > > --
> > > > 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-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
http://mydomain:8080/MyApp/ is NOT the same as http://mydomain/MyApp/
those are 2 different domains.

On Wed, Mar 10, 2010 at 3:34 PM, jbroquefere <
jeanbaptiste.roquef...@gmail.com> wrote:

> in my configuration, domain is the same
>
> in tomcat
> http://mydomain:8080/MyApp/
>
> with jkmount
> http://mydomain/MyApp/
>
> and the last step which doesnt work
> http://mydomain/
>
> the html file is found, but the first call to the service failed.
>
>
> On Mar 10, 1:41 pm, rudolf michael  wrote:
> > you need to know that GWT/ajax does not allow cross domain communication.
> >
> > Apparently you have a security problem with cross domain communication.
> >
> > On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere <
> >
> >
> >
> > jeanbaptiste.roquef...@gmail.com> wrote:
> > > Hello everybody,
> > > i have to publish my gwt app under jkmount + url rewriting.
> >
> > > Just under jkmount, everything works fine
> > > but when i use url rewriting, it does not work.
> > > I have thie error (on my tomcat console):
> > > com.google.gwt.user.client.rpc.SerializationException: Type
> > > 'com.my.comp.MyObject' was not assignable to
> > > 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
> > > custom field serializer.For security purposes, this type will not be
> > > serialized.: instance = enterprise
> >
> > > MyObj is a simple enum, and i repeat everythings works fine under
> > > tomcat, then under apache+jkmount (which redirect to apache), but it
> > > doesnt work with url rewriting.
> >
> > > Is there a way to make it working fine?
> >
> > > Regards,
> >
> > > Jean-Baptiste Roquefère
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread jbroquefere
in my configuration, domain is the same

in tomcat
http://mydomain:8080/MyApp/

with jkmount
http://mydomain/MyApp/

and the last step which doesnt work
http://mydomain/

the html file is found, but the first call to the service failed.


On Mar 10, 1:41 pm, rudolf michael  wrote:
> you need to know that GWT/ajax does not allow cross domain communication.
>
> Apparently you have a security problem with cross domain communication.
>
> On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere <
>
>
>
> jeanbaptiste.roquef...@gmail.com> wrote:
> > Hello everybody,
> > i have to publish my gwt app under jkmount + url rewriting.
>
> > Just under jkmount, everything works fine
> > but when i use url rewriting, it does not work.
> > I have thie error (on my tomcat console):
> > com.google.gwt.user.client.rpc.SerializationException: Type
> > 'com.my.comp.MyObject' was not assignable to
> > 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
> > custom field serializer.For security purposes, this type will not be
> > serialized.: instance = enterprise
>
> > MyObj is a simple enum, and i repeat everythings works fine under
> > tomcat, then under apache+jkmount (which redirect to apache), but it
> > doesnt work with url rewriting.
>
> > Is there a way to make it working fine?
>
> > Regards,
>
> > Jean-Baptiste Roquefère
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
you need to know that GWT/ajax does not allow cross domain communication.

Apparently you have a security problem with cross domain communication.

On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere <
jeanbaptiste.roquef...@gmail.com> wrote:

> Hello everybody,
> i have to publish my gwt app under jkmount + url rewriting.
>
> Just under jkmount, everything works fine
> but when i use url rewriting, it does not work.
> I have thie error (on my tomcat console):
> com.google.gwt.user.client.rpc.SerializationException: Type
> 'com.my.comp.MyObject' was not assignable to
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
> custom field serializer.For security purposes, this type will not be
> serialized.: instance = enterprise
>
> MyObj is a simple enum, and i repeat everythings works fine under
> tomcat, then under apache+jkmount (which redirect to apache), but it
> doesnt work with url rewriting.
>
> Is there a way to make it working fine?
>
> Regards,
>
> Jean-Baptiste Roquefère
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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.



GWT + URL Rewriting (Apache)

2010-03-10 Thread jbroquefere
Hello everybody,
i have to publish my gwt app under jkmount + url rewriting.

Just under jkmount, everything works fine
but when i use url rewriting, it does not work.
I have thie error (on my tomcat console):
com.google.gwt.user.client.rpc.SerializationException: Type
'com.my.comp.MyObject' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer.For security purposes, this type will not be
serialized.: instance = enterprise

MyObj is a simple enum, and i repeat everythings works fine under
tomcat, then under apache+jkmount (which redirect to apache), but it
doesnt work with url rewriting.

Is there a way to make it working fine?

Regards,

Jean-Baptiste Roquefère

-- 
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-tool...@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.