Re: Working in development mode in GWT with php

2010-01-18 Thread Thomas Broyer


On Jan 17, 8:33 pm, Djay gerald.co...@gmail.com wrote:
 I have also the same problem.
 On a global aspect, the question is how to setup the dev environment
 (most of people using eclipse) with GWT and PHP?

It's as easy as deploying your app *once* (to get the *.cache.js and
hosted.html on your server) and then pass the -startupUrl argument to
the HostedMode (and of course disable the embedded server using the -
noserver argument of the appropriate checkbox in Eclipse's launch
config), e.g.:
   -startupUrl http://localhost:/mywebapp/myhostpage.html

When you launch the HostedMode, it'll output the actual URL to copy/
paste in your browser (it'll just append the ?gwt.codesvr= parameter
to the given URL)
-- 
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: Working in development mode in GWT with php

2010-01-17 Thread Djay
I have also the same problem.
On a global aspect, the question is how to setup the dev environment
(most of people using eclipse) with GWT and PHP?


On 7 jan, 02:34, dleins dle...@gmail.com wrote:
 I have ths exact problem with another JSON application using GWT
 2.0.
 It works fine when compiled but the exact same code does not work in
 hosted mode.
 I am using SmartGWT, but do not think that is the problem...
 Doug

 On Jan 6, 7:35 pm, Skeezix skeezix6...@gmail.com wrote:



  also when I compile and deploy the compiled output (inside the war
  folder) to the server, it operates properly...hope someone can help me
  set this up properly so i can test/debug my app without recompiling
  and uploading it to the server

  On Jan 6, 4:59 pm, Skeezix skeezix6...@gmail.com wrote:

   Hi,
     I've recently started on the Client-Server Communication part of
   the tutorial of GWT.I've done everything that is said in the JSON
   and JSON -PHP part of the tutorial, yet im unable to get the JSON
   data from thephpscript.My setup uses XAMPP and the Stockwatcher
   project is located at C:\xampp\htdocs\...so that makes the host page
   at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I
   run the app in dev mode the stock changes wont show and I get an
   exception..it says

   16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped
   com.google.gwt.core.client.JavaScriptException:
   (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
   (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
    QueryInterface: function QueryInterface() {
       [native code]}

    result: 2147746065
    filename:http://localhost:
    lineNumber: 48
    columnNumber: 0
    inner: null
    data: null
    initialize: function initialize() {
       [native code]}

       at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
   (BrowserChannelServer.java:195)
       at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
   (ModuleSpaceOOPHM.java:120)
       at com.google.gwt.dev.shell.ModuleSpace.invokeNative
   (ModuleSpace.java:507)
       at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
   (ModuleSpace.java:264)
       at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
   (JavaScriptHost.java:91)
       at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
       at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
       at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at com.google.gwt.dev.shell.MethodAdaptor.invoke
   (MethodAdaptor.java:103)
       at com.google.gwt.dev.shell.MethodDispatch.invoke
   (MethodDispatch.java:71)
       at com.google.gwt.dev.shell.OophmSessionHandler.invoke
   (OophmSessionHandler.java:157)
       at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
   (BrowserChannel.java:1668)
       at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
   (BrowserChannelServer.java:401)
       at com.google.gwt.dev.shell.BrowserChannelServer.run
   (BrowserChannelServer.java:222)
       at java.lang.Thread.run(Unknown Source)

   btw the JSON_URL that I used is http://localhost:8080/StockWatcher/
   war/stockPrices.php?q=, since this is how I accessed thephpscript.
   Hope someone can help.
-- 
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: Working in development mode in GWT with php

2010-01-17 Thread 张扬

 i foud that too little people protect the environment
 i nearly Despaired... 
 

Sincerely
Best Wishes
Mobile:1353434
Fax:0755-27374750
E-mail:acclan...@gmail.com
Add:深圳宝安区福永街道广深公路伏船岗工业区兴益福永工业城A1栋2D
深圳鑫运祥精密刀具有限公司
财务部  张扬
  - Original Message - 
  From: Djay 
  To: Google Web Toolkit 
  Sent: Monday, January 18, 2010 3:33 AM
  Subject: Re: Working in development mode in GWT with php


  I have also the same problem.
  On a global aspect, the question is how to setup the dev environment
  (most of people using eclipse) with GWT and PHP?


  On 7 jan, 02:34, dleins dle...@gmail.com wrote:
   I have ths exact problem with another JSON application using GWT
   2.0.
   It works fine when compiled but the exact same code does not work in
   hosted mode.
   I am using SmartGWT, but do not think that is the problem...
   Doug
  
   On Jan 6, 7:35 pm, Skeezix skeezix6...@gmail.com wrote:
  
  
  
also when I compile and deploy the compiled output (inside the war
folder) to the server, it operates properly...hope someone can help me
set this up properly so i can test/debug my app without recompiling
and uploading it to the server
  
On Jan 6, 4:59 pm, Skeezix skeezix6...@gmail.com wrote:
  
 Hi,
 I've recently started on the Client-Server Communication part of
 the tutorial of GWT.I've done everything that is said in the JSON
 and JSON -PHP part of the tutorial, yet im unable to get the JSON
 data from thephpscript.My setup uses XAMPP and the Stockwatcher
 project is located at C:\xampp\htdocs\...so that makes the host page
 at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I
 run the app in dev mode the stock changes wont show and I get an
 exception..it says
  
 16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped
 com.google.gwt.core.client.JavaScriptException:
 (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
 QueryInterface: function QueryInterface() {
 [native code]}
  
 result: 2147746065
 filename:http://localhost:
 lineNumber: 48
 columnNumber: 0
 inner: null
 data: null
 initialize: function initialize() {
 [native code]}
  
 at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
 (BrowserChannelServer.java:195)
 at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
 (ModuleSpaceOOPHM.java:120)
 at com.google.gwt.dev.shell.ModuleSpace.invokeNative
 (ModuleSpace.java:507)
 at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
 (ModuleSpace.java:264)
 at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
 (JavaScriptHost.java:91)
 at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
 at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
 at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at com.google.gwt.dev.shell.MethodAdaptor.invoke
 (MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke
 (MethodDispatch.java:71)
 at com.google.gwt.dev.shell.OophmSessionHandler.invoke
 (OophmSessionHandler.java:157)
 at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
 (BrowserChannel.java:1668)
 at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
 (BrowserChannelServer.java:401)
 at com.google.gwt.dev.shell.BrowserChannelServer.run
 (BrowserChannelServer.java:222)
 at java.lang.Thread.run(Unknown Source)
  
 btw the JSON_URL that I used is http://localhost:8080/StockWatcher/
 war/stockPrices.php?q=, since this is how I accessed thephpscript.
 Hope someone can help.



--


  -- 
  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: Working in development mode in GWT with php

2010-01-08 Thread dleins
I have ths exact problem with another JSON application using GWT
2.0.
It works fine when compiled but the exact same code does not work in
hosted mode.
I am using SmartGWT, but do not think that is the problem...
Doug


On Jan 6, 7:35 pm, Skeezix skeezix6...@gmail.com wrote:
 also when I compile and deploy the compiled output (inside the war
 folder) to the server, it operates properly...hope someone can help me
 set this up properly so i can test/debug my app without recompiling
 and uploading it to the server

 On Jan 6, 4:59 pm, Skeezix skeezix6...@gmail.com wrote:



  Hi,
    I've recently started on the Client-Server Communication part of
  the tutorial of GWT.I've done everything that is said in the JSON
  and JSON - PHP part of the tutorial, yet im unable to get the JSON
  data from the php script.My setup uses XAMPP and the Stockwatcher
  project is located at C:\xampp\htdocs\...so that makes the host page
  at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I
  run the app in dev mode the stock changes wont show and I get an
  exception..it says

  16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped
  com.google.gwt.core.client.JavaScriptException:
  (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
  (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
   QueryInterface: function QueryInterface() {
      [native code]}

   result: 2147746065
   filename:http://localhost:
   lineNumber: 48
   columnNumber: 0
   inner: null
   data: null
   initialize: function initialize() {
      [native code]}

      at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
  (BrowserChannelServer.java:195)
      at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
  (ModuleSpaceOOPHM.java:120)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNative
  (ModuleSpace.java:507)
      at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
  (ModuleSpace.java:264)
      at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
  (JavaScriptHost.java:91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
      at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.google.gwt.dev.shell.MethodAdaptor.invoke
  (MethodAdaptor.java:103)
      at com.google.gwt.dev.shell.MethodDispatch.invoke
  (MethodDispatch.java:71)
      at com.google.gwt.dev.shell.OophmSessionHandler.invoke
  (OophmSessionHandler.java:157)
      at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
  (BrowserChannel.java:1668)
      at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
  (BrowserChannelServer.java:401)
      at com.google.gwt.dev.shell.BrowserChannelServer.run
  (BrowserChannelServer.java:222)
      at java.lang.Thread.run(Unknown Source)

  btw the JSON_URL that I used is http://localhost:8080/StockWatcher/
  war/stockPrices.php?q=, since this is how I accessed the php script.
  Hope someone can help.
-- 
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: Working in development mode in GWT with php

2010-01-07 Thread FKereki
I'm guessing you are running into the Same Origin Policy problem --
your application (in development mode) connects to port , but your
service is at port 8080.

Your easiest way out would be using Internet Explorer, which is more
lax regarding port changes.

Good luck!
F.Kereki
-- 
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.




Working in development mode in GWT with php

2010-01-06 Thread Skeezix
Hi,
  I've recently started on the Client-Server Communication part of
the tutorial of GWT.I've done everything that is said in the JSON
and JSON - PHP part of the tutorial, yet im unable to get the JSON
data from the php script.My setup uses XAMPP and the Stockwatcher
project is located at C:\xampp\htdocs\...so that makes the host page
at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I
run the app in dev mode the stock changes wont show and I get an
exception..it says

16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
 QueryInterface: function QueryInterface() {
[native code]
}
 result: 2147746065
 filename: http://localhost:
 lineNumber: 48
 columnNumber: 0
 inner: null
 data: null
 initialize: function initialize() {
[native code]
}
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:195)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative
(ModuleSpace.java:507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke
(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.MethodDispatch.invoke
(MethodDispatch.java:71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

btw the JSON_URL that I used is http://localhost:8080/StockWatcher/
war/stockPrices.php?q=, since this is how I accessed the php script.
Hope someone can help.
-- 
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: Working in development mode in GWT with php

2010-01-06 Thread Skeezix
also when I compile and deploy the compiled output (inside the war
folder) to the server, it operates properly...hope someone can help me
set this up properly so i can test/debug my app without recompiling
and uploading it to the server

On Jan 6, 4:59 pm, Skeezix skeezix6...@gmail.com wrote:
 Hi,
   I've recently started on the Client-Server Communication part of
 the tutorial of GWT.I've done everything that is said in the JSON
 and JSON - PHP part of the tutorial, yet im unable to get the JSON
 data from the php script.My setup uses XAMPP and the Stockwatcher
 project is located at C:\xampp\htdocs\...so that makes the host page
 at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I
 run the app in dev mode the stock changes wont show and I get an
 exception..it says

 16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped
 com.google.gwt.core.client.JavaScriptException:
 (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111
 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]
  QueryInterface: function QueryInterface() {
     [native code]}

  result: 2147746065
  filename:http://localhost:
  lineNumber: 48
  columnNumber: 0
  inner: null
  data: null
  initialize: function initialize() {
     [native code]}

     at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
 (BrowserChannelServer.java:195)
     at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
 (ModuleSpaceOOPHM.java:120)
     at com.google.gwt.dev.shell.ModuleSpace.invokeNative
 (ModuleSpace.java:507)
     at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
 (ModuleSpace.java:264)
     at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
 (JavaScriptHost.java:91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
     at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at com.google.gwt.dev.shell.MethodAdaptor.invoke
 (MethodAdaptor.java:103)
     at com.google.gwt.dev.shell.MethodDispatch.invoke
 (MethodDispatch.java:71)
     at com.google.gwt.dev.shell.OophmSessionHandler.invoke
 (OophmSessionHandler.java:157)
     at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
 (BrowserChannel.java:1668)
     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
 (BrowserChannelServer.java:401)
     at com.google.gwt.dev.shell.BrowserChannelServer.run
 (BrowserChannelServer.java:222)
     at java.lang.Thread.run(Unknown Source)

 btw the JSON_URL that I used is http://localhost:8080/StockWatcher/
 war/stockPrices.php?q=, since this is how I accessed the php script.
 Hope someone can help.
-- 
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.