Re: Call on a GWT module from a servlet

2011-07-12 Thread Sethu
Hi Magno,

Thanks for the reply. I will try doing that.

Thanks
Sethu

On Jul 11, 4:21 pm, Magno Machado magn...@gmail.com wrote:
 You can have the servlet output an html page that loads your gwt app (that
 is, it load the 
 yourApp.nocache.js)http://code.google.com/intl/pt-BR/webtoolkit/articles/dynamic_host_pa...









 On Mon, Jul 11, 2011 at 1:38 AM, Sethu writetose...@googlemail.com wrote:
  Hi,

  I am little confused, the subject does not describe correctly what I
  need to do. Here's the thing:

  I have a GWT application which I need to integrate with a third party
  payment gateway. To make this work, I need to make my GWT application
  send a few parameters via a form and post it to a URL that the payment
  gateway has given me. That's easy to do, I create a FormPanel and
  created all the inputs and the hidden fields that are required and I
  can submit to the URL.

  The problem is the redirect URL. After the payment gateway process
  completes, it will redirect the user to my GWT application. I thought
  I'll create a servlet to receive the response. I can handle the
  response, make updates to my database.

  But now how do I transfer the control back to the GWT client module to
  show the user what has happened?

  I need to say it was successful or not and whether an email was sent
  or not extra. Also I need to share a serial ID with them. That's what
  they purchase actually.

  Could someone tell me if this the right way of doing this? Or should
  the redirect URL be handled by the client modules first and then from
  there I should route via RPC to a RemoteService? In that case, how do
  I send all the other stuff the payment gateway has sent to me in the
  request?

  Thanks
  Sethu

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

 --
 Magno Machado 
 Paulohttp://blog.magnomachado.com.brhttp://code.google.com/p/emballo/

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



Call on a GWT module from a servlet

2011-07-10 Thread Sethu
Hi,

I am little confused, the subject does not describe correctly what I
need to do. Here's the thing:

I have a GWT application which I need to integrate with a third party
payment gateway. To make this work, I need to make my GWT application
send a few parameters via a form and post it to a URL that the payment
gateway has given me. That's easy to do, I create a FormPanel and
created all the inputs and the hidden fields that are required and I
can submit to the URL.

The problem is the redirect URL. After the payment gateway process
completes, it will redirect the user to my GWT application. I thought
I'll create a servlet to receive the response. I can handle the
response, make updates to my database.

But now how do I transfer the control back to the GWT client module to
show the user what has happened?

I need to say it was successful or not and whether an email was sent
or not extra. Also I need to share a serial ID with them. That's what
they purchase actually.

Could someone tell me if this the right way of doing this? Or should
the redirect URL be handled by the client modules first and then from
there I should route via RPC to a RemoteService? In that case, how do
I send all the other stuff the payment gateway has sent to me in the
request?

Thanks
Sethu

-- 
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: Plugin fails to connect to hosted mode server

2010-12-24 Thread Sethu
Not seeing any alternative. I have raised an issue for this
http://code.google.com/p/google-web-toolkit/issues/detail?id=5815


On Dec 23, 8:17 am, Sethu writetose...@googlemail.com wrote:
 Hi Chris,

 I did what you told me. I added both 127.0.0.1 and localhost to the
 allowed hosts in the GWT plugin of chrome. Actually it says you need
 to add one only if you are doing some cross machine debugging. I am
 connecting from localhost only.

 Not sure what more to do. I have started up tomcat within eclipse and
 pointed the war folder to it and I am somehow working with it. I need
 to deploy the code everytime to test and no it does not help in
 debugging client code.

 Sethu

 On Dec 22, 8:32 pm, Chris Conroy con...@google.com wrote:







  You don't need to add entries for localhost since those are allowed by
  default.

  When you get the error do you see the GWT toolbox turn gray? Click it, then
  click Update Your Configuration. It will autofill the options page with
  the host it detected and you can add it to your whitelist. Once added,
  refresh and you should connect and see the toolbox turn red.

  On Wed, Dec 22, 2010 at 10:18 AM, Sethu writetose...@googlemail.com wrote:
   Unfortunately I dont have an entry in my hosts file. I added a
   localhost 127.0.0.1 for an extra measure and tried and still got the
   same error.
   Does anyone know why this is happening? The plug ins on chrome,
   firefox, and IE all of them consistently give me the same error.

   On Dec 22, 7:53 pm, Glenn Davies glennats...@gmail.com wrote:
...and it turns out that there's a simple answer.

We use a hosts file entry (e.g. app.local.com) which resolves to
   127.0.0.1
so we can use a development SSL certificate on all dev machines. 
Although
this host is 127.0.0.1, you need to add app.local.com to the list of
   allowed
hosts in the Chrome dev mode plugin as it seems the check is on the host
name not the IP address to which the host name resolves - which is fair
enough I suppose.

Glenn

   --
   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.comgoogle-web-toolkit%2Bunsubs
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: Plugin fails to connect to hosted mode server

2010-12-22 Thread Sethu
Unfortunately I dont have an entry in my hosts file. I added a
localhost 127.0.0.1 for an extra measure and tried and still got the
same error.
Does anyone know why this is happening? The plug ins on chrome,
firefox, and IE all of them consistently give me the same error.


On Dec 22, 7:53 pm, Glenn Davies glennats...@gmail.com wrote:
 ...and it turns out that there's a simple answer.

 We use a hosts file entry (e.g. app.local.com) which resolves to 127.0.0.1
 so we can use a development SSL certificate on all dev machines. Although
 this host is 127.0.0.1, you need to add app.local.com to the list of allowed
 hosts in the Chrome dev mode plugin as it seems the check is on the host
 name not the IP address to which the host name resolves - which is fair
 enough I suppose.

 Glenn

-- 
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: Plugin fails to connect to hosted mode server

2010-12-22 Thread Sethu
Hi Chris,

I did what you told me. I added both 127.0.0.1 and localhost to the
allowed hosts in the GWT plugin of chrome. Actually it says you need
to add one only if you are doing some cross machine debugging. I am
connecting from localhost only.

Not sure what more to do. I have started up tomcat within eclipse and
pointed the war folder to it and I am somehow working with it. I need
to deploy the code everytime to test and no it does not help in
debugging client code.

Sethu

On Dec 22, 8:32 pm, Chris Conroy con...@google.com wrote:
 You don't need to add entries for localhost since those are allowed by
 default.

 When you get the error do you see the GWT toolbox turn gray? Click it, then
 click Update Your Configuration. It will autofill the options page with
 the host it detected and you can add it to your whitelist. Once added,
 refresh and you should connect and see the toolbox turn red.







 On Wed, Dec 22, 2010 at 10:18 AM, Sethu writetose...@googlemail.com wrote:
  Unfortunately I dont have an entry in my hosts file. I added a
  localhost 127.0.0.1 for an extra measure and tried and still got the
  same error.
  Does anyone know why this is happening? The plug ins on chrome,
  firefox, and IE all of them consistently give me the same error.

  On Dec 22, 7:53 pm, Glenn Davies glennats...@gmail.com wrote:
   ...and it turns out that there's a simple answer.

   We use a hosts file entry (e.g. app.local.com) which resolves to
  127.0.0.1
   so we can use a development SSL certificate on all dev machines. Although
   this host is 127.0.0.1, you need to add app.local.com to the list of
  allowed
   hosts in the Chrome dev mode plugin as it seems the check is on the host
   name not the IP address to which the host name resolves - which is fair
   enough I suppose.

   Glenn

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  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.



Plugin fails to connect to hosted mode server

2010-12-21 Thread Sethu
Hi,

When I try to run the GWTs sample application project in the hosted
mode on chrome, the static parts of the page load and then it throws
an error saying plug in fails to connect to the hosted mode web
server.

My system config is below:
OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
on)
JDK: java 6 update 23 (64 bit JVM)
Eclipse Helios: 64 bit
GWT SDK : 2.1

I have installed the 32 bit jdk and in the run configurations I am
ensuring that the JVM that its running on is 32 bit.

The same thing works on my other PC running windows XP on a 32 bit
JVM.

I am not sure what I am doing wrong. Could someone please help...

Thanks
Sethu

-- 
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: Plugin fails to connect to hosted mode server

2010-12-21 Thread Sethu
There isn't any. In the development mode, I dont see anything in red.
In the console of the started application there is nothing printed
either.  This is while running the sample project.
I have another project that I had developed which suffers from the
same problem. This project works fine on the PC that is running XP (32
bit). But when I move to the 64 bit win 7 machine, the server starts
up (i have a start up servlet that inialises stuff and logs to the
console). But when I go to the browser and try to connect, it throws
the failed to connect to the hosted mode error.
Actually, it fails to connect to any of the other servlets I had
written as well.


On Dec 21, 9:11 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 Please show us the stack trace

 Thanks

 - Reply message -
 From: Sethu writetose...@googlemail.com
 Date: Tue, Dec 21, 2010 2:36 am
 Subject: Plugin fails to connect to hosted mode server
 To: Google Web Toolkit google-web-toolkit@googlegroups.com

 Hi,

 When I try to run the GWTs sample application project in the hosted
 mode on chrome, the static parts of the page load and then it throws
 an error saying plug in fails to connect to the hosted mode web
 server.

 My system config is below:
 OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
 on)
 JDK: java 6 update 23 (64 bit JVM)
 Eclipse Helios: 64 bit
 GWT SDK : 2.1

 I have installed the 32 bit jdk and in the run configurations I am
 ensuring that the JVM that its running on is 32 bit.

 The same thing works on my other PC running windows XP on a 32 bit
 JVM.

 I am not sure what I am doing wrong. Could someone please help...

 Thanks
 Sethu

 --
 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 
 athttp://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: Plugin fails to connect to hosted mode server

2010-12-21 Thread Sethu
Hi Alan,

Thanks for helping..

I tried telnetting and it was successful. I tried  and I got a
blank screen. I also tried 9997 and I got some weird characters
printed on the screen.
I tried deleting the directories under the war created by GWT,
restarted the server - same response
I tried deleting the classes under web-inf, restarted the server -
same response

I changed the debug level to All and got a warning saying no
favicon.ico. I put an icon file in there and then I got a 200. The
icon also appears on the tab image on Chrome. But the plugin fails to
connect never goes!

Sethu

On Dec 21, 9:50 pm, a...@mechnicality.com a...@mechnicality.com
wrote:
 Following my previous comment - you can easily check by using a windows 
 command prompt and telnet
 , e.g.

 telnet 127.0.0.1     

 if the firewall is blocking it, you'll get a 'can't connect to server' error, 
 otherwise the screen
 will go blank and you'll get a weird prompt (the gwt rpc connection doesn't 
 print any kind of
 message.) Not very elegant, but its a quick and dirty check.

 HTH again

 Alan

 On 12/21/2010 8:37 AM, Sethu wrote:









  There isn't any. In the development mode, I dont see anything in red.
  In the console of the started application there is nothing printed
  either.  This is while running the sample project.
  I have another project that I had developed which suffers from the
  same problem. This project works fine on the PC that is running XP (32
  bit). But when I move to the 64 bit win 7 machine, the server starts
  up (i have a start up servlet that inialises stuff and logs to the
  console). But when I go to the browser and try to connect, it throws
  the failed to connect to the hosted mode error.
  Actually, it fails to connect to any of the other servlets I had
  written as well.

  On Dec 21, 9:11 pm, a...@mechnicality.coma...@mechnicality.com
  wrote:
  Please show us the stack trace

  Thanks

  - Reply message -
  From: Sethuwritetose...@googlemail.com
  Date: Tue, Dec 21, 2010 2:36 am
  Subject: Plugin fails to connect to hosted mode server
  To: Google Web Toolkitgoogle-web-toolkit@googlegroups.com

  Hi,

  When I try to run the GWTs sample application project in the hosted
  mode on chrome, the static parts of the page load and then it throws
  an error saying plug in fails to connect to the hosted mode web
  server.

  My system config is below:
  OS: Windows 7 Home Premium (Windows firewall off, Kaspersky firewall
  on)
  JDK: java 6 update 23 (64 bit JVM)
  Eclipse Helios: 64 bit
  GWT SDK : 2.1

  I have installed the 32 bit jdk and in the run configurations I am
  ensuring that the JVM that its running on is 32 bit.

  The same thing works on my other PC running windows XP on a 32 bit
  JVM.

  I am not sure what I am doing wrong. Could someone please help...

  Thanks
  Sethu

  --
  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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.www.mechnicality.com

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