Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

No change at all when not using Google App Engine.
On the download page there is only version 1.6.4 and 1.5.3 and older.
I
don't know how to get different revisions like 1.6.013 like Jason
suggested.

On Jul 13, 4:02 pm, Sky myonceinalifet...@gmail.com wrote:
 quoteStrange about not hitting the breakpoint with this simple
 project/quote

 Just to be clear I meant with my project. Since the sample app works
 in hosted mode I am assuming I can debug it perfectly fine.

 In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
 1.6.4 in the build path.

 If it helps to know I am running this with the Google App Engine. The
 first time I tried the conversion I didn't do it with the App Engine,
 but this time I did... maybe thats the point that it went from having
 errors to not having errors. I shall try it again without App Engine.
 I don't think I can try the conversion by moving smaller chunks, cuz
 the onModuleLoad pretty much instantiates one class and that class
 uses everything I've written in GWT.

 I'll keep you posted.

 On Jul 13, 3:54 pm, Jason Parekh jasonpar...@gmail.com wrote:



  On Mon, Jul 13, 2009 at 4:35 PM, Sky myonceinalifet...@gmail.com wrote:

   Correct, I just see the HTML content with any and all GWT widgets
   missing.

   I was successful in viewing the default app that comes from the new
   app wizard within Hosted Mode browser.
   In debug mode I do not reach a breakpoint I set on the very first line
   within the module's onModuleLoad() method.

  Strange about not hitting the breakpoint with this simple project.  We've
  seen this issue with JDK 1.6.0_14, are you running that version?  Try
  downgrading to 1.6.0_13.  See:

 http://code.google.com/p/google-web-toolkit/issues/detail?id=3724

  for more details.

   I cleared the error log and ran the web app again and nothing appeared
   in the error log.

   When I first converted my app to the 1.6 file layout (by creating a
   new 1.6 app from wizard and moving my files from previous project into
   the new one) the app failed on a static call to a private static
   native void method where I call an external javascript method. After
   converting all my Listeners to Handlers in my app, this problem went
   away magically. Regardless of whether or not I comment out the call to
   that method, I get no errors, but it is also impossible to reach that
   code because I don't even get inside the onModuleLoad(). Did I break
   something when converting my Listeners to Handlers?

  Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
  someone more knowledgeable could chime in?), but I wouldn't expect your
  changes got you into the current state.

  Assuming you're running JDK 1.6.0_14, could you try setting the breakpoint
  again after downgrading?  Hopefully it'll break, and you can step through
  your code to gather more useful data.

  How big is your application?  Would it be feasible to try the GWT 1.5 - 1.6
  process again, except move your code in smaller chunks?

  jason

   On Jul 13, 3:15 pm, Jason Parekh jasonpar...@gmail.com wrote:
Hi Sky,
What exactly do you see in the hosted mode browser?  Just the HTML
   content
(with GWT widgets missing)?

I'd suggest a couple things to reduce where we search for the problem:
- Can you try creating a new GWT app from the wizard and see if it loads
   in
the hosted mode browser?  Can you try a breakpoint in this module's
onModuleLoad?
- Can you look at the error log (Ctrl-3, then type error log).  See any
errors there that may pertain to the problem?

jason

On Mon, Jul 13, 2009 at 3:58 PM, Sky myonceinalifet...@gmail.com
   wrote:

 Bump.

 I really need help with this, because my app was fine in GWT 1.5 but
 with 1.6 I no longer can test functionality on the fly, nor can I
 debug. I am at a complete standstill for development.

 And there are absolutely no indications of what my problem could be so
 I don't even know where to start looking. It would help if anyone can
 even suggest more info I can try to get to help you help me.

 Many thanks!

 On Jul 13, 1:17 am, Sky myonceinalifet...@gmail.com wrote:
  After converting my GWT app from version 1.5 to 1.6, it does not 
  work
  in Hosted Mode but after compiling it, it works 100% fine in any
  browser.

  I don't get any errors, it simply does not appear to build any
   widgets
  or anything. I put a break point on the first line inside the only
  Entry Point Module's onModuleLoad() method and ran it in Hosted Mode
  in debug mode (from Eclipse) and the code never reached that line.

  Where can I start looking for what the problem is? What other info
   can
  I give you so you can help me?

  Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group

Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Jason Parekh
Hey,
One clarification:  I'm actually talking about the Java Development Kit/Java
Runtime version and not the GWT SDK version.  You can see your version in
Eclipse preferences  Java  Installed JREs

jason

On Mon, Jul 13, 2009 at 5:24 PM, Sky myonceinalifet...@gmail.com wrote:


 No change at all when not using Google App Engine.
 On the download page there is only version 1.6.4 and 1.5.3 and older.
 I
 don't know how to get different revisions like 1.6.013 like Jason
 suggested.

 On Jul 13, 4:02 pm, Sky myonceinalifet...@gmail.com wrote:
  quoteStrange about not hitting the breakpoint with this simple
  project/quote
 
  Just to be clear I meant with my project. Since the sample app works
  in hosted mode I am assuming I can debug it perfectly fine.
 
  In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
  1.6.4 in the build path.
 
  If it helps to know I am running this with the Google App Engine. The
  first time I tried the conversion I didn't do it with the App Engine,
  but this time I did... maybe thats the point that it went from having
  errors to not having errors. I shall try it again without App Engine.
  I don't think I can try the conversion by moving smaller chunks, cuz
  the onModuleLoad pretty much instantiates one class and that class
  uses everything I've written in GWT.
 
  I'll keep you posted.
 
  On Jul 13, 3:54 pm, Jason Parekh jasonpar...@gmail.com wrote:
 
 
 
   On Mon, Jul 13, 2009 at 4:35 PM, Sky myonceinalifet...@gmail.com
 wrote:
 
Correct, I just see the HTML content with any and all GWT widgets
missing.
 
I was successful in viewing the default app that comes from the new
app wizard within Hosted Mode browser.
In debug mode I do not reach a breakpoint I set on the very first
 line
within the module's onModuleLoad() method.
 
   Strange about not hitting the breakpoint with this simple project.
  We've
   seen this issue with JDK 1.6.0_14, are you running that version?  Try
   downgrading to 1.6.0_13.  See:
 
  http://code.google.com/p/google-web-toolkit/issues/detail?id=3724
 
   for more details.
 
I cleared the error log and ran the web app again and nothing
 appeared
in the error log.
 
When I first converted my app to the 1.6 file layout (by creating a
new 1.6 app from wizard and moving my files from previous project
 into
the new one) the app failed on a static call to a private static
native void method where I call an external javascript method. After
converting all my Listeners to Handlers in my app, this problem went
away magically. Regardless of whether or not I comment out the call
 to
that method, I get no errors, but it is also impossible to reach that
code because I don't even get inside the onModuleLoad(). Did I break
something when converting my Listeners to Handlers?
 
   Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
   someone more knowledgeable could chime in?), but I wouldn't expect your
   changes got you into the current state.
 
   Assuming you're running JDK 1.6.0_14, could you try setting the
 breakpoint
   again after downgrading?  Hopefully it'll break, and you can step
 through
   your code to gather more useful data.
 
   How big is your application?  Would it be feasible to try the GWT 1.5
 - 1.6
   process again, except move your code in smaller chunks?
 
   jason
 
On Jul 13, 3:15 pm, Jason Parekh jasonpar...@gmail.com wrote:
 Hi Sky,
 What exactly do you see in the hosted mode browser?  Just the HTML
content
 (with GWT widgets missing)?
 
 I'd suggest a couple things to reduce where we search for the
 problem:
 - Can you try creating a new GWT app from the wizard and see if it
 loads
in
 the hosted mode browser?  Can you try a breakpoint in this module's
 onModuleLoad?
 - Can you look at the error log (Ctrl-3, then type error log).  See
 any
 errors there that may pertain to the problem?
 
 jason
 
 On Mon, Jul 13, 2009 at 3:58 PM, Sky myonceinalifet...@gmail.com
wrote:
 
  Bump.
 
  I really need help with this, because my app was fine in GWT 1.5
 but
  with 1.6 I no longer can test functionality on the fly, nor can I
  debug. I am at a complete standstill for development.
 
  And there are absolutely no indications of what my problem could
 be so
  I don't even know where to start looking. It would help if anyone
 can
  even suggest more info I can try to get to help you help me.
 
  Many thanks!
 
  On Jul 13, 1:17 am, Sky myonceinalifet...@gmail.com wrote:
   After converting my GWT app from version 1.5 to 1.6, it does
 not work
   in Hosted Mode but after compiling it, it works 100% fine in
 any
   browser.
 
   I don't get any errors, it simply does not appear to build any
widgets
   or anything. I put a break point on the first line inside the
 only
   Entry Point Module's onModuleLoad() method

Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

Thx, I tried the Java Development Kit versions 1.6.0_07, 13 and 14.
Same situation.

On Jul 13, 4:31 pm, Jason Parekh jasonpar...@gmail.com wrote:
 Hey,
 One clarification:  I'm actually talking about the Java Development Kit/Java
 Runtime version and not the GWT SDK version.  You can see your version in
 Eclipse preferences  Java  Installed JREs

 jason



 On Mon, Jul 13, 2009 at 5:24 PM, Sky myonceinalifet...@gmail.com wrote:

  No change at all when not using Google App Engine.
  On the download page there is only version 1.6.4 and 1.5.3 and older.
  I
  don't know how to get different revisions like 1.6.013 like Jason
  suggested.

  On Jul 13, 4:02 pm, Sky myonceinalifet...@gmail.com wrote:
   quoteStrange about not hitting the breakpoint with this simple
   project/quote

   Just to be clear I meant with my project. Since the sample app works
   in hosted mode I am assuming I can debug it perfectly fine.

   In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
   1.6.4 in the build path.

   If it helps to know I am running this with the Google App Engine. The
   first time I tried the conversion I didn't do it with the App Engine,
   but this time I did... maybe thats the point that it went from having
   errors to not having errors. I shall try it again without App Engine.
   I don't think I can try the conversion by moving smaller chunks, cuz
   the onModuleLoad pretty much instantiates one class and that class
   uses everything I've written in GWT.

   I'll keep you posted.

   On Jul 13, 3:54 pm, Jason Parekh jasonpar...@gmail.com wrote:

On Mon, Jul 13, 2009 at 4:35 PM, Sky myonceinalifet...@gmail.com
  wrote:

 Correct, I just see the HTML content with any and all GWT widgets
 missing.

 I was successful in viewing the default app that comes from the new
 app wizard within Hosted Mode browser.
 In debug mode I do not reach a breakpoint I set on the very first
  line
 within the module's onModuleLoad() method.

Strange about not hitting the breakpoint with this simple project.
   We've
seen this issue with JDK 1.6.0_14, are you running that version?  Try
downgrading to 1.6.0_13.  See:

   http://code.google.com/p/google-web-toolkit/issues/detail?id=3724

for more details.

 I cleared the error log and ran the web app again and nothing
  appeared
 in the error log.

 When I first converted my app to the 1.6 file layout (by creating a
 new 1.6 app from wizard and moving my files from previous project
  into
 the new one) the app failed on a static call to a private static
 native void method where I call an external javascript method. After
 converting all my Listeners to Handlers in my app, this problem went
 away magically. Regardless of whether or not I comment out the call
  to
 that method, I get no errors, but it is also impossible to reach that
 code because I don't even get inside the onModuleLoad(). Did I break
 something when converting my Listeners to Handlers?

Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
someone more knowledgeable could chime in?), but I wouldn't expect your
changes got you into the current state.

Assuming you're running JDK 1.6.0_14, could you try setting the
  breakpoint
again after downgrading?  Hopefully it'll break, and you can step
  through
your code to gather more useful data.

How big is your application?  Would it be feasible to try the GWT 1.5
  - 1.6
process again, except move your code in smaller chunks?

jason

 On Jul 13, 3:15 pm, Jason Parekh jasonpar...@gmail.com wrote:
  Hi Sky,
  What exactly do you see in the hosted mode browser?  Just the HTML
 content
  (with GWT widgets missing)?

  I'd suggest a couple things to reduce where we search for the
  problem:
  - Can you try creating a new GWT app from the wizard and see if it
  loads
 in
  the hosted mode browser?  Can you try a breakpoint in this module's
  onModuleLoad?
  - Can you look at the error log (Ctrl-3, then type error log).  See
  any
  errors there that may pertain to the problem?

  jason

  On Mon, Jul 13, 2009 at 3:58 PM, Sky myonceinalifet...@gmail.com
 wrote:

   Bump.

   I really need help with this, because my app was fine in GWT 1.5
  but
   with 1.6 I no longer can test functionality on the fly, nor can I
   debug. I am at a complete standstill for development.

   And there are absolutely no indications of what my problem could
  be so
   I don't even know where to start looking. It would help if anyone
  can
   even suggest more info I can try to get to help you help me.

   Many thanks!

   On Jul 13, 1:17 am, Sky myonceinalifet...@gmail.com wrote:
After converting my GWT app from version 1.5 to 1.6, it does
  not work
in Hosted Mode but after compiling it, it works 100% fine in
  any

Re: GWT 1.5 to 1.6: App won't work in Hosted Mode

2009-07-13 Thread Sky

SOLVED!

I was attempting to move my app, one piece at a time into a new
project and I finally discovered what was causing the problem.
In my module's html file I had
script src=docEvents.js/
which simply needed to be changed to
script src=docEvents.js/script

Now it no longer gets stuck and works wonderfully!

Thanks so much for the help Jason!

On Jul 13, 4:57 pm, Sky myonceinalifet...@gmail.com wrote:
 Thx, I tried the Java Development Kit versions 1.6.0_07, 13 and 14.
 Same situation.

 On Jul 13, 4:31 pm, Jason Parekh jasonpar...@gmail.com wrote:



  Hey,
  One clarification:  I'm actually talking about the Java Development Kit/Java
  Runtime version and not the GWT SDK version.  You can see your version in
  Eclipse preferences  Java  Installed JREs

  jason

  On Mon, Jul 13, 2009 at 5:24 PM, Sky myonceinalifet...@gmail.com wrote:

   No change at all when not using Google App Engine.
   On the download page there is only version 1.6.4 and 1.5.3 and older.
   I
   don't know how to get different revisions like 1.6.013 like Jason
   suggested.

   On Jul 13, 4:02 pm, Sky myonceinalifet...@gmail.com wrote:
quoteStrange about not hitting the breakpoint with this simple
project/quote

Just to be clear I meant with my project. Since the sample app works
in hosted mode I am assuming I can debug it perfectly fine.

In terms of version, I see JDK 1.6.4 I don't see 1.6.0_14 or 13 just
1.6.4 in the build path.

If it helps to know I am running this with the Google App Engine. The
first time I tried the conversion I didn't do it with the App Engine,
but this time I did... maybe thats the point that it went from having
errors to not having errors. I shall try it again without App Engine.
I don't think I can try the conversion by moving smaller chunks, cuz
the onModuleLoad pretty much instantiates one class and that class
uses everything I've written in GWT.

I'll keep you posted.

On Jul 13, 3:54 pm, Jason Parekh jasonpar...@gmail.com wrote:

 On Mon, Jul 13, 2009 at 4:35 PM, Sky myonceinalifet...@gmail.com
   wrote:

  Correct, I just see the HTML content with any and all GWT widgets
  missing.

  I was successful in viewing the default app that comes from the new
  app wizard within Hosted Mode browser.
  In debug mode I do not reach a breakpoint I set on the very first
   line
  within the module's onModuleLoad() method.

 Strange about not hitting the breakpoint with this simple project.
    We've
 seen this issue with JDK 1.6.0_14, are you running that version?  Try
 downgrading to 1.6.0_13.  See:

http://code.google.com/p/google-web-toolkit/issues/detail?id=3724

 for more details.

  I cleared the error log and ran the web app again and nothing
   appeared
  in the error log.

  When I first converted my app to the 1.6 file layout (by creating a
  new 1.6 app from wizard and moving my files from previous project
   into
  the new one) the app failed on a static call to a private static
  native void method where I call an external javascript method. After
  converting all my Listeners to Handlers in my app, this problem went
  away magically. Regardless of whether or not I comment out the call
   to
  that method, I get no errors, but it is also impossible to reach 
  that
  code because I don't even get inside the onModuleLoad(). Did I break
  something when converting my Listeners to Handlers?

 Sorry, I'm not very familiar with the changes from 1.5 to 1.6 (perhaps
 someone more knowledgeable could chime in?), but I wouldn't expect 
 your
 changes got you into the current state.

 Assuming you're running JDK 1.6.0_14, could you try setting the
   breakpoint
 again after downgrading?  Hopefully it'll break, and you can step
   through
 your code to gather more useful data.

 How big is your application?  Would it be feasible to try the GWT 1.5
   - 1.6
 process again, except move your code in smaller chunks?

 jason

  On Jul 13, 3:15 pm, Jason Parekh jasonpar...@gmail.com wrote:
   Hi Sky,
   What exactly do you see in the hosted mode browser?  Just the HTML
  content
   (with GWT widgets missing)?

   I'd suggest a couple things to reduce where we search for the
   problem:
   - Can you try creating a new GWT app from the wizard and see if it
   loads
  in
   the hosted mode browser?  Can you try a breakpoint in this 
   module's
   onModuleLoad?
   - Can you look at the error log (Ctrl-3, then type error log).  
   See
   any
   errors there that may pertain to the problem?

   jason

   On Mon, Jul 13, 2009 at 3:58 PM, Sky myonceinalifet...@gmail.com
  wrote:

Bump.

I really need help with this, because my app was fine in GWT 1.5
   but
with 1.6 I no longer can test functionality on the fly, nor can 
I

[Ask] How to Run GWT App in Hosted Mode by Using Netbeans 6.5?

2009-07-09 Thread Leonardo Carreira

Hello All :)..

i have a simple problem.. How to run GWT App in Hosted Mode by Using
Netbeans6.5?..
I have Created Web application..
and i added GWT plugins too..

then i have created GWT EntryPoint class..
How to run that GWT EntryPoint Class in Hosted Mode?...

Thanks in advance.. :)
--~--~-~--~~~---~--~~
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: How to Run GWT App in Hosted Mode by Using Netbeans 6.5?

2009-07-09 Thread Leonardo Carreira

@XiaoR

Hii Xiao.. Thanks for your reply.. :)
Yap iam quite new to GWT,, :(
Thanks for your suggestion...
Okay.. maybe i'll use Eclipse for develop GWT app..

Thanks in advance.. :)
--~--~-~--~~~---~--~~
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: [Ask] How to Run GWT App in Hosted Mode by Using Netbeans 6.5?

2009-07-09 Thread 任胜韦
I have the same question.
It seems easier to run the hosted mode using eclipse rather than using
netbeans

--XiaoR


On Thu, Jul 9, 2009 at 6:32 AM, Leonardo Carreira 
leonardo.carre...@yahoo.com.sg wrote:


 Hello All :)..

 i have a simple problem.. How to run GWT App in Hosted Mode by Using
 Netbeans6.5?..
 I have Created Web application..
 and i added GWT plugins too..

 then i have created GWT EntryPoint class..
 How to run that GWT EntryPoint Class in Hosted Mode?...

 Thanks in advance.. :)
 


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



Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Jens

I'm in the process of upgrading our project structure from 1.5.x to
1.6.x and try to use the Google GWT eclipse plugin. Previously I just
created a linked folder reference to our common stylesheets and third
party javascript libraries to show up in hosted mode.

This is not working with the new WAR structure, I get a 404 for the
linked resources in Jetty.

Does anybody know a workaround for this besides duplicating the actual
files?

Thanks
Jens

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



GWT upgrade hosted mode issue (1.3 to 1.6)

2009-07-08 Thread kelvin.huang

I am upgrading an application from GWT 1.3 to 1.6.4, and get below
error when starting the hosted mode, I am not sure if I missed any
required jar files or Hosted mode configuration is wrong. can anyone
help me on the issue.

[ERROR] Failure while parsing XML
org.xml.sax.SAXNotRecognizedException: 
http://apache.org/xml/features/nonvalidating/load-external-dtd
at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:102)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse
(ReflectiveParser.java:307)
at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$100
(ReflectiveParser.java:48)
at com.google.gwt.dev.util.xml.ReflectiveParser.parse
(ReflectiveParser.java:385)
at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
(ModuleDefLoader.java:243)
at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
155)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:269)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:127)
at com.google.gwt.dev.HostedModeBase.loadModule(HostedModeBase.java:
536)
at com.google.gwt.dev.HostedMode.loadModule(HostedMode.java:426)
at com.google.gwt.dev.HostedMode.doStartup(HostedMode.java:351)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:585)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:397)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

Environment:
GWT 1.6.4
JDK: 1.6
MyEclipse: 6.6
Hosted Mode Parameters: -startupUrl Main.html  -whitelist http://
192.* Main

Thanks
Kelvin




--~--~-~--~~~---~--~~
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: Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Miguel Méndez
Just to be clear, are you using an eclipse linked folder or an OS symbolic
link?

On Wed, Jul 8, 2009 at 8:56 AM, Jens jensrohl...@gmail.com wrote:


 I'm in the process of upgrading our project structure from 1.5.x to
 1.6.x and try to use the Google GWT eclipse plugin. Previously I just
 created a linked folder reference to our common stylesheets and third
 party javascript libraries to show up in hosted mode.

 This is not working with the new WAR structure, I get a 404 for the
 linked resources in Jetty.

 Does anybody know a workaround for this besides duplicating the actual
 files?

 Thanks
 Jens

 



-- 
Miguel

--~--~-~--~~~---~--~~
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: Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Jens

An eclipse linked folder

On Jul 8, 12:49 pm, Miguel Méndez mmen...@google.com wrote:
 Just to be clear, are you using an eclipse linked folder or an OS symbolic
 link?



 On Wed, Jul 8, 2009 at 8:56 AM, Jens jensrohl...@gmail.com wrote:

  I'm in the process of upgrading our project structure from 1.5.x to
  1.6.x and try to use the Google GWT eclipse plugin. Previously I just
  created a linked folder reference to our common stylesheets and third
  party javascript libraries to show up in hosted mode.

  This is not working with the new WAR structure, I get a 404 for the
  linked resources in Jetty.

  Does anybody know a workaround for this besides duplicating the actual
  files?

  Thanks
  Jens

 --
 Miguel
--~--~-~--~~~---~--~~
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: Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Miguel Méndez
As you've discovered, neither Jetty nor GWT will recognize Eclipse linked
folders.  The only case where they would work is if the WAR folder is itself
a symbolic link, issue
3692http://code.google.com/p/google-web-toolkit/issues/detail?id=3692aside.

If your OS supports it, you could try a symbolic link.

On Wed, Jul 8, 2009 at 12:50 PM, Jens jensrohl...@gmail.com wrote:


 An eclipse linked folder

 On Jul 8, 12:49 pm, Miguel Méndez mmen...@google.com wrote:
  Just to be clear, are you using an eclipse linked folder or an OS
 symbolic
  link?
 
 
 
  On Wed, Jul 8, 2009 at 8:56 AM, Jens jensrohl...@gmail.com wrote:
 
   I'm in the process of upgrading our project structure from 1.5.x to
   1.6.x and try to use the Google GWT eclipse plugin. Previously I just
   created a linked folder reference to our common stylesheets and third
   party javascript libraries to show up in hosted mode.
 
   This is not working with the new WAR structure, I get a 404 for the
   linked resources in Jetty.
 
   Does anybody know a workaround for this besides duplicating the actual
   files?
 
   Thanks
   Jens
 
  --
  Miguel
 



-- 
Miguel

--~--~-~--~~~---~--~~
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: Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Jens

Indeed a junction point did work with my OS. Too bad, a symbolic
eclipse link was working with the Cypal plugin.

Thanks for the quick answers, Miguel !

On Jul 8, 12:55 pm, Miguel Méndez mmen...@google.com wrote:
 As you've discovered, neither Jetty nor GWT will recognize Eclipse linked
 folders.  The only case where they would work is if the WAR folder is itself
 a symbolic link, issue
 3692http://code.google.com/p/google-web-toolkit/issues/detail?id=3692aside.

 If your OS supports it, you could try a symbolic link.



 On Wed, Jul 8, 2009 at 12:50 PM, Jens jensrohl...@gmail.com wrote:

  An eclipse linked folder

  On Jul 8, 12:49 pm, Miguel Méndez mmen...@google.com wrote:
   Just to be clear, are you using an eclipse linked folder or an OS
  symbolic
   link?

   On Wed, Jul 8, 2009 at 8:56 AM, Jens jensrohl...@gmail.com wrote:

I'm in the process of upgrading our project structure from 1.5.x to
1.6.x and try to use the Google GWT eclipse plugin. Previously I just
created a linked folder reference to our common stylesheets and third
party javascript libraries to show up in hosted mode.

This is not working with the new WAR structure, I get a 404 for the
linked resources in Jetty.

Does anybody know a workaround for this besides duplicating the actual
files?

Thanks
Jens

   --
   Miguel

 --
 Miguel
--~--~-~--~~~---~--~~
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: Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Miguel Méndez
That would work if we were more J2EE friendly.  In other words, treat the
WAR directory as an input only, and deploy/debug would run from a copy of
the WAR directory.  The copy process would respect eclipse linked resources.

On Wed, Jul 8, 2009 at 2:16 PM, Jens jensrohl...@gmail.com wrote:


 Indeed a junction point did work with my OS. Too bad, a symbolic
 eclipse link was working with the Cypal plugin.

 Thanks for the quick answers, Miguel !

 On Jul 8, 12:55 pm, Miguel Méndez mmen...@google.com wrote:
  As you've discovered, neither Jetty nor GWT will recognize Eclipse linked
  folders.  The only case where they would work is if the WAR folder is
 itself
  a symbolic link, issue
  3692http://code.google.com/p/google-web-toolkit/issues/detail?id=3692
 aside.
 
  If your OS supports it, you could try a symbolic link.
 
 
 
  On Wed, Jul 8, 2009 at 12:50 PM, Jens jensrohl...@gmail.com wrote:
 
   An eclipse linked folder
 
   On Jul 8, 12:49 pm, Miguel Méndez mmen...@google.com wrote:
Just to be clear, are you using an eclipse linked folder or an OS
   symbolic
link?
 
On Wed, Jul 8, 2009 at 8:56 AM, Jens jensrohl...@gmail.com wrote:
 
 I'm in the process of upgrading our project structure from 1.5.x to
 1.6.x and try to use the Google GWT eclipse plugin. Previously I
 just
 created a linked folder reference to our common stylesheets and
 third
 party javascript libraries to show up in hosted mode.
 
 This is not working with the new WAR structure, I get a 404 for the
 linked resources in Jetty.
 
 Does anybody know a workaround for this besides duplicating the
 actual
 files?
 
 Thanks
 Jens
 
--
Miguel
 
  --
  Miguel
 



-- 
Miguel

--~--~-~--~~~---~--~~
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: Eclipse Plugin - linked folder are not recognized in hosted mode

2009-07-08 Thread Isaac Truett

Sounds like this might fall under issue #3583:

http://code.google.com/p/google-web-toolkit/issues/detail?id=3583


2009/7/8 Miguel Méndez mmen...@google.com:
 That would work if we were more J2EE friendly.  In other words, treat the
 WAR directory as an input only, and deploy/debug would run from a copy of
 the WAR directory.  The copy process would respect eclipse linked resources.

 On Wed, Jul 8, 2009 at 2:16 PM, Jens jensrohl...@gmail.com wrote:

 Indeed a junction point did work with my OS. Too bad, a symbolic
 eclipse link was working with the Cypal plugin.

 Thanks for the quick answers, Miguel !

 On Jul 8, 12:55 pm, Miguel Méndez mmen...@google.com wrote:
  As you've discovered, neither Jetty nor GWT will recognize Eclipse
  linked
  folders.  The only case where they would work is if the WAR folder is
  itself
  a symbolic link, issue
 
  3692http://code.google.com/p/google-web-toolkit/issues/detail?id=3692aside.
 
  If your OS supports it, you could try a symbolic link.
 
 
 
  On Wed, Jul 8, 2009 at 12:50 PM, Jens jensrohl...@gmail.com wrote:
 
   An eclipse linked folder
 
   On Jul 8, 12:49 pm, Miguel Méndez mmen...@google.com wrote:
Just to be clear, are you using an eclipse linked folder or an OS
   symbolic
link?
 
On Wed, Jul 8, 2009 at 8:56 AM, Jens jensrohl...@gmail.com wrote:
 
 I'm in the process of upgrading our project structure from 1.5.x
 to
 1.6.x and try to use the Google GWT eclipse plugin. Previously I
 just
 created a linked folder reference to our common stylesheets and
 third
 party javascript libraries to show up in hosted mode.
 
 This is not working with the new WAR structure, I get a 404 for
 the
 linked resources in Jetty.
 
 Does anybody know a workaround for this besides duplicating the
 actual
 files?
 
 Thanks
 Jens
 
--
Miguel
 
  --
  Miguel




 --
 Miguel

 


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



facebook not render in hosted mode

2009-07-07 Thread asianCoolz

protected Widget makeLoginButton() {

String s = fb:login-button onlogin=
\facebookConnectLogin()\/
fb:login-button;

HTML h = new HTML(s);
DeferredCommand.addCommand(new Command() {
public void execute() {
parseDomTree();
}
});

return h;

}

protected static native void parseDomTree() /*-{
$wnd.FB.XFBML.Host.parseDomTree();
}-*/;


1.i tried this way, using DeferredCommand, but still not able to
display the button on hosted mode. I able to see it in browser. i'm
using gwt 1.6.4

2. may i know how to get user info in gwt after user successfully
login  . pls refer http://tinyurl.com/l3jx4z

--~--~-~--~~~---~--~~
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: Making RPC calls to remote server in hosted mode

2009-07-07 Thread justin choi

 it seems to result it this error:
[ERROR] Invalid module name: 'http://site.com/..'

But it works when I hit the URL on my browser... do I need to set up
my Tomcat server differently?


On Jul 6, 6:21 pm, Jason Essington jason.essing...@gmail.com wrote:
 it is simply -noserverhttp://myserver.com/myHostpage.html

 -jason

 On Jul 6, 2009, at 1:39 PM, justin choi wrote:



  Can you help figure out the parameters I need to do this?  I've only
  seen examples to do it on localhost...

  I've tried configurations along the lines of:
  -noserver IPaddress -p port com.module/module.html

  On Jul 6, 2:59 pm, Jason Essington jason.essing...@gmail.com wrote:
  That is pretty much exactly what -noserver is for. you can debug and
  even change your client code and have it execute against any remote
  server (whether that is on your local machine or even a production
  server).

  -jason

  On Jul 6, 2009, at 10:54 AM, justin choi wrote:

  I've been exploring the -noserver option and it doesn't seem to do
  what I need...

  Basically, I want to be able to edit the front end in hosted mode  
  and
  access my remote server for RPC calls.  How can this be set up?

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



Hosted mode non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread eighty

Max OS X 10.5.7
Safari 4
64-bit Intel Core 2 Duo
32-bit Java 1.5
Eclipse 3.4.2
Google Plugin for Eclipse: http://dl.google.com/eclipse/plugin/3.4
GWT Trunk Revision 5683 compiled with 32-bit Java 1.5

Problem:

Create a new web application project in Eclipse using the Google
Plugin (with GWT setting pointing to trunk, not 1.6.4). Try running
the project in Hosted Mode with JRE 1.5. It immediately fails with the
following console error:  On Mac OS X, ensure that you have Safari 3
installed.

In LowLevelSaf.java on line 135, it seems that LowLevel.init() is
throwing an UnsatisfiedLinkError:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java

Does anyone have a workaround for this? If not I can submit an issue.

Thanks!

--~--~-~--~~~---~--~~
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: Hosted mode non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread eighty

Problem solved:
http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/66ddffbb3ccf98f9

On Jul 7, 11:01 am, eighty eightyste...@gmail.com wrote:
 Max OS X 10.5.7Safari4
 64-bit Intel Core 2 Duo
 32-bit Java 1.5
 Eclipse 3.4.2
 Google Plugin for Eclipse:http://dl.google.com/eclipse/plugin/3.4
 GWT Trunk Revision 5683 compiled with 32-bit Java 1.5

 Problem:

 Create a new web application project in Eclipse using the Google
 Plugin (with GWT setting pointing to trunk, not 1.6.4). Try running
 the project in Hosted Mode with JRE 1.5. It immediately fails with the
 following console error:  On Mac OS X, ensure that you haveSafari3
 installed.

 In LowLevelSaf.java on line 135, it seems that LowLevel.init() is
 throwing an 
 UnsatisfiedLinkError:http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/m...

 Does anyone have a workaround for this? If not I can submit an issue.

 Thanks!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[gwt-contrib] Issue with trunk where hosted mode is a non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread eighty

I'm having a strange issue with trunk (r5687, compiled with 32-bit
Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
console displays the following error:

 On Mac OS X, ensure that you have Safari 3 
installed.

The easiest way to reproduce the problem is to have Safari 4
installed, create a new web application project using the Google
Plugin for Eclipse, and then try to launch it.

This definitely isn't my area of expertise, but In LowLevelSaf.java on
line 135, it seems that LowLevel.init() is 
throwing an
UnsatisfiedLinkError:


http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java

Does anyone know of a workaround? If this is a valid issue, I'd be
happy to submit a new issue.

Thanks!

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Issue with trunk where hosted mode is a non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread John Tamplin
On Tue, Jul 7, 2009 at 9:12 PM, eighty eightyste...@gmail.com wrote:


 I'm having a strange issue with trunk (r5687, compiled with 32-bit
 Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
 Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
 Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
 console displays the following error:

  On Mac OS X, ensure that you have Safari 3 installed.

 The easiest way to reproduce the problem is to have Safari 4
 installed, create a new web application project using the Google
 Plugin for Eclipse, and then try to launch it.

 This definitely isn't my area of expertise, but In LowLevelSaf.java on
 line 135, it seems that LowLevel.init() is throwing an
 UnsatisfiedLinkError:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java


Basically if it is throwing an exception there it is unable to load the
native library.  If you can print the exception there it should show exactly
what library is failing to load (and perhaps why).

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Issue with trunk where hosted mode is a non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread brett.wooldridge

John, know any reason the new hosted mode on OS X would be trying to
launch firefox?  Safari is my default OS browser, and Eclipse is
configured to use the system default browser.  But the new hosted mode
console reports Launching firefox ... followed by matching spewage
of NS* (NetScape) errors in the Eclipse console.  Thanks.

Brett

On Jul 8, 11:35 am, John Tamplin j...@google.com wrote:
 On Tue, Jul 7, 2009 at 9:12 PM, eighty eightyste...@gmail.com wrote:

  I'm having a strange issue with trunk (r5687, compiled with 32-bit
  Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
  Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
  Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
  console displays the following error:

   On Mac OS X, ensure that you have Safari 3 installed.

  The easiest way to reproduce the problem is to have Safari 4
  installed, create a new web application project using the Google
  Plugin for Eclipse, and then try to launch it.

  This definitely isn't my area of expertise, but In LowLevelSaf.java on
  line 135, it seems that LowLevel.init() is throwing an
  UnsatisfiedLinkError:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/m...

 Basically if it is throwing an exception there it is unable to load the
 native library.  If you can print the exception there it should show exactly
 what library is failing to load (and perhaps why).

 --
 John A. Tamplin
 Software Engineer (GWT), Google
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Issue with trunk where hosted mode is a non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread Aaron Steele

This is s embarrassing...

Basically I compiled GWT and then pointed my GWT library in Eclipse to
`build/lib` which doesn't include the native library libgwt-ll.jnilib.
I discovered this via John's suggestion of printing the exception
thrown in LowLevelSaf.java:

Your GWT installation may be corrupt
at com.google.gwt.dev.shell.LowLevel.init(LowLevel.java:106)
at com.google.gwt.dev.shell.mac.LowLevelSaf.init(LowLevelSaf.java:135)
at 
com.google.gwt.dev.BootStrapPlatform.initHostedMode(BootStrapPlatform.java:77)
at com.google.gwt.dev.HostedModeBase.init(HostedModeBase.java:368)
at 
com.google.gwt.dev.SwtHostedModeBase.init(SwtHostedModeBase.java:161)
at com.google.gwt.dev.HostedMode.init(HostedMode.java:282)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:241)
java.lang.UnsatisfiedLinkError: Unable to load required native library
'gwt-ll'.  Detailed error:
Can't load library: /Users/eighty/Java/GWT/trunk/build/lib/libgwt-ll.jnilib)

The solution, of course, is pointing the GWT library in Eclipse to
`build/staging/gwt-mac-0.0.0` instead.

I guess this might be a +1 for the comment on line 137 of LowLevelSaf.java?
// Try to provide some additional context

:}

Thanks!

On Tue, Jul 7, 2009 at 7:35 PM, John Tamplinj...@google.com wrote:
 On Tue, Jul 7, 2009 at 9:12 PM, eighty eightyste...@gmail.com wrote:

 I'm having a strange issue with trunk (r5687, compiled with 32-bit
 Java 1.5) where hosted mode (launched from Eclipse 3.4 with 32-bit
 Java 1.5 via the Google Plugin) won't start on Mac OS X 10.5.7 (Intel
 Core 2 Duo 64-bit machine) with Safari 4.0.1 installed. Instead, the
 console displays the following error:

  On Mac OS X, ensure that you have Safari 3 installed.

 The easiest way to reproduce the problem is to have Safari 4
 installed, create a new web application project using the Google
 Plugin for Eclipse, and then try to launch it.

 This definitely isn't my area of expertise, but In LowLevelSaf.java on
 line 135, it seems that LowLevel.init() is throwing an
 UnsatisfiedLinkError:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/mac/src/com/google/gwt/dev/shell/mac/LowLevelSaf.java

 Basically if it is throwing an exception there it is unable to load the
 native library.  If you can print the exception there it should show exactly
 what library is failing to load (and perhaps why).

 --
 John A. Tamplin
 Software Engineer (GWT), Google

 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Issue with trunk where hosted mode is a non-starter: On Mac OS X, ensure that you have Safari 3 installed

2009-07-07 Thread John Tamplin
On Tue, Jul 7, 2009 at 11:38 PM, brett.wooldridge 
brett.wooldri...@gmail.com wrote:

 John, know any reason the new hosted mode on OS X would be trying to
 launch firefox?  Safari is my default OS browser, and Eclipse is
 configured to use the system default browser.  But the new hosted mode
 console reports Launching firefox ... followed by matching spewage
 of NS* (NetScape) errors in the Eclipse console.  Thanks.


If by new hosted mode you mean OOPHM, that would be because it just execs
firefox URL.  As we get it ready for release in 2.0, that will be cleaned
up.  Until then, you just have to copy/paste the URL into a different
browser.

The NS* errors are likely because you have the SWT jars on your classpath
and Eclipse is helpfully adding -XstartOnFirstThread, which breaks Swing
apps.  See the UsingOOPHM wiki page for details.

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-07-06 Thread Roman

Hello Christoph

Thanks for posting your solution.

I tried it with a simple HashUserRealm and it worked perfectly.

Best regards,
Roman

On Jun 29, 9:55 am, cschoett c.scho...@osb-ag.de wrote:
 Hi Roman,

 I had the same issue after upgrading to GWT 1.6 and after a lot of
 trial and error I found a solution.
 You must add a jetty-web.xml to your configuration. Put it in the
 beside your web.xml file.

 My confifiguration looks like the following:

 ?xml version=1.0?
 !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN
 http://jetty.mortbay.org/configure.dtd;
 Configure class=org.mortbay.jetty.webapp.WebAppContext

         Get name=SecurityHandler
                 Call name=setUserRealm
                         Arg
                                         New 
 class=org.mortbay.jetty.security.JDBCUserRealm
                                                 Set name=nameyour realm 
 name/Set
                                                 Set 
 name=configjdbcRealm.properties/Set
                                         /New
                         /Arg
                 /Call
         /Get
 /Configure

 In the referenced jdbcRealm.properties the realm is configured (db
 access, user and role tables). You should find out how to configure
 this in the jetty documentation.

 This is the cleanest solution I found and it works for me without
 problems.

 Regards,
 Christoph
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Making RPC calls to remote server in hosted mode

2009-07-06 Thread justin choi

I've been exploring the -noserver option and it doesn't seem to do
what I need...

Basically, I want to be able to edit the front end in hosted mode and
access my remote server for RPC calls.  How can this be set up?

--~--~-~--~~~---~--~~
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: Making RPC calls to remote server in hosted mode

2009-07-06 Thread Jason Essington

That is pretty much exactly what -noserver is for. you can debug and  
even change your client code and have it execute against any remote  
server (whether that is on your local machine or even a production  
server).

-jason

On Jul 6, 2009, at 10:54 AM, justin choi wrote:


 I've been exploring the -noserver option and it doesn't seem to do
 what I need...

 Basically, I want to be able to edit the front end in hosted mode and
 access my remote server for RPC calls.  How can this be set up?

 


--~--~-~--~~~---~--~~
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: Making RPC calls to remote server in hosted mode

2009-07-06 Thread justin choi

Can you help figure out the parameters I need to do this?  I've only
seen examples to do it on localhost...

I've tried configurations along the lines of:
-noserver IPaddress -p port com.module/module.html


On Jul 6, 2:59 pm, Jason Essington jason.essing...@gmail.com wrote:
 That is pretty much exactly what -noserver is for. you can debug and  
 even change your client code and have it execute against any remote  
 server (whether that is on your local machine or even a production  
 server).

 -jason

 On Jul 6, 2009, at 10:54 AM, justin choi wrote:



  I've been exploring the -noserver option and it doesn't seem to do
  what I need...

  Basically, I want to be able to edit the front end in hosted mode and
  access my remote server for RPC calls.  How can this be set up?

--~--~-~--~~~---~--~~
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: Making RPC calls to remote server in hosted mode

2009-07-06 Thread Jason Essington

it is simply -noserver http://myserver.com/myHostpage.html

-jason

On Jul 6, 2009, at 1:39 PM, justin choi wrote:


 Can you help figure out the parameters I need to do this?  I've only
 seen examples to do it on localhost...

 I've tried configurations along the lines of:
 -noserver IPaddress -p port com.module/module.html


 On Jul 6, 2:59 pm, Jason Essington jason.essing...@gmail.com wrote:
 That is pretty much exactly what -noserver is for. you can debug and
 even change your client code and have it execute against any remote
 server (whether that is on your local machine or even a production
 server).

 -jason

 On Jul 6, 2009, at 10:54 AM, justin choi wrote:



 I've been exploring the -noserver option and it doesn't seem to do
 what I need...

 Basically, I want to be able to edit the front end in hosted mode  
 and
 access my remote server for RPC calls.  How can this be set up?

 


--~--~-~--~~~---~--~~
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: Quick fix for broken hosted mode with Snow Leopard 10A380 on x86_64

2009-07-04 Thread minichate

Thank you very much!

It is ugly, but it'll do until GWT itself is fixed. A note for others
trying this -- I believe some of the formatting got mangled in the
post. The last command should be:

for bin in `find . -type f -exec file {} \; | grep 'Mach-O universal
binary with 2 architectures' | sed -e 's/:.*//' ` ; do ditto --rsrc --
arch i386 $bin $bin.tmp.app ; mv $bin.tmp.app $bin ; done

Chris

On Jun 20, 1:50 pm, kugutsumen kugutsu...@gmail.com wrote:
 This is going to become a real issue in September when Mac OS X 10.6
 starts shipping.

 Cross-compiling works but hosted mode is broken.

 Darwin wolf 10.0.0b1 Darwin Kernel Version 10.0.0b1: Fri May 29
 00:02:02 PDT 2009; root:xnu-1456~1/RELEASE_I386 i386

 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
 -version
 java version 1.6.0_13
 Java(TM) SE Runtime Environment (build 1.6.0_13-b03-208)
 Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-81, mixed mode)

 GWT 0.0.0 At revision 5593.

 /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
 You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X.

 If I skip the Java 1.5 test...  UnsatisfiedLinkError is thrown.

 On Mac OS X, ensure that you have Safari 3 installed.
 Exception in thread main java.lang.UnsatisfiedLinkError: Unable to
 load required native library 'gwt-ll'.  Detailed error:
 /Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib:  no
 suitable image found.  Did find:  /Users/Shared/tank/pub/devel/gwt/gwt-
 mac-0.0.0/libgwt-ll.jnilib: no matching architecture in universal
 wrapper)

 $ file /Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib
 /Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib: Mach-
 O universal binary with 2 architectures
 /Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib (for
 architecture i386):     Mach-O bundle i386
 /Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib (for
 architecture ppc):      Mach-O bundle ppc

 libgwt-ll.jnilib is prebuilt so adding -arch x86_64 to jni/mac/
 Makefile has no effect.

 I managed to get gwt hosted mode to work by patching  isJava5 to
 always return true:

 --- ./dev/mac/src/com/google/gwt/dev/BootStrapPlatform.java.orig
 2009-06-21 00:42:40.0 +0700
 +++ ./dev/mac/src/com/google/gwt/dev/BootStrapPlatform.java     2009-06-20
 22:44:17.0 +0700
 @@ -115,7 +115,7 @@
     * 64-bit.
     */
    private static boolean isJava5() {
 -    return System.getProperty(java.version).startsWith(1.5);
 +    return true; /* System.getProperty(java.version).startsWith
 (1.5); */
    }

    /**

 Then I hacked a 32bit only version of the 1.6 JRE by stripping the
 x86_64 architecture:

 cd /System/Library/Frameworks/JavaVM.framework/Versions
 cp -pPR 1.6.0 1.6.0_32bit
 cd !$
 for bin in `find . -type f -exec file {} \; | grep 'Mach-O universal
 binary with 2 architectures' | sed -e 's/:.*//' ` ; do ditto --rsrc --
 arch i386 $bin $bin.tmp.app ; mv $bin.tmp.app $bin ; done

 Added /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0_32bit/
 Home in  Eclipse - Preferences - Java - Installed JRE  and selected
 it.

 Really ugly fix but at least hosted mode works.

--~--~-~--~~~---~--~~
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: GWT Eclipse Hosted Mode Problem

2009-07-02 Thread Miguel Méndez
This isn't a plugin problem; it is fundamental to GWT.  If you want
Data.java to be usable from client code you will need to map it in via the
GWT module file.  The following link will help you understand how to do
that:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

On Wed, Jul 1, 2009 at 12:30 PM, Joseph Arceneaux
joe.arcene...@gmail.comwrote:

 The way I understand the GWT source arrangement paradigm, I have arranged
 my code like so:
 com.foo.project.Data.java - shared client/server code
 com.foo.project.client.Project.java - client code.
 com.foo.project.server.ServerSide.java - server code.

 When editing, Project.java can refer to Data.java elements, no problem.
  But when I try to run in hosted mode, I get the error (from the client
 code):

Line 433: No source code is available for type com.foo.project.Data; did
 you forget to inherit a required module?

 Is there some runtime / hosted mode configuration to be done to resolve
 this?

 Thanks,
 Joe




 



-- 
Miguel

--~--~-~--~~~---~--~~
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: GWT 1.6.4 - Blank page in Hosted Mode

2009-07-02 Thread Fred Sauer
I wonder if you're running into this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3682

To verify this:
1. shutdown hosted mode
2. clear all files in your browser's cache (assuming you're on Windows,
clear all files from the cache in IE; that the IE browser on your machine
which is what is embedded in hosted mode on Windows)
3. relaunch your app

If everything works, you may have been bitten by the above issue. Let me
know if that's the case.

Fred



On Sat, Jun 27, 2009 at 11:52 AM, Farinha fari...@gmail.com wrote:


 I'm having the exact same problem.
 Just started with GWT+Eclipse+App Engine today, so it's quite possible
 I'm doing something wrong.

 Anyway, I suspected that the code that generates the panels wasn't
 being hit and placed a breakpoint there. And hitting the debug (F11)
 didn't trigger any breakpoint, which leads me to believe that part of
 the code is not running, and that's why the panels are not displayed.
 But then again, if I hit the Compile/Browse button I can see
 everything properly.

 Thanks for the help.


 On Jun 20, 5:23 am, Lupan augustolu...@gmail.com wrote:
  Hi ! I just downloaded the GWT 1.6.4 distribution and tried running
  some of the samples with the ant hosted command. Unfortunately only
  the static content is loaded in the hosted mode browser, as if there
  were no script tag at all. I've tried it on eclipse and it presented
  the same behavior. The logging seems fine:
 
  [INFO] 200 - GET /StockWatcher.html (127.0.0.1) 2242 bytes
  [INFO] 200 - GET /StockWatcher.css (127.0.0.1) 602 bytes
  [INFO] 200 - GET /stockwatcher/stockwatcher.nocache.js (127.0.0.1)
  4990 bytes
 
  The strange thing is that when I hit the Compile/Browse button the
  application loads fine on my browser (Firefox 3), the inputText field
  and the button appear, just like in the tutorial. As I said, within
  the Hosted Mode Browser only the page static content is shown (just
  Web Application Starter Project and Please enter your name:
  labels), no GWT application is launched (appareantly).
  The problem seems to be something specific to the Hosted Mode Browser.
 
  I'm using JDK 1.6u14 (Just reinstalled it because I saw some posts
  telling about it but the problem remained the same)
 
  Any clues will be much appretiated ! Thank you !!

 



-- 
Fred Sauer
f...@allen-sauer.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-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
-~--~~~~--~~--~--~---



Hosted mode problem in Netbeans. Need help.

2009-07-02 Thread Software Developer

Hi, I am having trouble with hosted mode in Netbeans. If I place my
code under the client folder, everything works OK, and I can see the
changes I make when I hit refresh. However, I cannot see changes when
I hit refresh for code that is in an inherited module. Is there anyway
to fix that?

Thanks.

--~--~-~--~~~---~--~~
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: GWT Eclipse Hosted Mode Problem

2009-07-02 Thread Joseph Arceneaux
I guess it seems like a bug that the compiler discovers my Data.java when
editing in Eclipse, but the runtime can't seem to do it.
Thanks for the pointer, but I've been there.  First I tried inherits
com.foo.project.Data and it complained that I needed to created a
Data.gwt.xml file, which doesn't seem right.

Then I tried the source path=/ and it said I couldn't use absolute paths
(I understand it invisibly adds source path=client, but how do I get the
superior package added).

Any further suggestions?

Thanks again,
Joe

2009/7/2 Miguel Méndez mmen...@google.com

 This isn't a plugin problem; it is fundamental to GWT.  If you want
 Data.java to be usable from client code you will need to map it in via the
 GWT module file.  The following link will help you understand how to do
 that:
 http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

 On Wed, Jul 1, 2009 at 12:30 PM, Joseph Arceneaux joe.arcene...@gmail.com
  wrote:

 The way I understand the GWT source arrangement paradigm, I have arranged
 my code like so:
 com.foo.project.Data.java - shared client/server code
 com.foo.project.client.Project.java - client code.
 com.foo.project.server.ServerSide.java - server code.

 When editing, Project.java can refer to Data.java elements, no problem.
  But when I try to run in hosted mode, I get the error (from the client
 code):

Line 433: No source code is available for type com.foo.project.Data;
 did you forget to inherit a required module?

 Is there some runtime / hosted mode configuration to be done to resolve
 this?

 Thanks,
 Joe








 --
 Miguel

 


--~--~-~--~~~---~--~~
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: GWT Eclipse Hosted Mode Problem

2009-07-02 Thread Isaac Truett

 (I understand it invisibly adds source path=client, but how do I get the
 superior package added).

You don't. All of the client code has to be in packages under the
module. You can make a common/shared/data/model/whatever package for
shared client/server code and declare that in your module (i.e.,
source path=common). Move your shared classes into that package.

And it's not a bug that Eclipse finds your Data.java and compiles it
as a Java class. Rules for compiling GWT modules and Java classes are
significantly different.



On Thu, Jul 2, 2009 at 2:04 PM, Joseph Arceneauxjoe.arcene...@gmail.com wrote:
 I guess it seems like a bug that the compiler discovers my Data.java when
 editing in Eclipse, but the runtime can't seem to do it.
 Thanks for the pointer, but I've been there.  First I tried inherits
 com.foo.project.Data and it complained that I needed to created a
 Data.gwt.xml file, which doesn't seem right.
 Then I tried the source path=/ and it said I couldn't use absolute paths
 (I understand it invisibly adds source path=client, but how do I get the
 superior package added).
 Any further suggestions?
 Thanks again,
 Joe

 2009/7/2 Miguel Méndez mmen...@google.com

 This isn't a plugin problem; it is fundamental to GWT.  If you want
 Data.java to be usable from client code you will need to map it in via the
 GWT module file.  The following link will help you understand how to do
 that: http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules
 On Wed, Jul 1, 2009 at 12:30 PM, Joseph Arceneaux
 joe.arcene...@gmail.com wrote:

 The way I understand the GWT source arrangement paradigm, I have arranged
 my code like so:
 com.foo.project.Data.java - shared client/server code
 com.foo.project.client.Project.java - client code.
 com.foo.project.server.ServerSide.java - server code.
 When editing, Project.java can refer to Data.java elements, no problem.
  But when I try to run in hosted mode, I get the error (from the client
 code):
    Line 433: No source code is available for type com.foo.project.Data;
 did you forget to inherit a required module?
 Is there some runtime / hosted mode configuration to be done to resolve
 this?
 Thanks,
 Joe







 --
 Miguel




 


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



GWT Eclipse Hosted Mode Problem

2009-07-01 Thread Joseph Arceneaux
The way I understand the GWT source arrangement paradigm, I have arranged my
code like so:
com.foo.project.Data.java - shared client/server code
com.foo.project.client.Project.java - client code.
com.foo.project.server.ServerSide.java - server code.

When editing, Project.java can refer to Data.java elements, no problem.  But
when I try to run in hosted mode, I get the error (from the client code):

   Line 433: No source code is available for type com.foo.project.Data; did
you forget to inherit a required module?

Is there some runtime / hosted mode configuration to be done to resolve
this?

Thanks,
Joe

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



[gwt-contrib] Re: derpc review: hosted-mode user code, rebind, and related tests

2009-07-01 Thread John Tamplin
On Wed, Jul 1, 2009 at 2:59 PM, Bob Vawter robertvaw...@google.com wrote:

  append: where is quoting the RPC_SEPARATOR_CHAR handled if it is
 contained
  within the string?

 That's unnecessary, since the length of the string is known. The
 following separator character is just there to ensure that the decoder
 is synchronized with the payload and could be removed.


Ok, though if I am right below there will have to be a escaping/descaping
going on here.


  I don't see where all the quoting is handled like
  ServerSerializationStreamReader deserializeStringTable (and others) did
  before -- various browsers have issues with different characters (current
  Android doesn't handle any non-ASCII due to a double-decode problem), and
  while I am not looking at the web-mode code with OOPHM (and hopefully
  eventually an Android plugin among others) I still think this needs to be
  solved here.  Maybe I am missing it since otherwise I don't see how
  UnicodeEscapingTest2 could pass on all browsers.

 You're saying that it can't correctly write a UTF-8 string into an XHR
 or eval() JS containing UTF8 string literals?  I'll run this test on
 my Android 1.5 device.


The tests we did before showed that the existing RPC mechanism failed with
any non-ASCII characters on Android, because it was doing the equivalent of
UTF8encode(UTF8encode(string)) when sending from the browser to the server.

Also, WebKit in general mangles a bunch of characters so it needs additional
quoting (though more recent versions may be better).

Take a look at ClientSerializationStreamWriter.getQuotingRegex() for where
we produce a regex that matches any characters which must be quoted to
safely make it to the server.


 The only test that fails is the one that creates bad strings with low
 surrogate characters not followed by a high surrogate character.  Why
 is that tested?


User code might include those in strings.  The code referenced above
properly quotes them.


  RpcRequestBuilder.java
 The constants are duplicated between client and servlet code.


Ok..

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] derpc review: hosted-mode user code, rebind, and related tests

2009-06-30 Thread John Tamplin
Sorry this took so long -- its a lot of code.  In general it looks pretty
good - mostly just minor nits and a couple clarifications requested, plus
one potentially significant issue.

I would like to see example payloads in comments (not sure the best place to
put it -- maybe in the CommandSink implementations, SimplePayloadDecoder,
etc).
*
TestSetValidator.java, others*
I am getting a checkstyle error here on the import order.  Eclipse doesn't
reorder them, but checkstyle requires that static imports come at the end of
each group of imports and ordered among themselves.  I am attaching a patch
to gwt.importorder which gets close, but it doesn't exactly match checkstyle
(if there are static and non-static imports in the same prefix, they will be
separated by Eclipse but Checkstyle wants them in the same group).  After
applying the patch, Ctrl-Shift-O will rearrange imports in the order
Checkstyle is happy with.  This also needs to be done in the other files
where static imports are used.

*HybridServiceServlet.java*
writeResponse is private and unused, so it needs to have
@SuppressWarnings(unused) // referenced by JSNI added.

*CustomFieldSerializerTest.java*
Why does this take 10x as long?  The build already takes long enough and if
there is an issue getting to the server I would rather it fail in quicker
than 50s.  How about 10s if it needs to be increased?

*InheritanceTest.java*
I know it is existing code, but I would change the anonymous subclasses of
AsyncCallback to be AsyncCallbackObject to avoid raw type warnings.

*CustomFieldSerializerTestSetValidator.java*
line 42: where is it tested that we don't see this STE?

*RpcProxyCreator.java*

   - writeSerializationPolicyFile - will this get called?  It looks like
   ProxyCreator will wind up creating a string null if so -- is that an
   issue?
   - Can you give an overview of what is going on with the artificial
   rescues here?

*RPC.java*

   - line 55: add a comment explaining the space is needed to avoid
   potential collisions
   - implementsInterfaceRecursive: perhaps Recursive helper for
   implementsInterface() would be a more useful comment.

*SimplePayloadSink.java*

   - line 231: would it be useful to tie this to -style PRETTY?  Like maybe
   provide a static setter and have generated code insert a call to it in
   PRETTY mode?
   - append: where is quoting the RPC_SEPARATOR_CHAR handled if it is
   contained within the string?
   - I don't see where all the quoting is handled like
   ServerSerializationStreamReader deserializeStringTable (and others) did
   before -- various browsers have issues with different characters (current
   Android doesn't handle any non-ASCII due to a double-decode problem), and
   while I am not looking at the web-mode code with OOPHM (and hopefully
   eventually an Android plugin among others) I still think this needs to be
   solved here.  Maybe I am missing it since otherwise I don't see how
   UnicodeEscapingTest2 could pass on all browsers.

*SimplePayloadDecoder.java*

   - same comment about quoting and encoding
   - missing newline at EOF

*HasSetters.java, HasValues.java, **ClientOracle.java**,
AbstractRemoteServiceServlet.java *
missing newline at EOF

*RpcRequestBuilder.java*
line 44: not sure I see the value in this comment, as the IDE will do that
for you.  I know you were just keeping it like the existing code, but I
would remove all of them.

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---

Index: eclipse/settings/code-style/gwt.importorder
===
--- eclipse/settings/code-style/gwt.importorder	(revision 5639)
+++ eclipse/settings/code-style/gwt.importorder	(working copy)
@@ -1,9 +1,16 @@
 #Organize Import Order
-#Thu Jul 20 15:01:42 EDT 2006
-6=javax
-5=java
-4=org
-3=net
-2=junit
-1=com
+#Tue Jun 30 09:38:40 GMT-05:00 2009
+9=\#org
+8=org
+7=\#net
+6=net
+5=\#junit
+13=\#javax
+4=junit
+12=javax
+3=\#com
+11=\#java
+2=com
+10=java
+1=\#com.google
 0=com.google


Re: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-06-29 Thread cschoett

Hi Roman,

I had the same issue after upgrading to GWT 1.6 and after a lot of
trial and error I found a solution.
You must add a jetty-web.xml to your configuration. Put it in the
beside your web.xml file.

My confifiguration looks like the following:

?xml version=1.0?
!DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN
http://jetty.mortbay.org/configure.dtd;
Configure class=org.mortbay.jetty.webapp.WebAppContext

Get name=SecurityHandler
Call name=setUserRealm
Arg
New 
class=org.mortbay.jetty.security.JDBCUserRealm
Set name=nameyour realm 
name/Set
Set 
name=configjdbcRealm.properties/Set
/New
/Arg
/Call
/Get
/Configure

In the referenced jdbcRealm.properties the realm is configured (db
access, user and role tables). You should find out how to configure
this in the jetty documentation.

This is the cleanest solution I found and it works for me without
problems.

Regards,
Christoph
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to prevent hosted mode web server from sending charset in the HTTP-Header?

2009-06-29 Thread alex.d

How to prevent hosted mode web server from sending charset in the HTTP-
Header?
Setting charset in the HTML META Header should actually be enough.
--~--~-~--~~~---~--~~
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: Default Sample Project (GreetingService) doesn't display widgets in hosted mode

2009-06-29 Thread Miguel Méndez
What OS are you running on?  Also, what exact version of eclipse are you
using?

On Fri, Jun 26, 2009 at 6:35 PM, mcjames01 mcjame...@msn.com wrote:


 I set the log level to ALL and see that I'm getting a couple
 exceptions.
 The first one is:
 org.mortbay.jetty.HttpException: null
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
 (QueuedThreadPool.java:488)

 In the log it's immediately preceded by these two logs:

 [SPAM] uri=/foobar/hosted.html?foobar

 [SPAM] fields=Accept: image/gif, image/x-xbitmap, image/jpeg, image/
 pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
 application/msword, application/x-ms-application, application/x-ms-
 xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
 application/x-shockwave-flash, */*
 Referer: http://localhost:4959/FooBar.html
 Accept-Language: en-us
 UA-CPU: x86
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
 CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR
 3.5.21022; MS-RTC LM 8)
 Host: localhost:4959
 Connection: Keep-Alive

 Prior to this I was seeing successful RESPONSE (200) for the
 clear.cache.gif

 Then the second one is:

 [SPAM] EXCEPTION
 java.io.IOException: An existing connection was forcibly closed by the
 remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:122)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:281)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
 (SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
 (QueuedThreadPool.java:488)

 Apparently it died.  This occurred immediately after a succesful
 REQEST/RESPONSE for the gwt/standard/standard.css resource.

 Any ideas what to look for in my environment?

 On Jun 26, 3:54 pm, mcjames01 mcjame...@msn.com wrote:
  Here's what I did:
 
  From a fresh eclipse 3.4 installation, GWT 1.6.4, with the 1.0.1 GWT
  plugin I created a new Google Web Application (File-New-Other
  Google-Web Application Project)
 
  I named it FooBar, used com.example.foobar as the package.  Chose
  Create in project workspace, Checked Use Google Web Toolkit, and Use
  default SDK (GWT - 1.6.4).  Unchecked Use Google App Engine.  Clicked
  on Finish.
 
  I right clicked on the project, chose Run As-Google Web Application.
  The shell opened and the hosted browser came up, but only the contents
  of the host HTML file displayed, no text boxes, no buttons.  Nothing.
 
  See my previous post for the contents of the shell:
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 
  Any suggestions?  I'm going to see if I can turn up the log level to
  see if I can get more clues.
 



-- 
Miguel

--~--~-~--~~~---~--~~
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: Default Sample Project (GreetingService) doesn't display widgets in hosted mode

2009-06-29 Thread mcjames01

Thanks for looking at this Miquel, but my boss found this post:
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg16364.html

and sure enough, clearing my cookies in IE did the trick.

On Jun 29, 7:52 am, Miguel Méndez mmen...@google.com wrote:
 What OS are you running on?  Also, what exact version of eclipse are you
 using?





 On Fri, Jun 26, 2009 at 6:35 PM, mcjames01 mcjame...@msn.com wrote:

  I set the log level to ALL and see that I'm getting a couple
  exceptions.
  The first one is:
  org.mortbay.jetty.HttpException: null
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
         at org.mortbay.io.nio.SelectChannelEndPoint.run
  (SelectChannelEndPoint.java:395)
         at org.mortbay.thread.QueuedThreadPool$PoolThread.run
  (QueuedThreadPool.java:488)

  In the log it's immediately preceded by these two logs:

  [SPAM] uri=/foobar/hosted.html?foobar

  [SPAM] fields=Accept: image/gif, image/x-xbitmap, image/jpeg, image/
  pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
  application/msword, application/x-ms-application, application/x-ms-
  xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
  application/x-shockwave-flash, */*
  Referer:http://localhost:4959/FooBar.html
  Accept-Language: en-us
  UA-CPU: x86
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
  CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR
  3.5.21022; MS-RTC LM 8)
  Host: localhost:4959
  Connection: Keep-Alive

  Prior to this I was seeing successful RESPONSE (200) for the
  clear.cache.gif

  Then the second one is:

  [SPAM] EXCEPTION
  java.io.IOException: An existing connection was forcibly closed by the
  remote host
         at sun.nio.ch.SocketDispatcher.read0(Native Method)
         at sun.nio.ch.SocketDispatcher.read(Unknown Source)
         at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
         at sun.nio.ch.IOUtil.read(Unknown Source)
         at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
         at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:122)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:281)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
         at org.mortbay.io.nio.SelectChannelEndPoint.run
  (SelectChannelEndPoint.java:395)
         at org.mortbay.thread.QueuedThreadPool$PoolThread.run
  (QueuedThreadPool.java:488)

  Apparently it died.  This occurred immediately after a succesful
  REQEST/RESPONSE for the gwt/standard/standard.css resource.

  Any ideas what to look for in my environment?

  On Jun 26, 3:54 pm, mcjames01 mcjame...@msn.com wrote:
   Here's what I did:

   From a fresh eclipse 3.4 installation, GWT 1.6.4, with the 1.0.1 GWT
   plugin I created a new Google Web Application (File-New-Other
   Google-Web Application Project)

   I named it FooBar, used com.example.foobar as the package.  Chose
   Create in project workspace, Checked Use Google Web Toolkit, and Use
   default SDK (GWT - 1.6.4).  Unchecked Use Google App Engine.  Clicked
   on Finish.

   I right clicked on the project, chose Run As-Google Web Application.
   The shell opened and the hosted browser came up, but only the contents
   of the host HTML file displayed, no text boxes, no buttons.  Nothing.

   See my previous post for the contents of the shell:
 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

   Any suggestions?  I'm going to see if I can turn up the log level to
   see if I can get more clues.

 --
 Miguel- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Default Sample Project (GreetingService) doesn't display widgets in hosted mode

2009-06-29 Thread Miguel Méndez
Glad to know that you were able to find a work around.

On Mon, Jun 29, 2009 at 2:09 PM, mcjames01 mcjame...@msn.com wrote:


 Thanks for looking at this Miquel, but my boss found this post:

 http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg16364.html

 and sure enough, clearing my cookies in IE did the trick.

 On Jun 29, 7:52 am, Miguel Méndez mmen...@google.com wrote:
  What OS are you running on?  Also, what exact version of eclipse are you
  using?
 
 
 
 
 
  On Fri, Jun 26, 2009 at 6:35 PM, mcjames01 mcjame...@msn.com wrote:
 
   I set the log level to ALL and see that I'm getting a couple
   exceptions.
   The first one is:
   org.mortbay.jetty.HttpException: null
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
  at
 org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
  at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
  at org.mortbay.io.nio.SelectChannelEndPoint.run
   (SelectChannelEndPoint.java:395)
  at org.mortbay.thread.QueuedThreadPool$PoolThread.run
   (QueuedThreadPool.java:488)
 
   In the log it's immediately preceded by these two logs:
 
   [SPAM] uri=/foobar/hosted.html?foobar
 
   [SPAM] fields=Accept: image/gif, image/x-xbitmap, image/jpeg, image/
   pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
   application/msword, application/x-ms-application, application/x-ms-
   xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
   application/x-shockwave-flash, */*
   Referer:http://localhost:4959/FooBar.html
   Accept-Language: en-us
   UA-CPU: x86
   Accept-Encoding: gzip, deflate
   User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
   CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR
   3.5.21022; MS-RTC LM 8)
   Host: localhost:4959
   Connection: Keep-Alive
 
   Prior to this I was seeing successful RESPONSE (200) for the
   clear.cache.gif
 
   Then the second one is:
 
   [SPAM] EXCEPTION
   java.io.IOException: An existing connection was forcibly closed by the
   remote host
  at sun.nio.ch.SocketDispatcher.read0(Native Method)
  at sun.nio.ch.SocketDispatcher.read(Unknown Source)
  at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
  at sun.nio.ch.IOUtil.read(Unknown Source)
  at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
  at
 org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:122)
  at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:281)
  at
 org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
  at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
  at org.mortbay.io.nio.SelectChannelEndPoint.run
   (SelectChannelEndPoint.java:395)
  at org.mortbay.thread.QueuedThreadPool$PoolThread.run
   (QueuedThreadPool.java:488)
 
   Apparently it died.  This occurred immediately after a succesful
   REQEST/RESPONSE for the gwt/standard/standard.css resource.
 
   Any ideas what to look for in my environment?
 
   On Jun 26, 3:54 pm, mcjames01 mcjame...@msn.com wrote:
Here's what I did:
 
From a fresh eclipse 3.4 installation, GWT 1.6.4, with the 1.0.1 GWT
plugin I created a new Google Web Application (File-New-Other
Google-Web Application Project)
 
I named it FooBar, used com.example.foobar as the package.  Chose
Create in project workspace, Checked Use Google Web Toolkit, and Use
default SDK (GWT - 1.6.4).  Unchecked Use Google App Engine.  Clicked
on Finish.
 
I right clicked on the project, chose Run As-Google Web Application.
The shell opened and the hosted browser came up, but only the
 contents
of the host HTML file displayed, no text boxes, no buttons.  Nothing.
 
See my previous post for the contents of the shell:
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa.
 ..
 
Any suggestions?  I'm going to see if I can turn up the log level to
see if I can get more clues.
 
  --
  Miguel- Hide quoted text -
 
  - Show quoted text -
 



-- 
Miguel

--~--~-~--~~~---~--~~
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: GWT 1.6.4 - Blank page in Hosted Mode

2009-06-27 Thread Farinha

I'm having the exact same problem.
Just started with GWT+Eclipse+App Engine today, so it's quite possible
I'm doing something wrong.

Anyway, I suspected that the code that generates the panels wasn't
being hit and placed a breakpoint there. And hitting the debug (F11)
didn't trigger any breakpoint, which leads me to believe that part of
the code is not running, and that's why the panels are not displayed.
But then again, if I hit the Compile/Browse button I can see
everything properly.

Thanks for the help.


On Jun 20, 5:23 am, Lupan augustolu...@gmail.com wrote:
 Hi ! I just downloaded the GWT 1.6.4 distribution and tried running
 some of the samples with the ant hosted command. Unfortunately only
 the static content is loaded in the hosted mode browser, as if there
 were no script tag at all. I've tried it on eclipse and it presented
 the same behavior. The logging seems fine:

 [INFO] 200 - GET /StockWatcher.html (127.0.0.1) 2242 bytes
 [INFO] 200 - GET /StockWatcher.css (127.0.0.1) 602 bytes
 [INFO] 200 - GET /stockwatcher/stockwatcher.nocache.js (127.0.0.1)
 4990 bytes

 The strange thing is that when I hit the Compile/Browse button the
 application loads fine on my browser (Firefox 3), the inputText field
 and the button appear, just like in the tutorial. As I said, within
 the Hosted Mode Browser only the page static content is shown (just
 Web Application Starter Project and Please enter your name:
 labels), no GWT application is launched (appareantly).
 The problem seems to be something specific to the Hosted Mode Browser.

 I'm using JDK 1.6u14 (Just reinstalled it because I saw some posts
 telling about it but the problem remained the same)

 Any clues will be much appretiated ! Thank you !!

--~--~-~--~~~---~--~~
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: How to get HTTP authentication working in hosted mode using GWT 1.6

2009-06-26 Thread Andrew Newdigate
Hi Roman,

I've worked out a bit of hack to get this working for myself. It works well
enough for me right now, but if I had time I would do it properly.

Here's what you need to do:
* Duplicate the code from the com.google.gwt.dev.shell.jetty.JettyLauncher
class into your project. GWT ships with the sources, so it should be easy to
find this class. I called my duplicate class JettyRealmServletLauncher.

* Add the jetty-plus-6.1.1.jar to your project classpath. (I am using Maven
and used artifact org.mortbay.jetty:jetty-plus:6.1.1 with scope PROVIDED)

* In the start method in JettyRealmServletLauncher, locate the line that
says server.addConnector(connector), and add your realm configuration below,
in a similar manner to how you would do it in the jetty.xml file.

Mine looked like:
   JAASUserRealm realm = new JAASUserRealm();
   realm.setName(Realm);
   realm.setLoginModuleName(LoginModule);
   realm.setRoleClassNames(new String[] {
   com.xx.ldap.LDAPGroup,
   com.xx.ldap.LDAPPrincipal,
   com.xx.login.RdbmsRole });
   server.addUserRealm(realm);

Then, open up your GWT Web Application debug/run configuration in Eclipse
(Run|Debug Configurations) and go to the arguments tab, where you need to
add the following line:
-server com.x.client.JettyRealmServletLauncher
(Obviously you'll need to replace the FQCN with your own)

I hope this helps, let me know if you have any problems.

Ideally it would be great if the standard JettyLauncher that ships with GWT
could be passed a parameter for the jetty.xml configuration file from the
command line. It wouldn't be too hard to write an instance of
ServletContainerLauncher that does this.

Regards,
Andrew

On Apr 3, 5:47 pm, Roman roman.g...@gmail.com wrote:
 Thanks for the suggestions

 I still wished it would be possible to use internal jetty server and
 configure it to support HTTP authentication. It would make debugging
 of the server code a lot easier.

 -- Roman

 On Apr 3, 5:33 pm, Vitali Lovich vlov...@gmail.com wrote:



  Cool trick I found on the web:

 
javascript:void(function(){var%20i,a,s;a=document.getElementsByTagName('lin
k');for(i=0;ia.length;i++){s=a[i];if(s.rel.toLowerCase().indexOf('styleshe
et')=0s.href)%20{var%20h=s.href.replace(/(|%5C?)forceReload=\d+/,'');s.
href=h+(h.indexOf('?')=0?'':'?')+'forceReload='+(new%20Date().valueOf())}
}})();

  Refreshes your CSS without reloading your page.  Pretty useful with
  GWT apps since refreshing them regularly can cause problems.

  On Fri, Apr 3, 2009 at 11:31 AM, rudolf michael roud...@gmail.com
wrote:
   if you changed the static files like .css, .html and others then yes
you
   will need to re-deploy the war to see the changes in your hosted mod
   browser.
   But if you did change the .java files, then you will see the changes
on the
   fly. means that no need to re-delpoy your war, just refresh your
hosted mode
   browser.

   regards,
   ruds

   On Fri, Apr 3, 2009 at 6:27 PM, Roman roman.g...@gmail.com wrote:

   Thanks, for your reply.

   This would mean, that I could only debug the client code in Eclipse
   and that the war file needs to be rebuilt and deployed every time I
   change the server code, right?

   -- Roman

   On Apr 3, 5:00 pm, rudolf michael roud...@gmail.com wrote:
Hello,
You can always change your shell command params to point to any
other
Servlet container/app server.
i dont think that the Jetty server which comes with the toolkit
has
support
for such thing.
in you shell-cmd.bat, add the following:
com.google.gwt.dev.GWTShell -noserver -port 8080
where 8080 is your app server that your war is hosted.

On Fri, Apr 3, 2009 at 5:51 PM, Roman roman.g...@gmail.com
wrote:

 Hello

 In my web.xml file I'm using the following configuration to
enable
 HTTP authentication for my app:

  security-constraint
web-resource-collection
  web-resource-nameDemo Application/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-namesol/role-name
/auth-constraint
  /security-constraint

  login-config
auth-methodBASIC/auth-method
realm-nameDemo authentication/realm-name
  /login-config

 For web mode I have configured a suitable realm in my tomcat
server
 and got HTTP authentication working.

 Now I would like to use HTTP authentication also in hosted mode
using
 the embedded Jetty server (for debugging).

 Can anybody tell me how to proceed or help me to locate the
 configuration files for the embedded Jetty server?

 Thanks and regards,
 Roman

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

Default Sample Project (GreetingService) doesn't display widgets in hosted mode

2009-06-26 Thread mcjames01

Here's what I did:

From a fresh eclipse 3.4 installation, GWT 1.6.4, with the 1.0.1 GWT
plugin I created a new Google Web Application (File-New-Other
Google-Web Application Project)

I named it FooBar, used com.example.foobar as the package.  Chose
Create in project workspace, Checked Use Google Web Toolkit, and Use
default SDK (GWT - 1.6.4).  Unchecked Use Google App Engine.  Clicked
on Finish.

I right clicked on the project, chose Run As-Google Web Application.
The shell opened and the hosted browser came up, but only the contents
of the host HTML file displayed, no text boxes, no buttons.  Nothing.

See my previous post for the contents of the shell:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3591b370b8a4e8cc#

Any suggestions?  I'm going to see if I can turn up the log level to
see if I can get more clues.
--~--~-~--~~~---~--~~
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: Default Sample Project (GreetingService) doesn't display widgets in hosted mode

2009-06-26 Thread mcjames01

I set the log level to ALL and see that I'm getting a couple
exceptions.
The first one is:
org.mortbay.jetty.HttpException: null
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)

In the log it's immediately preceded by these two logs:

[SPAM] uri=/foobar/hosted.html?foobar

[SPAM] fields=Accept: image/gif, image/x-xbitmap, image/jpeg, image/
pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/msword, application/x-ms-application, application/x-ms-
xbap, application/vnd.ms-xpsdocument, application/xaml+xml,
application/x-shockwave-flash, */*
Referer: http://localhost:4959/FooBar.html
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR
3.5.21022; MS-RTC LM 8)
Host: localhost:4959
Connection: Keep-Alive

Prior to this I was seeing successful RESPONSE (200) for the
clear.cache.gif

Then the second one is:

[SPAM] EXCEPTION
java.io.IOException: An existing connection was forcibly closed by the
remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at org.mortbay.io.nio.ChannelEndPoint.fill(ChannelEndPoint.java:122)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:281)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)

Apparently it died.  This occurred immediately after a succesful
REQEST/RESPONSE for the gwt/standard/standard.css resource.

Any ideas what to look for in my environment?

On Jun 26, 3:54 pm, mcjames01 mcjame...@msn.com wrote:
 Here's what I did:

 From a fresh eclipse 3.4 installation, GWT 1.6.4, with the 1.0.1 GWT
 plugin I created a new Google Web Application (File-New-Other
 Google-Web Application Project)

 I named it FooBar, used com.example.foobar as the package.  Chose
 Create in project workspace, Checked Use Google Web Toolkit, and Use
 default SDK (GWT - 1.6.4).  Unchecked Use Google App Engine.  Clicked
 on Finish.

 I right clicked on the project, chose Run As-Google Web Application.
 The shell opened and the hosted browser came up, but only the contents
 of the host HTML file displayed, no text boxes, no buttons.  Nothing.

 See my previous post for the contents of the 
 shell:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 Any suggestions?  I'm going to see if I can turn up the log level to
 see if I can get more clues.
--~--~-~--~~~---~--~~
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: hosted mode compile error from eclipse

2009-06-25 Thread Rajeev Dayal
Hey Chris,
Thanks for the information. It should not be the case that all of the source
folders defined in the project are included on the classpath by default. It
is true that all of the source files in all of your source folders will be
compiled and dumped in the same output directory, and these classes will be
on your runtime classpath. However, I do not believe that your source
folders will ever by added to the runtime classpath for a Java launch
configuration by default. Is this what you were seeing? If so, where/how was
this shown?


Rajeev



On Wed, Jun 24, 2009 at 4:41 PM, chris gwt chris@gmail.com wrote:




  In the diagram there, are GWT, Other, etc.. are those children of
  MyProject (default classpath)?
They are children of User Entries.  MyProject is also a child of
 User Entries and is unexpanded (+)
  If so, how did you get GWT  \MyProject\source\ and Other
 \MyProject\source\ in the list?
They were manually added by me.
  Do the entries actually say \MyProject\source? Did you add those to
 your Java build path?
Yes.  We the project has several source folders.  6 or 7 real
 source folders, and 2 unit test folders.
  All of that aside, what you should do is create a different source folder
  for your test code. You can use the same package structure for your test
  code as you do for your source code (if you'd like). When running your
  application, make sure that the test code folder is not on the runtime
  classpath. When running unit tests, make sure that the test code folder
 IS
  on the runtime classpath.
Thats precisely what I had tried to accomplish originally... The
 problem is that all source folders (as defined in the project) are
 included in the classpath/source path by default, and are un-
 removable, as far as I can tell.
 


--~--~-~--~~~---~--~~
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: hosted mode compile error from eclipse

2009-06-24 Thread Rajeev Dayal
Hi Chris,
Right now, we use a heuristic to exclude test directories from your
project's classpath on execution. If the folder containing your test source
is named test, then we will not add it to your project's runtime
classpath.

We use this heuristic because the plugin currently has no understanding of
GWT modules, so it cannot distinguish between test code and source code. In
a future version of the plugin, we are going to bake in GWT module
information, which will mean that this heuristic will become unnecessary.

If it is not a reasonable solution to name the directory containing your
test source code test, another option is to edit the launch configuration
for your application, and remove the test folder from the runtime classpath.


Rajeev

On Tue, Jun 23, 2009 at 10:33 AM, chris gwt chris@gmail.com wrote:


 Hi everyone, I've run into a little issue when launching hosted mode
 with an eclipse run configuration.

 I believe the issue is that all of the source directories for my
 project are included when compiling for hosted mode.. including unit
 test directories that I don't want to include.

 My personal style is to put my unit test classes in the same package
 as the class being tested, but in a different source directory.  The
 result of this is that if   source/a.b.c.d is included in my gwt
 configuration, then test/a.b.c.d seems to be getting compiled as well.

 If I understand whats going on, I want a way to exclude particular
 source directories from the build.. is that possible?

 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-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: hosted mode compile error from eclipse

2009-06-24 Thread chris

Thanks for the reply.. I'm not sure what plugin you're referring to,
though.

With regards to removing the test folder from the runtime classpath,
it seems that the only option is to remove the entire project from the
classpath.. I see no option to remove an individual source folder.

--Chris

On Jun 24, 11:04 am, Rajeev Dayal rda...@google.com wrote:
 Hi Chris,
 Right now, we use a heuristic to exclude test directories from your
 project's classpath on execution. If the folder containing your test source
 is named test, then we will not add it to your project's runtime
 classpath.

 We use this heuristic because the plugin currently has no understanding of
 GWT modules, so it cannot distinguish between test code and source code. In
 a future version of the plugin, we are going to bake in GWT module
 information, which will mean that this heuristic will become unnecessary.

 If it is not a reasonable solution to name the directory containing your
 test source code test, another option is to edit the launch configuration
 for your application, and remove the test folder from the runtime classpath.

 Rajeev

 On Tue, Jun 23, 2009 at 10:33 AM, chris gwt chris@gmail.com wrote:

  Hi everyone, I've run into a little issue when launching hosted mode
  with an eclipse run configuration.

  I believe the issue is that all of the source directories for my
  project are included when compiling for hosted mode.. including unit
  test directories that I don't want to include.

  My personal style is to put my unit test classes in the same package
  as the class being tested, but in a different source directory.  The
  result of this is that if   source/a.b.c.d is included in my gwt
  configuration, then test/a.b.c.d seems to be getting compiled as well.

  If I understand whats going on, I want a way to exclude particular
  source directories from the build.. is that possible?

  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-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: hosted mode compile error from eclipse

2009-06-24 Thread Rajeev Dayal
Hey Chris,
I think I misunderstood you. I thought that you were using the Google Plugin
for Eclipse, but I guess that is not the case. If you're interested in using
it, you can find it here: http://code.google.com/eclipse

Do you mind sending a screenshot of the classpath tab for the run
configuration that you're using?


Rajeev

On Wed, Jun 24, 2009 at 12:25 PM, chris chris.rowland@gmail.com wrote:


 Thanks for the reply.. I'm not sure what plugin you're referring to,
 though.

 With regards to removing the test folder from the runtime classpath,
 it seems that the only option is to remove the entire project from the
 classpath.. I see no option to remove an individual source folder.

 --Chris

 On Jun 24, 11:04 am, Rajeev Dayal rda...@google.com wrote:
  Hi Chris,
  Right now, we use a heuristic to exclude test directories from your
  project's classpath on execution. If the folder containing your test
 source
  is named test, then we will not add it to your project's runtime
  classpath.
 
  We use this heuristic because the plugin currently has no understanding
 of
  GWT modules, so it cannot distinguish between test code and source code.
 In
  a future version of the plugin, we are going to bake in GWT module
  information, which will mean that this heuristic will become unnecessary.
 
  If it is not a reasonable solution to name the directory containing your
  test source code test, another option is to edit the launch
 configuration
  for your application, and remove the test folder from the runtime
 classpath.
 
  Rajeev
 
  On Tue, Jun 23, 2009 at 10:33 AM, chris gwt chris@gmail.com wrote:
 
   Hi everyone, I've run into a little issue when launching hosted mode
   with an eclipse run configuration.
 
   I believe the issue is that all of the source directories for my
   project are included when compiling for hosted mode.. including unit
   test directories that I don't want to include.
 
   My personal style is to put my unit test classes in the same package
   as the class being tested, but in a different source directory.  The
   result of this is that if   source/a.b.c.d is included in my gwt
   configuration, then test/a.b.c.d seems to be getting compiled as well.
 
   If I understand whats going on, I want a way to exclude particular
   source directories from the build.. is that possible?
 
   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-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: hosted mode compile error from eclipse

2009-06-24 Thread chris gwt

I didn't know about the eclipse plugin, i'll have to check that out
when I have some time.

My classpath tab looks like:

- Bootstrap Entries
  L JRE System Library
- User Entries
  + MyProject (default classpath)
   L GWT \MyProject\source\
   L Other \MyProject\source\
   L classes \MyProject\web\WEB-INF\
   L gwt-dev-windows.jar \MyProject\tools\GWT\lib\

The class that was giving me the error was in \MyProject\source
\JUnitTests\(...)\a package included in the gwt config file\(...)\

I have since moved it to the default package in \MyProject\source
\JunitTests\ and it has fixed the compile error.. but this seems the
wrong way to fix it, and effects how i would design tests.

On Jun 24, 1:20 pm, Rajeev Dayal rda...@google.com wrote:
 Hey Chris,
 I think I misunderstood you. I thought that you were using the Google Plugin
 for Eclipse, but I guess that is not the case. If you're interested in using
 it, you can find it here:http://code.google.com/eclipse

 Do you mind sending a screenshot of the classpath tab for the run
 configuration that you're using?

 Rajeev

 On Wed, Jun 24, 2009 at 12:25 PM, chris chris.rowland@gmail.com wrote:

  Thanks for the reply.. I'm not sure what plugin you're referring to,
  though.

  With regards to removing the test folder from the runtime classpath,
  it seems that the only option is to remove the entire project from the
  classpath.. I see no option to remove an individual source folder.

  --Chris

  On Jun 24, 11:04 am, Rajeev Dayal rda...@google.com wrote:
   Hi Chris,
   Right now, we use a heuristic to exclude test directories from your
   project's classpath on execution. If the folder containing your test
  source
   is named test, then we will not add it to your project's runtime
   classpath.

   We use this heuristic because the plugin currently has no understanding
  of
   GWT modules, so it cannot distinguish between test code and source code.
  In
   a future version of the plugin, we are going to bake in GWT module
   information, which will mean that this heuristic will become unnecessary.

   If it is not a reasonable solution to name the directory containing your
   test source code test, another option is to edit the launch
  configuration
   for your application, and remove the test folder from the runtime
  classpath.

   Rajeev

   On Tue, Jun 23, 2009 at 10:33 AM, chris gwt chris@gmail.com wrote:

Hi everyone, I've run into a little issue when launching hosted mode
with an eclipse run configuration.

I believe the issue is that all of the source directories for my
project are included when compiling for hosted mode.. including unit
test directories that I don't want to include.

My personal style is to put my unit test classes in the same package
as the class being tested, but in a different source directory.  The
result of this is that if   source/a.b.c.d is included in my gwt
configuration, then test/a.b.c.d seems to be getting compiled as well.

If I understand whats going on, I want a way to exclude particular
source directories from the build.. is that possible?

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-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: hosted mode compile error from eclipse

2009-06-24 Thread Rajeev Dayal
In the diagram there, are GWT, Other, etc.. are those children of
MyProject (default classpath)? If so, how did you get GWT
\MyProject\source\ and Other \MyProject\source\ in the list? Do the
entries actually say \MyProject\source? Did you add those to your Java
build path?
All of that aside, what you should do is create a different source folder
for your test code. You can use the same package structure for your test
code as you do for your source code (if you'd like). When running your
application, make sure that the test code folder is not on the runtime
classpath. When running unit tests, make sure that the test code folder IS
on the runtime classpath.


On Wed, Jun 24, 2009 at 1:29 PM, chris gwt chris@gmail.com wrote:


 I didn't know about the eclipse plugin, i'll have to check that out
 when I have some time.

 My classpath tab looks like:

 - Bootstrap Entries
  L JRE System Library
 - User Entries
  + MyProject (default classpath)
   L GWT \MyProject\source\
   L Other \MyProject\source\
   L classes \MyProject\web\WEB-INF\
   L gwt-dev-windows.jar \MyProject\tools\GWT\lib\

 The class that was giving me the error was in \MyProject\source
 \JUnitTests\(...)\a package included in the gwt config file\(...)\

 I have since moved it to the default package in \MyProject\source
 \JunitTests\ and it has fixed the compile error.. but this seems the
 wrong way to fix it, and effects how i would design tests.

 On Jun 24, 1:20 pm, Rajeev Dayal rda...@google.com wrote:
  Hey Chris,
  I think I misunderstood you. I thought that you were using the Google
 Plugin
  for Eclipse, but I guess that is not the case. If you're interested in
 using
  it, you can find it here:http://code.google.com/eclipse
 
  Do you mind sending a screenshot of the classpath tab for the run
  configuration that you're using?
 
  Rajeev
 
  On Wed, Jun 24, 2009 at 12:25 PM, chris chris.rowland@gmail.com
 wrote:
 
   Thanks for the reply.. I'm not sure what plugin you're referring to,
   though.
 
   With regards to removing the test folder from the runtime classpath,
   it seems that the only option is to remove the entire project from the
   classpath.. I see no option to remove an individual source folder.
 
   --Chris
 
   On Jun 24, 11:04 am, Rajeev Dayal rda...@google.com wrote:
Hi Chris,
Right now, we use a heuristic to exclude test directories from your
project's classpath on execution. If the folder containing your test
   source
is named test, then we will not add it to your project's runtime
classpath.
 
We use this heuristic because the plugin currently has no
 understanding
   of
GWT modules, so it cannot distinguish between test code and source
 code.
   In
a future version of the plugin, we are going to bake in GWT module
information, which will mean that this heuristic will become
 unnecessary.
 
If it is not a reasonable solution to name the directory containing
 your
test source code test, another option is to edit the launch
   configuration
for your application, and remove the test folder from the runtime
   classpath.
 
Rajeev
 
On Tue, Jun 23, 2009 at 10:33 AM, chris gwt chris@gmail.com
 wrote:
 
 Hi everyone, I've run into a little issue when launching hosted
 mode
 with an eclipse run configuration.
 
 I believe the issue is that all of the source directories for my
 project are included when compiling for hosted mode.. including
 unit
 test directories that I don't want to include.
 
 My personal style is to put my unit test classes in the same
 package
 as the class being tested, but in a different source directory.
  The
 result of this is that if   source/a.b.c.d is included in my gwt
 configuration, then test/a.b.c.d seems to be getting compiled as
 well.
 
 If I understand whats going on, I want a way to exclude particular
 source directories from the build.. is that possible?
 
 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-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: hosted mode nothing displayed

2009-06-24 Thread satya

I believe you should have the application name. if Hello is the
application name, then the URL should be:

http://localhost:/Hello/Hello.html

Did you check the entry point in Applicationgwt.xml file?

On Jun 23, 10:56 am, alkatal jassin.mekna...@googlemail.com wrote:
 Hi i m using GWT 1.6.4 under Leopard

 I suddenly have a problem with my application. When i start it in
 hosed mode nothing gets displayed it just get a bank page.
 I tried to run one of the examples : Mail or Hello with ant hosted.
 Same problem nothing gets displayed i just get to the 
 urlhttp://localhost:/Hello.html.
 tried -whitelisthttp://127.0.0.1but still nothing gets displayed.

 Any idea i really need to debug my app.
--~--~-~--~~~---~--~~
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: hosted mode compile error from eclipse

2009-06-24 Thread chris gwt



 In the diagram there, are GWT, Other, etc.. are those children of
 MyProject (default classpath)?
   They are children of User Entries.  MyProject is also a child of
User Entries and is unexpanded (+)
 If so, how did you get GWT  \MyProject\source\ and Other 
 \MyProject\source\ in the list?
   They were manually added by me.
 Do the entries actually say \MyProject\source? Did you add those to your 
 Java build path?
   Yes.  We the project has several source folders.  6 or 7 real
source folders, and 2 unit test folders.
 All of that aside, what you should do is create a different source folder
 for your test code. You can use the same package structure for your test
 code as you do for your source code (if you'd like). When running your
 application, make sure that the test code folder is not on the runtime
 classpath. When running unit tests, make sure that the test code folder IS
 on the runtime classpath.
   Thats precisely what I had tried to accomplish originally... The
problem is that all source folders (as defined in the project) are
included in the classpath/source path by default, and are un-
removable, as far as I can tell.
--~--~-~--~~~---~--~~
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: GWT suddenly stops running: SIGSEGV in libxpcom.so (hosted mode, Ubuntu 9.4)

2009-06-23 Thread Enea


maybe a chanche with:
sudo apt-get install libstdc++5

if you are using eclipse, try to reinstall eclipse.

On 22 Giu, 23:59, googelybear googelyb...@gmail.com wrote:
 Hi there,

 today GWT decided that it does no longer want to run on my machine.
 When I run the hosted mode browser (32bit ubuntu) I get the following
 error msg (already rebooted the machine, and re-downloaded gwt):

 # An unexpected error has been detected by Java Runtime Environment:
 #
 #  SIGSEGV (0xb) at pc=0x9f07d975, pid=5829, tid=3085306768
 #
 # Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
 # Problematic frame:
 # C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt
 +0x25

 here's an excerpt from the stacktrace:
 Stack: [0xb7d6,0xb7e61000],  sp=0xb7e5edb0,  free space=1019k
 Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
 C=native code)
 C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt+0x25
 C  [libxpcom.so+0x9d74c]
 _Z17AppendUTF16toUTF8RK9nsAStringR10nsACString+0x4c
 C  [libwallet.so+0x74b1]
 C  [libwallet.so+0x75b6]
 C  [libwallet.so+0x14476]
 C  [libwallet.so+0x1563c]
 C  [libwallet.so+0x18a5c]
 C  [libwallet.so+0x18e49]
 C  [libwallet.so+0x584b]
 C  [libdocshell.so+0x2d2fd]
 C  [libdocshell.so+0x2d29c]
 C  [libdocshell.so+0x2c7cc]
 C  [libdocshell.so+0x2c64f]
 C  [libdocshell.so+0x2c681]
 C  [libdocshell.so+0x2c39b]
 C  [libnecko.so+0x1d47c]
 C  [libgklayout.so+0xc7d78]
 C  [libgklayout.so+0xc7b9f]
 C  [libgklayout.so+0xc798f]
 C  [libgklayout.so+0xc8fb1]
 C  [libgklayout.so+0xc731f]
 C  [libxpcom.so+0x7da27]  PL_HandleEvent+0x27
 C  [libxpcom.so+0x7d954]  PL_ProcessPendingEvents+0x84
 C  [libxpcom.so+0x7f5e9]
 C  [libwidget_gtk2.so+0x12ad5]
 C  [libglib-2.0.so.0+0x70dad]
 C  [libglib-2.0.so.0+0x39b88]  g_main_context_dispatch+0x1e8
 C  [libglib-2.0.so.0+0x3d0eb]
 C  [libglib-2.0.so.0+0x3d268]  g_main_context_iteration+0x68
 C  [libswt-pi-gtk-3235.so+0x2e004]
 Java_org_eclipse_swt_internal_gtk_OS__1g_1main_1context_1iteration
 +0x20
 j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
 j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
 j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
 j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
 j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
 j  com.google.gwt.dev.HostedModeBase.run()V+19
 j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
 v  ~StubRoutines::call_stub
 V  [libjvm.so+0x375c9d]
 V  [libjvm.so+0x5057f8]
 V  [libjvm.so+0x375b30]
 V  [libjvm.so+0x39f2e6]
 V  [libjvm.so+0x390ae8]
 C  [java+0x1b98]  JavaMain+0x2c8
 C  [libpthread.so.0+0x64ff]

 Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
 j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
 j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
 j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
 j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
 j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
 j  com.google.gwt.dev.HostedModeBase.run()V+19
 j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
 v  ~StubRoutines::call_stub

 ---  S Y S T E M  ---

 OS:5.0

 uname:Linux 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC
 2009 i686
 libc:glibc 2.9 NPTL 2.9
 rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
 load average:1.13 0.67 0.44

 CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7
 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

 Memory: 4k page, physical 3054980k(1029604k free), swap 6385796k
 (6385796k free)

 vm_info: Java HotSpot(TM) Server VM (11.3-b02) for linux-x86 JRE
 (1.6.0_13-b03), built on Mar  9 2009 01:16:42 by java_re with gcc
 3.2.1-7a (J2SE release)

 any ideas what's going wrong here? I already downloaded gwt again.
 Thanks for any 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-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
-~--~~~~--~~--~--~---



hosted mode compile error from eclipse

2009-06-23 Thread chris gwt

Hi everyone, I've run into a little issue when launching hosted mode
with an eclipse run configuration.

I believe the issue is that all of the source directories for my
project are included when compiling for hosted mode.. including unit
test directories that I don't want to include.

My personal style is to put my unit test classes in the same package
as the class being tested, but in a different source directory.  The
result of this is that if   source/a.b.c.d is included in my gwt
configuration, then test/a.b.c.d seems to be getting compiled as well.

If I understand whats going on, I want a way to exclude particular
source directories from the build.. is that possible?

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



hosted mode nothing displayed

2009-06-23 Thread alkatal

Hi i m using GWT 1.6.4 under Leopard

I suddenly have a problem with my application. When i start it in
hosed mode nothing gets displayed it just get a bank page.
I tried to run one of the examples : Mail or Hello with ant hosted.
Same problem nothing gets displayed i just get to the url
http://localhost:/Hello.html.
tried -whitelist http://127.0.0.1 but still nothing gets displayed.

Any idea i really need to debug my app.
--~--~-~--~~~---~--~~
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: GWT suddenly stops running: SIGSEGV in libxpcom.so (hosted mode, Ubuntu 9.4)

2009-06-23 Thread googelybear

thanks for the hint, but I think I found the problem: When I change
the hosted mode port to something different than  (e.g. ) it
works. It's a problem with the browser cache/credential store of the
integrated mozilla.
How can I reset/empty this? Where is it located (oviously not in the
gwt directory...)

On 23 Jun., 13:40, Enea eneager...@gmail.com wrote:
 maybe a chanche with:
 sudo apt-get install libstdc++5

 if you are using eclipse, try to reinstall eclipse.

 On 22 Giu, 23:59, googelybear googelyb...@gmail.com wrote:

  Hi there,

  today GWT decided that it does no longer want to run on my machine.
  When I run the hosted mode browser (32bit ubuntu) I get the following
  error msg (already rebooted the machine, and re-downloaded gwt):

  # An unexpected error has been detected by Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x9f07d975, pid=5829, tid=3085306768
  #
  # Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
  # Problematic frame:
  # C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt
  +0x25

  here's an excerpt from the stacktrace:
  Stack: [0xb7d6,0xb7e61000],  sp=0xb7e5edb0,  free space=1019k
  Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
  C=native code)
  C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt+0x25
  C  [libxpcom.so+0x9d74c]
  _Z17AppendUTF16toUTF8RK9nsAStringR10nsACString+0x4c
  C  [libwallet.so+0x74b1]
  C  [libwallet.so+0x75b6]
  C  [libwallet.so+0x14476]
  C  [libwallet.so+0x1563c]
  C  [libwallet.so+0x18a5c]
  C  [libwallet.so+0x18e49]
  C  [libwallet.so+0x584b]
  C  [libdocshell.so+0x2d2fd]
  C  [libdocshell.so+0x2d29c]
  C  [libdocshell.so+0x2c7cc]
  C  [libdocshell.so+0x2c64f]
  C  [libdocshell.so+0x2c681]
  C  [libdocshell.so+0x2c39b]
  C  [libnecko.so+0x1d47c]
  C  [libgklayout.so+0xc7d78]
  C  [libgklayout.so+0xc7b9f]
  C  [libgklayout.so+0xc798f]
  C  [libgklayout.so+0xc8fb1]
  C  [libgklayout.so+0xc731f]
  C  [libxpcom.so+0x7da27]  PL_HandleEvent+0x27
  C  [libxpcom.so+0x7d954]  PL_ProcessPendingEvents+0x84
  C  [libxpcom.so+0x7f5e9]
  C  [libwidget_gtk2.so+0x12ad5]
  C  [libglib-2.0.so.0+0x70dad]
  C  [libglib-2.0.so.0+0x39b88]  g_main_context_dispatch+0x1e8
  C  [libglib-2.0.so.0+0x3d0eb]
  C  [libglib-2.0.so.0+0x3d268]  g_main_context_iteration+0x68
  C  [libswt-pi-gtk-3235.so+0x2e004]
  Java_org_eclipse_swt_internal_gtk_OS__1g_1main_1context_1iteration
  +0x20
  j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
  j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
  j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
  j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
  j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
  j  com.google.gwt.dev.HostedModeBase.run()V+19
  j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
  v  ~StubRoutines::call_stub
  V  [libjvm.so+0x375c9d]
  V  [libjvm.so+0x5057f8]
  V  [libjvm.so+0x375b30]
  V  [libjvm.so+0x39f2e6]
  V  [libjvm.so+0x390ae8]
  C  [java+0x1b98]  JavaMain+0x2c8
  C  [libpthread.so.0+0x64ff]

  Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
  j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
  j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
  j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
  j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
  j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
  j  com.google.gwt.dev.HostedModeBase.run()V+19
  j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
  v  ~StubRoutines::call_stub

  ---  S Y S T E M  ---

  OS:5.0

  uname:Linux 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC
  2009 i686
  libc:glibc 2.9 NPTL 2.9
  rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
  load average:1.13 0.67 0.44

  CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7
  stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

  Memory: 4k page, physical 3054980k(1029604k free), swap 6385796k
  (6385796k free)

  vm_info: Java HotSpot(TM) Server VM (11.3-b02) for linux-x86 JRE
  (1.6.0_13-b03), built on Mar  9 2009 01:16:42 by java_re with gcc
  3.2.1-7a (J2SE release)

  any ideas what's going wrong here? I already downloaded gwt again.
  Thanks for any 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-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: GWT suddenly stops running: SIGSEGV in libxpcom.so (hosted mode, Ubuntu 9.4)

2009-06-23 Thread googelybear

thanks for the hint, but I think I found the problem: When I change
the hosted mode port to something different than  (e.g. ) it
works. It's a problem with the browser cache/credential store of the
integrated mozilla.
How can I reset/empty this? Where is it located (oviously not in the
gwt directory...)

On 23 Jun., 13:40, Enea eneager...@gmail.com wrote:
 maybe a chanche with:
 sudo apt-get install libstdc++5

 if you are using eclipse, try to reinstall eclipse.

 On 22 Giu, 23:59, googelybear googelyb...@gmail.com wrote:

  Hi there,

  today GWT decided that it does no longer want to run on my machine.
  When I run the hosted mode browser (32bit ubuntu) I get the following
  error msg (already rebooted the machine, and re-downloaded gwt):

  # An unexpected error has been detected by Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x9f07d975, pid=5829, tid=3085306768
  #
  # Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
  # Problematic frame:
  # C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt
  +0x25

  here's an excerpt from the stacktrace:
  Stack: [0xb7d6,0xb7e61000],  sp=0xb7e5edb0,  free space=1019k
  Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
  C=native code)
  C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt+0x25
  C  [libxpcom.so+0x9d74c]
  _Z17AppendUTF16toUTF8RK9nsAStringR10nsACString+0x4c
  C  [libwallet.so+0x74b1]
  C  [libwallet.so+0x75b6]
  C  [libwallet.so+0x14476]
  C  [libwallet.so+0x1563c]
  C  [libwallet.so+0x18a5c]
  C  [libwallet.so+0x18e49]
  C  [libwallet.so+0x584b]
  C  [libdocshell.so+0x2d2fd]
  C  [libdocshell.so+0x2d29c]
  C  [libdocshell.so+0x2c7cc]
  C  [libdocshell.so+0x2c64f]
  C  [libdocshell.so+0x2c681]
  C  [libdocshell.so+0x2c39b]
  C  [libnecko.so+0x1d47c]
  C  [libgklayout.so+0xc7d78]
  C  [libgklayout.so+0xc7b9f]
  C  [libgklayout.so+0xc798f]
  C  [libgklayout.so+0xc8fb1]
  C  [libgklayout.so+0xc731f]
  C  [libxpcom.so+0x7da27]  PL_HandleEvent+0x27
  C  [libxpcom.so+0x7d954]  PL_ProcessPendingEvents+0x84
  C  [libxpcom.so+0x7f5e9]
  C  [libwidget_gtk2.so+0x12ad5]
  C  [libglib-2.0.so.0+0x70dad]
  C  [libglib-2.0.so.0+0x39b88]  g_main_context_dispatch+0x1e8
  C  [libglib-2.0.so.0+0x3d0eb]
  C  [libglib-2.0.so.0+0x3d268]  g_main_context_iteration+0x68
  C  [libswt-pi-gtk-3235.so+0x2e004]
  Java_org_eclipse_swt_internal_gtk_OS__1g_1main_1context_1iteration
  +0x20
  j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
  j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
  j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
  j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
  j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
  j  com.google.gwt.dev.HostedModeBase.run()V+19
  j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
  v  ~StubRoutines::call_stub
  V  [libjvm.so+0x375c9d]
  V  [libjvm.so+0x5057f8]
  V  [libjvm.so+0x375b30]
  V  [libjvm.so+0x39f2e6]
  V  [libjvm.so+0x390ae8]
  C  [java+0x1b98]  JavaMain+0x2c8
  C  [libpthread.so.0+0x64ff]

  Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
  j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
  j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
  j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
  j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
  j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
  j  com.google.gwt.dev.HostedModeBase.run()V+19
  j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
  v  ~StubRoutines::call_stub

  ---  S Y S T E M  ---

  OS:5.0

  uname:Linux 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC
  2009 i686
  libc:glibc 2.9 NPTL 2.9
  rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
  load average:1.13 0.67 0.44

  CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7
  stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

  Memory: 4k page, physical 3054980k(1029604k free), swap 6385796k
  (6385796k free)

  vm_info: Java HotSpot(TM) Server VM (11.3-b02) for linux-x86 JRE
  (1.6.0_13-b03), built on Mar  9 2009 01:16:42 by java_re with gcc
  3.2.1-7a (J2SE release)

  any ideas what's going wrong here? I already downloaded gwt again.
  Thanks for any 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-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: GWT 1.6.4 - Problem running Samples in Hosted Mode

2009-06-23 Thread Sumit Chandel
Hi Lupan,
There is nothing immediately obvious to me that would explain why the
DynaTable sample would work in web mode, but not in hosted mode. Did you
make any changes to the DynaTable sample application code before running ant
hosted? I just tried running the DynaTable sample out of the box using GWT
1.6.4 on WindowsXP and I was able to run it in both web mode and hosted
mode.

Which platform are you running on, and what JDK version are you running the
samples with? There have been some known issues with using JDK 6 on the Mac
platform because of incompatibilities between the 64-bit JVM shipped in the
JDK and the 32-bit SWT bindings used in GWT hosted mode.

To answer your question about whether the bootstrap script (.nocache.js
file) is used during hosted mode - yes, it is needed to run a GWT
application in hosted mode. The same file is also necessary when running in
web mode.

Hope that helps,
-Sumit Chandel

On Thu, Jun 18, 2009 at 11:33 PM, Lupan augustolu...@gmail.com wrote:


 Hi everyone! I'm a newbie to GWT and I'm trying to run the
 samples that come with the 1.6.4 distribution. I've tried the
 DynaTable example on the GWT_HOME/samples/DynaTable with the comand :
 ant hosted .

 The outcome was the Logging console and hosted mode browser popping
 up, however, only the HTML Host page content is shown in the hosted
 mode browser. In this particular example, none of the tables and ajax
 controls generated by GWT apear, just a white page with the static
 content.

 When I hit the Compile/Browse button to let it run on the real browser
 everything works fine. All other examples and generated projects I
 tried have the same behavior, the GWT kicks off only in the real
 browser, the hosted mode one just shows the HTML host page static
 content (as if the nochache.js is not being taken into account, is it
 used in this situation?).

 So I would like to know what I need to do in order to make the Hosted
 mode browser behave normally like the real ones, allowing me to debug.

 Sorry If this is a dumb question, as I said I'm just getting started.
 Thank you very much !

 


--~--~-~--~~~---~--~~
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: FireFox On Mac Hosted mode

2009-06-23 Thread Arthur Kalmenson

No. If you want to debug against other browsers you're going to need
the latest GWT trunk (i.e. 2.0) and set up Out Of Process Hosted Mode
(OOPHM).

--
Arthur Kalmenson



On Sun, Jun 21, 2009 at 8:26 AM,
Yousef.Ghandouryousef.ghand...@gmail.com wrote:

 Hosted mode on Mac OS uses safari internally, can i change that to
 FireFox.
 


--~--~-~--~~~---~--~~
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: GWT 1.6 and mysql; hosted mode server restart issue

2009-06-22 Thread ec


I found that if I just retry the request again it works fine. So now I
use the fast restart server button and then just press the first
button twice. It fails the first time and then everything works from
then on.

On Jun 21, 10:27 am, Dave Ford df...@smart-soft.com wrote:
 I have a similar problem, but no fix yet. It really cancels out the
 benefit of the new (in 1.6) super fast restart server button in
 hosted mode,  because i *still* have to restart the entire shell ever
 time i change server side code. Although, i am not getting any mysql
 errors.

 All i know is that, the restart server button does not seem to pick
 up my changes to server-side code and i have restart the shell every
 time.

 On May 13, 3:49 pm, ec ecoll...@gmail.com wrote:

  I started a new project using gwt 1.6.4 in eclipse and added the mysql
  connector. I copied the mysql connector jar into the war/WEB_INF/lib
  directory. When I first run hosted mode the application works fine.
  However if I make code changes and then use theRestartServer button
  from Hosted Mode the server can no longer find the mysql connector and
  gives a java.sql.SQLException: No suitable driver found for
  jdbc:mysql://localhost/

  Anyone experienced this and found a fix?

  Thanks.


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



GWT suddenly stops running: SIGSEGV in libxpcom.so (hosted mode, Ubuntu 9.4)

2009-06-22 Thread googelybear

Hi there,

today GWT decided that it does no longer want to run on my machine.
When I run the hosted mode browser (32bit ubuntu) I get the following
error msg (already rebooted the machine, and re-downloaded gwt):

# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x9f07d975, pid=5829, tid=3085306768
#
# Java VM: Java HotSpot(TM) Server VM (11.3-b02 mixed mode linux-x86)
# Problematic frame:
# C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt
+0x25

here's an excerpt from the stacktrace:
Stack: [0xb7d6,0xb7e61000],  sp=0xb7e5edb0,  free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code,
C=native code)
C  [libxpcom.so+0x9a975]  _ZNK9nsAString17GetReadableBufferEPPKt+0x25
C  [libxpcom.so+0x9d74c]
_Z17AppendUTF16toUTF8RK9nsAStringR10nsACString+0x4c
C  [libwallet.so+0x74b1]
C  [libwallet.so+0x75b6]
C  [libwallet.so+0x14476]
C  [libwallet.so+0x1563c]
C  [libwallet.so+0x18a5c]
C  [libwallet.so+0x18e49]
C  [libwallet.so+0x584b]
C  [libdocshell.so+0x2d2fd]
C  [libdocshell.so+0x2d29c]
C  [libdocshell.so+0x2c7cc]
C  [libdocshell.so+0x2c64f]
C  [libdocshell.so+0x2c681]
C  [libdocshell.so+0x2c39b]
C  [libnecko.so+0x1d47c]
C  [libgklayout.so+0xc7d78]
C  [libgklayout.so+0xc7b9f]
C  [libgklayout.so+0xc798f]
C  [libgklayout.so+0xc8fb1]
C  [libgklayout.so+0xc731f]
C  [libxpcom.so+0x7da27]  PL_HandleEvent+0x27
C  [libxpcom.so+0x7d954]  PL_ProcessPendingEvents+0x84
C  [libxpcom.so+0x7f5e9]
C  [libwidget_gtk2.so+0x12ad5]
C  [libglib-2.0.so.0+0x70dad]
C  [libglib-2.0.so.0+0x39b88]  g_main_context_dispatch+0x1e8
C  [libglib-2.0.so.0+0x3d0eb]
C  [libglib-2.0.so.0+0x3d268]  g_main_context_iteration+0x68
C  [libswt-pi-gtk-3235.so+0x2e004]
Java_org_eclipse_swt_internal_gtk_OS__1g_1main_1context_1iteration
+0x20
j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
j  com.google.gwt.dev.HostedModeBase.run()V+19
j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
v  ~StubRoutines::call_stub
V  [libjvm.so+0x375c9d]
V  [libjvm.so+0x5057f8]
V  [libjvm.so+0x375b30]
V  [libjvm.so+0x39f2e6]
V  [libjvm.so+0x390ae8]
C  [java+0x1b98]  JavaMain+0x2c8
C  [libpthread.so.0+0x64ff]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(IZ)Z+0
j  org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(IZ)Z+9
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+23
j  com.google.gwt.dev.SwtHostedModeBase.processEvents()V+4
j  com.google.gwt.dev.HostedModeBase.pumpEventLoop()V+13
j  com.google.gwt.dev.HostedModeBase.run()V+19
j  com.google.gwt.dev.HostedMode.main([Ljava/lang/String;)V+27
v  ~StubRoutines::call_stub

---  S Y S T E M  ---

OS:5.0

uname:Linux 2.6.28-13-generic #44-Ubuntu SMP Tue Jun 2 07:57:31 UTC
2009 i686
libc:glibc 2.9 NPTL 2.9
rlimit: STACK 8192k, CORE 0k, NPROC infinity, NOFILE 1024, AS infinity
load average:1.13 0.67 0.44

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 7
stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 3054980k(1029604k free), swap 6385796k
(6385796k free)

vm_info: Java HotSpot(TM) Server VM (11.3-b02) for linux-x86 JRE
(1.6.0_13-b03), built on Mar  9 2009 01:16:42 by java_re with gcc
3.2.1-7a (J2SE release)


any ideas what's going wrong here? I already downloaded gwt again.
Thanks for any 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-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
-~--~~~~--~~--~--~---



FireFox On Mac Hosted mode

2009-06-21 Thread Yousef.Ghandour

Hosted mode on Mac OS uses safari internally, can i change that to
FireFox.
--~--~-~--~~~---~--~~
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: GWT 1.6 and mysql; hosted mode server restart issue

2009-06-21 Thread Dave Ford

I have a similar problem, but no fix yet. It really cancels out the
benefit of the new (in 1.6) super fast restart server button in
hosted mode,  because i *still* have to restart the entire shell ever
time i change server side code. Although, i am not getting any mysql
errors.

All i know is that, the restart server button does not seem to pick
up my changes to server-side code and i have restart the shell every
time.

On May 13, 3:49 pm, ec ecoll...@gmail.com wrote:
 I started a new project using gwt 1.6.4 in eclipse and added the mysql
 connector. I copied the mysql connector jar into the war/WEB_INF/lib
 directory. When I first run hosted mode the application works fine.
 However if I make code changes and then use theRestartServer button
 from Hosted Mode the server can no longer find the mysql connector and
 gives a java.sql.SQLException: No suitable driver found for
 jdbc:mysql://localhost/

 Anyone experienced this and found a fix?

 Thanks.
--~--~-~--~~~---~--~~
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: GWT 1.6 and mysql; hosted mode server restart issue

2009-06-21 Thread Paul Robinson

There's always -noserver

Dave Ford wrote:
 I have a similar problem, but no fix yet. It really cancels out the
 benefit of the new (in 1.6) super fast restart server button in
 hosted mode,  because i *still* have to restart the entire shell ever
 time i change server side code. Although, i am not getting any mysql
 errors.

 All i know is that, the restart server button does not seem to pick
 up my changes to server-side code and i have restart the shell every
 time.

 On May 13, 3:49 pm, ec ecoll...@gmail.com wrote:
   
 I started a new project using gwt 1.6.4 in eclipse and added the mysql
 connector. I copied the mysql connector jar into the war/WEB_INF/lib
 directory. When I first run hosted mode the application works fine.
 However if I make code changes and then use theRestartServer button
 from Hosted Mode the server can no longer find the mysql connector and
 gives a java.sql.SQLException: No suitable driver found for
 jdbc:mysql://localhost/

 Anyone experienced this and found a fix?

 Thanks.
 
 

   

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



Quick fix for broken hosted mode with Snow Leopard 10A380 on x86_64

2009-06-20 Thread kugutsumen

This is going to become a real issue in September when Mac OS X 10.6
starts shipping.

Cross-compiling works but hosted mode is broken.

Darwin wolf 10.0.0b1 Darwin Kernel Version 10.0.0b1: Fri May 29
00:02:02 PDT 2009; root:xnu-1456~1/RELEASE_I386 i386

/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
-version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03-208)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-81, mixed mode)

GWT 0.0.0 At revision 5593.

/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java
You must use a Java 1.5 runtime to use GWT Hosted Mode on Mac OS X.

If I skip the Java 1.5 test...  UnsatisfiedLinkError is thrown.

On Mac OS X, ensure that you have Safari 3 installed.
Exception in thread main java.lang.UnsatisfiedLinkError: Unable to
load required native library 'gwt-ll'.  Detailed error:
/Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib:  no
suitable image found.  Did find:  /Users/Shared/tank/pub/devel/gwt/gwt-
mac-0.0.0/libgwt-ll.jnilib: no matching architecture in universal
wrapper)

$ file /Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib
/Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib: Mach-
O universal binary with 2 architectures
/Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib (for
architecture i386): Mach-O bundle i386
/Users/Shared/tank/pub/devel/gwt/gwt-mac-0.0.0/libgwt-ll.jnilib (for
architecture ppc):  Mach-O bundle ppc

libgwt-ll.jnilib is prebuilt so adding -arch x86_64 to jni/mac/
Makefile has no effect.

I managed to get gwt hosted mode to work by patching  isJava5 to
always return true:

--- ./dev/mac/src/com/google/gwt/dev/BootStrapPlatform.java.orig
2009-06-21 00:42:40.0 +0700
+++ ./dev/mac/src/com/google/gwt/dev/BootStrapPlatform.java 2009-06-20
22:44:17.0 +0700
@@ -115,7 +115,7 @@
* 64-bit.
*/
   private static boolean isJava5() {
-return System.getProperty(java.version).startsWith(1.5);
+return true; /* System.getProperty(java.version).startsWith
(1.5); */
   }

   /**

Then I hacked a 32bit only version of the 1.6 JRE by stripping the
x86_64 architecture:

cd /System/Library/Frameworks/JavaVM.framework/Versions
cp -pPR 1.6.0 1.6.0_32bit
cd !$
for bin in `find . -type f -exec file {} \; | grep 'Mach-O universal
binary with 2 architectures' | sed -e 's/:.*//' ` ; do ditto --rsrc --
arch i386 $bin $bin.tmp.app ; mv $bin.tmp.app $bin ; done

Added /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0_32bit/
Home in  Eclipse - Preferences - Java - Installed JRE  and selected
it.

Really ugly fix but at least hosted mode works.

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



GWT 1.6.4 - Problem running Samples in Hosted Mode

2009-06-19 Thread Lupan

 Hi everyone! I'm a newbie to GWT and I'm trying to run the
samples that come with the 1.6.4 distribution. I've tried the
DynaTable example on the GWT_HOME/samples/DynaTable with the comand :
ant hosted .

The outcome was the Logging console and hosted mode browser popping
up, however, only the HTML Host page content is shown in the hosted
mode browser. In this particular example, none of the tables and ajax
controls generated by GWT apear, just a white page with the static
content.

When I hit the Compile/Browse button to let it run on the real browser
everything works fine. All other examples and generated projects I
tried have the same behavior, the GWT kicks off only in the real
browser, the hosted mode one just shows the HTML host page static
content (as if the nochache.js is not being taken into account, is it
used in this situation?).

So I would like to know what I need to do in order to make the Hosted
mode browser behave normally like the real ones, allowing me to debug.

Sorry If this is a dumb question, as I said I'm just getting started.
Thank you very much !

--~--~-~--~~~---~--~~
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: GWT project runs slow in Hosted mode

2009-06-19 Thread mgrouch

We have same issue and still can't resolve it.

On relatively large application (overall about 20 tables and forms)
with
GWT 1.6 and GWT-EXT 2.0.6
hosted mode performance is really not adequate.
Refresh of the page in hosted browser takes more than 30 seconds.
Same application is quite responsive in web mode.

It is hanging on message:

create exploded Jetty webapp in c:\source-tags\portal-gwt16-branch
\portal-ui\war

Refresh in hosted mode with GWT 1.6.4 takes minutes.
Same with GWT 1.5.3 works much faster on same machine.

I tried to create a bug report but it was closed
http://code.google.com/p/google-web-toolkit/issues/detail?id=3754

Any ideas are greatly appreciated,
Thanks

On Apr 29, 7:29 pm, chrisM chris.p.mikkel...@gmail.com wrote:
 I migrated a project from GWT 1.5 to 1.6 with extreme slowness in
 hosted mode - compiling and running in web mode performed the same
 with no performance hits.
 I was using the GXT and  gwt-google-maps modules.

 I went from 5 second to over 60 seconds to do a simple refresh in
 hosted mode. It has nothing to do with hardware as hosted mode ran
 idle for over 40 seconds doing nothing before even the smallest bleep
 on my Quad core.

 When I moved all files within the module/public directory out into
 the war project directory structure, I got hosted mode to at least
 preform approx. the same as GWT 1.5. At a minimum my hardware
 resources are actually being used now when I refresh the hosted mode
 browser. I never had any explanation why a seemingly simple static
 file copy for  ~1MB of static files hung hosted mode for 40 seconds.

 If you have anything in any module/public directory I would move it.

 On Apr 29, 3:01 am, Peter Muessig peter.mues...@googlemail.com
 wrote:

  Hi,

  I cannot imagine that this is a hardware issue!

  Since I switched to GWT 1.6.4 I had the same expierience with a 2GHz
  Core2Duo and 4GB RAM machine. When I start to use JS wrappers like
  SmartGWT or GWText the startup of the Hosted Mode and the GWT
  application becomes very slow.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



GWT 1.6.4 - Blank page in Hosted Mode

2009-06-19 Thread Lupan

Hi ! I just downloaded the GWT 1.6.4 distribution and tried running
some of the samples with the ant hosted command. Unfortunately only
the static content is loaded in the hosted mode browser, as if there
were no script tag at all. I've tried it on eclipse and it presented
the same behavior. The logging seems fine:

[INFO] 200 - GET /StockWatcher.html (127.0.0.1) 2242 bytes
[INFO] 200 - GET /StockWatcher.css (127.0.0.1) 602 bytes
[INFO] 200 - GET /stockwatcher/stockwatcher.nocache.js (127.0.0.1)
4990 bytes

The strange thing is that when I hit the Compile/Browse button the
application loads fine on my browser (Firefox 3), the inputText field
and the button appear, just like in the tutorial. As I said, within
the Hosted Mode Browser only the page static content is shown (just
Web Application Starter Project and Please enter your name:
labels), no GWT application is launched (appareantly).
The problem seems to be something specific to the Hosted Mode Browser.

I'm using JDK 1.6u14 (Just reinstalled it because I saw some posts
telling about it but the problem remained the same)

Any clues will be much appretiated ! Thank you !!
--~--~-~--~~~---~--~~
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: Fedora Core 10 64 bit problems with GWT hosted mode in Eclipse

2009-06-18 Thread Jesse Pangburn
Hi Rajeev,
Yeah, the problem is if you install FC 10 x86_64 with various 64 bit libs
you need for having a regular java development, you have zero 32 bit libs on
your system.  64 bit software has come far enough that it's by and large
extremely usable, but there's the occasional killer app like GWT that's only
32 bit.  So if you break down and put in a 32 bit JVM (which isn't a big
deal, it doesn't interfere with the 64 bit one if you take any sort of
care), you're still nowhere close to running GWT hosted.

So anyway, hopefully it helps some other sucker that took the 64 bit bait
:-)

BTW, the libflashplayer.so error is fixed by moving it from my home
directory (which is where the install directions I found said to put it)
into /usr/lib64/mozilla/plugins.  Shows up different in about:plugins in
firefox, with some nswrapper junk instead of just plain libflashplayer.so,
but flash still works and I no longer have any errors starting up hosted
mode!  yay!

thanks,
Jesse

On Wed, Jun 17, 2009 at 9:03 PM, Rajeev Dayal rda...@google.com wrote:

 Hey Jesse,
 Thanks very much for the detailed post. It seems like you went through a
 lot to get GWT up and running on your system. I'm happy that it's finally
 working for you.

 We'll review the information that you've provided. If others are running
 into this problem, it probably makes sense to create a FAQ entry for this
 problem.


 Rajeev

 On Wed, Jun 17, 2009 at 1:17 PM, Jesse Pangburn 
 jesse.pangb...@gmail.comwrote:


 I had some problems getting hosted mode to work in Eclipse on my FC10
 64 bit machine, and they are mostly resolved now.  I wanted to post my
 issues here for others.

 First, as you may have read, GWT hosted doesn't work in 64 bit java,
 so you need to install 32 bit JDK.  Believe me, I tried to avoid this
 as well, but Google notes that it doesn't work.  So install Sun's 32
 bit JDK on your system.  I made soft links for /usr/java/latest to my
 64 bit JDK so by default most stuff would still use it.  But in
 Eclipse for your GWT project, set your project's java build path to
 have the 32 bit JDK instead of the 64 bit JDK and then GWT will run in
 32 bit mode.  To do this, go to Preferences-Java-Installed_JREs and
 add your 32 bit JDK, then for the project go to the build path and
 add library.  In there you can find JRE and choose the 32 bit JDK
 installation.

 Starting up the hosted mode will likely fail due to lack of libraries
 on your system with an exception containing some error about failed to
 load library blahblah.so.  Use yum and keep installing the libraries
 it's asking for until you don't get these anymore.  For example, if
 you don't know what package blahblah.so is in (and I often didn't),
 try this:
 locate -b blahblah.so
 This usually works because you typically already have the 64 bit
 versions of most libraries needed.  Having the full path, now do:
 yum provides /usr/lib64/full/path/to/blahblah.so
 It will display the 64 bit package providing this library.  Just use
 the nice package manager GUI to search for that package, and then
 install the 32 bit (i386) version that should be sitting right next to
 it in the list.
 Wash/rinse/repeat until no more library not found errors.

 After this though, I only have 64 bit firefox on my system and while
 hosted mode would start and I could point my 64 bit firefox at
 http://localhost:8080/, still the hosted mode embedded browser didn't
 work.  This sucks because it's a lot faster to debug that way,
 ESPECIALLY since the hosted mode then shows the exceptions when you
 make a mistake in the client code with an invalid cast or something.
 The error I got when starting hosted mode was:
 XPCOM error -2147221164

 If you google this, you'll find a lot of different answers that worked
 for different people, the problem is typically that they have 32 bit
 only environments and just have some setting screwed up.  In my 64 bit
 environment with 32 bit parts randomly installed, I found some
 comments about XULRunner not being setup right causing this exact
 error so I checked my packages and found that I had the 64 bit version
 of XULRunner but not the 32 bit version.  After installing the 32 bit
 version of xulrunner, now my hosted mode browser starts up and I can
 debug properly.

 The only error I get now when the hosted mode browser starts up is an
 ELF error that /home/jpangburn/.mozilla/libflashplayer.so is ELF64,
 because it's a 32 bit hosted browser looking in my user plugins
 directory and finding my 64 bit flash plugin for my 64 bit firefox.
 Unless you have flash in your GWT apps that you want to test in hosted
 mode, if you get that error still- I suggest ignoring it like I'm
 doing.

 Hope this helps someone else!
 Jesse




 


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

Re: getInteger problem when trying to run hosted mode.

2009-06-18 Thread Srihari Ch
Can you explain in detail the problem and solution which you found?Waiting
for ur reply


On Wed, Jun 17, 2009 at 11:10 PM, Joel Paulsson mean@gmail.com wrote:


 I was looking for parseInt, it was just that i hadn't get the hang of
 Java.util.Date fully, now i have so now i know what was wrong. =)

 On 17 Juni, 10:11, Jason Morris lem...@gmail.com wrote:
  Possibly you are looking for Integer.decode instead of Integer.parseInt?
 
  Joel Paulsson wrote:
   Thanks for the help, i think i follow. I'll have to look into why
   Integer.parseInt didn't return the value i thought it would return
   then.
 
   On 16 Juni, 07:34, Dean S. Jones deansjo...@gmail.com wrote:
   Integer.getInteger(name) gets an integer from System properties.
 
   it is ( roughly ) equal to:
 
   Integer.parseInt(System.getProperty(name));
 
   So, in the GAE, what is the definition if System.getProperty() ??? You
   have no method or means of setting them, you don't know the properties
   of the Runtime Environment
 
   Thus, it is useless to ask... and the method is not provided.
 
   On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:
 
   Hi!
   I run gwt as a plug-in to Eclipse and i have no errors in Eclipse,
 but
   when i run the program to hosted mode i get this error in the
   AppEngine Server:
   [ERROR] Line 53: The method getInteger(String) is undefined for the
   type Integer
   If i comment that line it works great, but using getInteger is pretty
   vital for me in this application so i need it to work. Can anyone
 help
   me understand why i get this error when i don't have any compilation
   errors and maybe find a soloution?
   /Joel
 
 
 


--~--~-~--~~~---~--~~
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: getInteger problem when trying to run hosted mode.

2009-06-18 Thread Sumit Chandel
Hi Srihari,
Using Integer.valueOf(3).intValue() should get you along your way.

Hope that helps,
-Sumit Chandel

On Wed, Jun 17, 2009 at 11:46 PM, Srihari Ch sriharich@gmail.comwrote:

 Can you explain in detail the problem and solution which you found?Waiting
 for ur reply


 On Wed, Jun 17, 2009 at 11:10 PM, Joel Paulsson mean@gmail.comwrote:


 I was looking for parseInt, it was just that i hadn't get the hang of
 Java.util.Date fully, now i have so now i know what was wrong. =)

 On 17 Juni, 10:11, Jason Morris lem...@gmail.com wrote:
  Possibly you are looking for Integer.decode instead of Integer.parseInt?
 
  Joel Paulsson wrote:
   Thanks for the help, i think i follow. I'll have to look into why
   Integer.parseInt didn't return the value i thought it would return
   then.
 
   On 16 Juni, 07:34, Dean S. Jones deansjo...@gmail.com wrote:
   Integer.getInteger(name) gets an integer from System properties.
 
   it is ( roughly ) equal to:
 
   Integer.parseInt(System.getProperty(name));
 
   So, in the GAE, what is the definition if System.getProperty() ???
 You
   have no method or means of setting them, you don't know the
 properties
   of the Runtime Environment
 
   Thus, it is useless to ask... and the method is not provided.
 
   On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:
 
   Hi!
   I run gwt as a plug-in to Eclipse and i have no errors in Eclipse,
 but
   when i run the program to hosted mode i get this error in the
   AppEngine Server:
   [ERROR] Line 53: The method getInteger(String) is undefined for the
   type Integer
   If i comment that line it works great, but using getInteger is
 pretty
   vital for me in this application so i need it to work. Can anyone
 help
   me understand why i get this error when i don't have any compilation
   errors and maybe find a soloution?
   /Joel
 
 



 


--~--~-~--~~~---~--~~
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: getInteger problem when trying to run hosted mode.

2009-06-17 Thread Jason Morris

Possibly you are looking for Integer.decode instead of Integer.parseInt?

Joel Paulsson wrote:
 Thanks for the help, i think i follow. I'll have to look into why
 Integer.parseInt didn't return the value i thought it would return
 then.
 
 On 16 Juni, 07:34, Dean S. Jones deansjo...@gmail.com wrote:
 Integer.getInteger(name) gets an integer from System properties.

 it is ( roughly ) equal to:

 Integer.parseInt(System.getProperty(name));

 So, in the GAE, what is the definition if System.getProperty() ??? You
 have no method or means of setting them, you don't know the properties
 of the Runtime Environment

 Thus, it is useless to ask... and the method is not provided.

 On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:

 Hi!
 I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
 when i run the program to hosted mode i get this error in the
 AppEngine Server:
 [ERROR] Line 53: The method getInteger(String) is undefined for the
 type Integer
 If i comment that line it works great, but using getInteger is pretty
 vital for me in this application so i need it to work. Can anyone help
 me understand why i get this error when i don't have any compilation
 errors and maybe find a soloution?
 /Joel

  
 

--~--~-~--~~~---~--~~
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: IncompatibleClassChangeError when launching hosted mode (GWT 1.6 M2)

2009-06-17 Thread Josué

Hi Salvador,

Sorry for this late response. I tried your suggestion, but the problem
remains.

Thanks anyway,

Josué.



On 12 maio, 17:25, Salvador Diaz diaz.salva...@gmail.com wrote:
 Hi Josué,

 I recommend you learn more about dependecy management with maven as
 the problem your facing is easily solvable once you've understood how
 it works.

 Anyway, the solution to your problem is excluding the conflicting
 jetty dependency in your pom. Replace your selenium import with the
 following:

 dependency
     groupIdorg.codehaus.mojo/groupId
     artifactIdselenium-maven-plugin/artifactId
     version1.0-beta-3/version
     scopetest/scope
     exclusions
         exclusion
             groupIdjetty/groupId
             artifactIdorg.mortbay.jetty/artifactId
         /exclusion
     /exclusions
 /dependency

 Hope that helps,

 Salvador

 On May 12, 4:58 pm, Josué josuesan...@gmail.com wrote:

  Hi,

  I have the same problem here but the suggestion did not worked to me.
  Here is my scenario:

  I have a pom.xml (maven) in which most (but not all) project´s
  dependencies are  placed. When i put the following, the problem
  appears:
  ...
  dependency
      groupIdorg.codehaus.mojo/groupId
      artifactIdselenium-maven-plugin/artifactId
      version1.0-beta-3/version
      scopetest/scope
  /dependency
  ...
  In the moment the only jar that is not in the pom.xml is gwt-user.jar.
  There is no available maven repository (at least the ones showed in
  the search inside eclipse). I did as suggested here and my Order and
  Export is in this way:

  gwt-user.jar
  projectName/src
  projectName/test
  JRE System Library [jre6]
  JUnit 4
  Maven Dependencies

  And all other jars is inside Maven Dependencies. Any suggestions would
  be very appreciated.

  Abraços,

  Josué.

  On 13 abr, 22:02, grishag grigori.gold...@gmail.com wrote:

   Thanks for that. You were right on the money. I had a Selenium jar on
   the classpath that was causing this problem.

   On Apr 10, 11:48 am, jvictor jeffvic...@gmail.com wrote:

If using Eclipse, try moving the GWT jars (or the GWT SDK library if
you are using the new Eclipse plugin) to the top of your classpath
order.

Right Click Project - Properties - Java Build Path - Order and
Export

On Mar 27, 5:42 pm,grishaggrigori.gold...@gmail.com wrote:

 Hi,

 I started using GWT 1.6.1 M2 recently and things were going quite
 smoothly until I tried using hosted mode (with -noserver option). I am
 now getting the following exception. Does anyone know what this
 actually means? As far as I can tell, HashSessionManager does
 implemented SessionManager interface (that is indirectly by extending
 the AbstractSessionManager class).

 Thanks.

 [java] Exception in thread main
 java.lang.IncompatibleClassChangeError: Class
 org.mortbay.jetty.servlet.HashSessionManager does not implement the
 requested interface org.mortbay.jetty.SessionManager
      [java]     at
 org.mortbay.jetty.servlet.SessionHandler.setSessionManager
 (SessionHandler.java:88)
      [java]     at org.mortbay.jetty.servlet.SessionHandler.init
 (SessionHandler.java:62)
      [java]     at org.mortbay.jetty.servlet.SessionHandler.init
 (SessionHandler.java:53)
      [java]     at org.mortbay.jetty.webapp.WebAppContext.init
 (WebAppContext.java:297)
      [java]     at com.google.gwt.dev.ServletValidator.create
 (ServletValidator.java:59)
      [java]     at com.google.gwt.dev.ServletValidator.create
 (ServletValidator.java:43)
      [java]     at com.google.gwt.dev.HostedMode.doStartup
 (HostedMode.java:344)
      [java]     at com.google.gwt.dev.HostedModeBase.startUp
 (HostedModeBase.java:583)
      [java]     at com.google.gwt.dev.HostedModeBase.run
 (HostedModeBase.java:395)
      [java]     at 
 com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Fedora Core 10 64 bit problems with GWT hosted mode in Eclipse

2009-06-17 Thread Jesse Pangburn

I had some problems getting hosted mode to work in Eclipse on my FC10
64 bit machine, and they are mostly resolved now.  I wanted to post my
issues here for others.

First, as you may have read, GWT hosted doesn't work in 64 bit java,
so you need to install 32 bit JDK.  Believe me, I tried to avoid this
as well, but Google notes that it doesn't work.  So install Sun's 32
bit JDK on your system.  I made soft links for /usr/java/latest to my
64 bit JDK so by default most stuff would still use it.  But in
Eclipse for your GWT project, set your project's java build path to
have the 32 bit JDK instead of the 64 bit JDK and then GWT will run in
32 bit mode.  To do this, go to Preferences-Java-Installed_JREs and
add your 32 bit JDK, then for the project go to the build path and
add library.  In there you can find JRE and choose the 32 bit JDK
installation.

Starting up the hosted mode will likely fail due to lack of libraries
on your system with an exception containing some error about failed to
load library blahblah.so.  Use yum and keep installing the libraries
it's asking for until you don't get these anymore.  For example, if
you don't know what package blahblah.so is in (and I often didn't),
try this:
locate -b blahblah.so
This usually works because you typically already have the 64 bit
versions of most libraries needed.  Having the full path, now do:
yum provides /usr/lib64/full/path/to/blahblah.so
It will display the 64 bit package providing this library.  Just use
the nice package manager GUI to search for that package, and then
install the 32 bit (i386) version that should be sitting right next to
it in the list.
Wash/rinse/repeat until no more library not found errors.

After this though, I only have 64 bit firefox on my system and while
hosted mode would start and I could point my 64 bit firefox at
http://localhost:8080/, still the hosted mode embedded browser didn't
work.  This sucks because it's a lot faster to debug that way,
ESPECIALLY since the hosted mode then shows the exceptions when you
make a mistake in the client code with an invalid cast or something.
The error I got when starting hosted mode was:
XPCOM error -2147221164

If you google this, you'll find a lot of different answers that worked
for different people, the problem is typically that they have 32 bit
only environments and just have some setting screwed up.  In my 64 bit
environment with 32 bit parts randomly installed, I found some
comments about XULRunner not being setup right causing this exact
error so I checked my packages and found that I had the 64 bit version
of XULRunner but not the 32 bit version.  After installing the 32 bit
version of xulrunner, now my hosted mode browser starts up and I can
debug properly.

The only error I get now when the hosted mode browser starts up is an
ELF error that /home/jpangburn/.mozilla/libflashplayer.so is ELF64,
because it's a 32 bit hosted browser looking in my user plugins
directory and finding my 64 bit flash plugin for my 64 bit firefox.
Unless you have flash in your GWT apps that you want to test in hosted
mode, if you get that error still- I suggest ignoring it like I'm
doing.

Hope this helps someone else!
Jesse

--~--~-~--~~~---~--~~
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: IncompatibleClassChangeError when launching hosted mode (GWT 1.6 M2)

2009-06-17 Thread Josué

As a information I changed the dependency in pom.xml to this one:

...
dependency
groupIdorg.apache.geronimo.testsupport/groupId
artifactIdtestsupport-selenium/artifactId
version2.1.3/version
/dependency
...

And it worked now. The only thing is the testng.jar that I don´t
wanna. But it is not a problem in the moment.




On 17 jun, 14:16, Josué josuesan...@gmail.com wrote:
 Hi Salvador,

 Sorry for this late response. I tried your suggestion, but the problem
 remains.

 Thanks anyway,

 Josué.

 On 12 maio, 17:25, Salvador Diaz diaz.salva...@gmail.com wrote:

  Hi Josué,

  I recommend you learn more about dependecy management with maven as
  the problem your facing is easily solvable once you've understood how
  it works.

  Anyway, the solution to your problem is excluding the conflicting
  jetty dependency in your pom. Replace your selenium import with the
  following:

  dependency
      groupIdorg.codehaus.mojo/groupId
      artifactIdselenium-maven-plugin/artifactId
      version1.0-beta-3/version
      scopetest/scope
      exclusions
          exclusion
              groupIdjetty/groupId
              artifactIdorg.mortbay.jetty/artifactId
          /exclusion
      /exclusions
  /dependency

  Hope that helps,

  Salvador

  On May 12, 4:58 pm, Josué josuesan...@gmail.com wrote:

   Hi,

   I have the same problem here but the suggestion did not worked to me.
   Here is my scenario:

   I have a pom.xml (maven) in which most (but not all) project´s
   dependencies are  placed. When i put the following, the problem
   appears:
   ...
   dependency
       groupIdorg.codehaus.mojo/groupId
       artifactIdselenium-maven-plugin/artifactId
       version1.0-beta-3/version
       scopetest/scope
   /dependency
   ...
   In the moment the only jar that is not in the pom.xml is gwt-user.jar.
   There is no available maven repository (at least the ones showed in
   the search inside eclipse). I did as suggested here and my Order and
   Export is in this way:

   gwt-user.jar
   projectName/src
   projectName/test
   JRE System Library [jre6]
   JUnit 4
   Maven Dependencies

   And all other jars is inside Maven Dependencies. Any suggestions would
   be very appreciated.

   Abraços,

   Josué.

   On 13 abr, 22:02, grishag grigori.gold...@gmail.com wrote:

Thanks for that. You were right on the money. I had a Selenium jar on
the classpath that was causing this problem.

On Apr 10, 11:48 am, jvictor jeffvic...@gmail.com wrote:

 If using Eclipse, try moving the GWT jars (or the GWT SDK library if
 you are using the new Eclipse plugin) to the top of your classpath
 order.

 Right Click Project - Properties - Java Build Path - Order and
 Export

 On Mar 27, 5:42 pm,grishaggrigori.gold...@gmail.com wrote:

  Hi,

  I started using GWT 1.6.1 M2 recently and things were going quite
  smoothly until I tried using hosted mode (with -noserver option). I 
  am
  now getting the following exception. Does anyone know what this
  actually means? As far as I can tell, HashSessionManager does
  implemented SessionManager interface (that is indirectly by 
  extending
  the AbstractSessionManager class).

  Thanks.

  [java] Exception in thread main
  java.lang.IncompatibleClassChangeError: Class
  org.mortbay.jetty.servlet.HashSessionManager does not implement the
  requested interface org.mortbay.jetty.SessionManager
       [java]     at
  org.mortbay.jetty.servlet.SessionHandler.setSessionManager
  (SessionHandler.java:88)
       [java]     at org.mortbay.jetty.servlet.SessionHandler.init
  (SessionHandler.java:62)
       [java]     at org.mortbay.jetty.servlet.SessionHandler.init
  (SessionHandler.java:53)
       [java]     at org.mortbay.jetty.webapp.WebAppContext.init
  (WebAppContext.java:297)
       [java]     at com.google.gwt.dev.ServletValidator.create
  (ServletValidator.java:59)
       [java]     at com.google.gwt.dev.ServletValidator.create
  (ServletValidator.java:43)
       [java]     at com.google.gwt.dev.HostedMode.doStartup
  (HostedMode.java:344)
       [java]     at com.google.gwt.dev.HostedModeBase.startUp
  (HostedModeBase.java:583)
       [java]     at com.google.gwt.dev.HostedModeBase.run
  (HostedModeBase.java:395)
       [java]     at 
  com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
--~--~-~--~~~---~--~~
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: getInteger problem when trying to run hosted mode.

2009-06-17 Thread Joel Paulsson

I was looking for parseInt, it was just that i hadn't get the hang of
Java.util.Date fully, now i have so now i know what was wrong. =)

On 17 Juni, 10:11, Jason Morris lem...@gmail.com wrote:
 Possibly you are looking for Integer.decode instead of Integer.parseInt?

 Joel Paulsson wrote:
  Thanks for the help, i think i follow. I'll have to look into why
  Integer.parseInt didn't return the value i thought it would return
  then.

  On 16 Juni, 07:34, Dean S. Jones deansjo...@gmail.com wrote:
  Integer.getInteger(name) gets an integer from System properties.

  it is ( roughly ) equal to:

  Integer.parseInt(System.getProperty(name));

  So, in the GAE, what is the definition if System.getProperty() ??? You
  have no method or means of setting them, you don't know the properties
  of the Runtime Environment

  Thus, it is useless to ask... and the method is not provided.

  On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:

  Hi!
  I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
  when i run the program to hosted mode i get this error in the
  AppEngine Server:
  [ERROR] Line 53: The method getInteger(String) is undefined for the
  type Integer
  If i comment that line it works great, but using getInteger is pretty
  vital for me in this application so i need it to work. Can anyone help
  me understand why i get this error when i don't have any compilation
  errors and maybe find a soloution?
  /Joel


--~--~-~--~~~---~--~~
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: getInteger problem when trying to run hosted mode.

2009-06-17 Thread Joel Paulsson

I was looking for parseInt, it was just that i hadn't get the hang of
Java.util.Date fully, now i have so now i know what was wrong. =)

On 17 Juni, 10:11, Jason Morris lem...@gmail.com wrote:
 Possibly you are looking for Integer.decode instead of Integer.parseInt?

 Joel Paulsson wrote:
  Thanks for the help, i think i follow. I'll have to look into why
  Integer.parseInt didn't return the value i thought it would return
  then.

  On 16 Juni, 07:34, Dean S. Jones deansjo...@gmail.com wrote:
  Integer.getInteger(name) gets an integer from System properties.

  it is ( roughly ) equal to:

  Integer.parseInt(System.getProperty(name));

  So, in the GAE, what is the definition if System.getProperty() ??? You
  have no method or means of setting them, you don't know the properties
  of the Runtime Environment

  Thus, it is useless to ask... and the method is not provided.

  On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:

  Hi!
  I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
  when i run the program to hosted mode i get this error in the
  AppEngine Server:
  [ERROR] Line 53: The method getInteger(String) is undefined for the
  type Integer
  If i comment that line it works great, but using getInteger is pretty
  vital for me in this application so i need it to work. Can anyone help
  me understand why i get this error when i don't have any compilation
  errors and maybe find a soloution?
  /Joel


--~--~-~--~~~---~--~~
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: Fedora Core 10 64 bit problems with GWT hosted mode in Eclipse

2009-06-17 Thread Rajeev Dayal
Hey Jesse,
Thanks very much for the detailed post. It seems like you went through a lot
to get GWT up and running on your system. I'm happy that it's finally
working for you.

We'll review the information that you've provided. If others are running
into this problem, it probably makes sense to create a FAQ entry for this
problem.


Rajeev

On Wed, Jun 17, 2009 at 1:17 PM, Jesse Pangburn jesse.pangb...@gmail.comwrote:


 I had some problems getting hosted mode to work in Eclipse on my FC10
 64 bit machine, and they are mostly resolved now.  I wanted to post my
 issues here for others.

 First, as you may have read, GWT hosted doesn't work in 64 bit java,
 so you need to install 32 bit JDK.  Believe me, I tried to avoid this
 as well, but Google notes that it doesn't work.  So install Sun's 32
 bit JDK on your system.  I made soft links for /usr/java/latest to my
 64 bit JDK so by default most stuff would still use it.  But in
 Eclipse for your GWT project, set your project's java build path to
 have the 32 bit JDK instead of the 64 bit JDK and then GWT will run in
 32 bit mode.  To do this, go to Preferences-Java-Installed_JREs and
 add your 32 bit JDK, then for the project go to the build path and
 add library.  In there you can find JRE and choose the 32 bit JDK
 installation.

 Starting up the hosted mode will likely fail due to lack of libraries
 on your system with an exception containing some error about failed to
 load library blahblah.so.  Use yum and keep installing the libraries
 it's asking for until you don't get these anymore.  For example, if
 you don't know what package blahblah.so is in (and I often didn't),
 try this:
 locate -b blahblah.so
 This usually works because you typically already have the 64 bit
 versions of most libraries needed.  Having the full path, now do:
 yum provides /usr/lib64/full/path/to/blahblah.so
 It will display the 64 bit package providing this library.  Just use
 the nice package manager GUI to search for that package, and then
 install the 32 bit (i386) version that should be sitting right next to
 it in the list.
 Wash/rinse/repeat until no more library not found errors.

 After this though, I only have 64 bit firefox on my system and while
 hosted mode would start and I could point my 64 bit firefox at
 http://localhost:8080/, still the hosted mode embedded browser didn't
 work.  This sucks because it's a lot faster to debug that way,
 ESPECIALLY since the hosted mode then shows the exceptions when you
 make a mistake in the client code with an invalid cast or something.
 The error I got when starting hosted mode was:
 XPCOM error -2147221164

 If you google this, you'll find a lot of different answers that worked
 for different people, the problem is typically that they have 32 bit
 only environments and just have some setting screwed up.  In my 64 bit
 environment with 32 bit parts randomly installed, I found some
 comments about XULRunner not being setup right causing this exact
 error so I checked my packages and found that I had the 64 bit version
 of XULRunner but not the 32 bit version.  After installing the 32 bit
 version of xulrunner, now my hosted mode browser starts up and I can
 debug properly.

 The only error I get now when the hosted mode browser starts up is an
 ELF error that /home/jpangburn/.mozilla/libflashplayer.so is ELF64,
 because it's a 32 bit hosted browser looking in my user plugins
 directory and finding my 64 bit flash plugin for my 64 bit firefox.
 Unless you have flash in your GWT apps that you want to test in hosted
 mode, if you get that error still- I suggest ignoring it like I'm
 doing.

 Hope this helps someone else!
 Jesse

 


--~--~-~--~~~---~--~~
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: Is there a way to disable Jetty INFO-level log messages to Hosted Mode Shell?

2009-06-16 Thread Thoka

I would really like to know how to do this as well, the Jetty info-
logs are totally worthless.

On 8 Maj, 18:12, Mark  Renouf mark.ren...@gmail.com wrote:
 I have to use -logLevel INFO because I want to continue seeing my
 debuglogmessages from GWT.log. I also want to continue seeing
 warnings or errors fromJetty(like non 2xx repsonse codes, etc).

 Is there any way to accomplish this, or should I file an issue? (I
 didn't see this request reported yet).

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



how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Benibur

There is a port conflict on my server since GWT hosted mode and
another web application use the same port (8080)
The point is widely discussed over the internet, but the solution is
always : modify the port of the other application.
The pb is that in my case I can not change the port of the other
application.

= is there any chance i can modify the port of GWT hosted mode ?

thank you !

Benjamin

--~--~-~--~~~---~--~~
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: how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Peter Ondruška

Use the -port parameter to set non-default.

2009/6/16, Benibur benj...@gmail.com:

 There is a port conflict on my server since GWT hosted mode and
 another web application use the same port (8080)
 The point is widely discussed over the internet, but the solution is
 always : modify the port of the other application.
 The pb is that in my case I can not change the port of the other
 application.

 = is there any chance i can modify the port of GWT hosted mode ?

 thank you !

 Benjamin

 


--~--~-~--~~~---~--~~
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: how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Kwhit

In Eclipse you can modify the port on the Run or Debug configurations
menu - took me a while to stumble on that one.
--~--~-~--~~~---~--~~
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: how to modify the default port (8080) of hosted mode ?

2009-06-16 Thread Benibur

thank's !
that was difficult to find !

Ben

On 16 juin, 22:13, Kwhit kwhitting...@gmail.com wrote:
 In Eclipse you can modify the port on the Run or Debug configurations
 menu - took me a while to stumble on that one.
--~--~-~--~~~---~--~~
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: getInteger problem when trying to run hosted mode.

2009-06-16 Thread Joel Paulsson

Thanks for the help, i think i follow. I'll have to look into why
Integer.parseInt didn't return the value i thought it would return
then.

On 16 Juni, 07:34, Dean S. Jones deansjo...@gmail.com wrote:
 Integer.getInteger(name) gets an integer from System properties.

 it is ( roughly ) equal to:

 Integer.parseInt(System.getProperty(name));

 So, in the GAE, what is the definition if System.getProperty() ??? You
 have no method or means of setting them, you don't know the properties
 of the Runtime Environment

 Thus, it is useless to ask... and the method is not provided.

 On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:

  Hi!

  I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
  when i run the program to hosted mode i get this error in the
  AppEngine Server:

  [ERROR] Line 53: The method getInteger(String) is undefined for the
  type Integer

  If i comment that line it works great, but using getInteger is pretty
  vital for me in this application so i need it to work. Can anyone help
  me understand why i get this error when i don't have any compilation
  errors and maybe find a soloution?

  /Joel


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



[gwt-contrib] Re: RR : Allow user-provided bridge classes in hosted mode

2009-06-16 Thread jat

LGTM with nits.


http://gwt-code-reviews.appspot.com/34836/diff/1001/2002
File dev/core/src/com/google/gwt/dev/shell/rewrite/HasAnnotation.java
(right):

http://gwt-code-reviews.appspot.com/34836/diff/1001/2002#newcode29
Line 29: * a type.
Should mention the annotation has to be directly on the type without
considering inheritance (perhaps on the hasAnnotation method instead of
here).

http://gwt-code-reviews.appspot.com/34836/diff/1001/2002#newcode50
Line 50: boolean found;
private?

http://gwt-code-reviews.appspot.com/34836/diff/1001/2003
File dev/core/super/com/google/gwt/core/client/BridgeClass.java (right):

http://gwt-code-reviews.appspot.com/34836/diff/1001/2003#newcode26
Line 26: * super-source.
Still not sold on the name, but can't think of anything better.  If this
is intended to be something that external code might use, there should
probably be more documentation and an example.  If not, it should
probably be documented as such.

http://gwt-code-reviews.appspot.com/34836/diff/1001/2005
File
user/test-super/com/google/gwt/dev/jjs/super/com/google/gwt/dev/jjs/bridge/UserBridgeClass.java
(right):

http://gwt-code-reviews.appspot.com/34836/diff/1001/2005#newcode32
Line 32: * Test cross-bounday method invocation.
typo

http://gwt-code-reviews.appspot.com/34836/diff/1001/2009
File user/test/com/google/gwt/dev/jjs/bridge/UserBridgeClass.java
(right):

http://gwt-code-reviews.appspot.com/34836/diff/1001/2009#newcode33
Line 33: * Test cross-bounday method invocation.
typo: bounday

http://gwt-code-reviews.appspot.com/34836

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: RR : Allow user-provided bridge classes in hosted mode

2009-06-16 Thread bobv

@Scott,

   Per our IM conversation, I've renamed the new concept to
GwtScriptOnly. Could you check this over once more before I commit it?

@John,
   Thanks for the review.

http://gwt-code-reviews.appspot.com/34836

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: RR : Allow user-provided bridge classes in hosted mode

2009-06-16 Thread scottb

Glanced over it, but I'm sure it's fine so I didn't fine-tooth it.

http://gwt-code-reviews.appspot.com/34836

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Unexpected behviour on server down or violation of same-origin policy in hosted mode

2009-06-15 Thread dikappa

Hi.

I'm testing the http request builder in hosted mode, trying to access
a server that is down or beyond SOP.

When I access a server which is actually down (ie http://localhost:),
or one that is beyond SOP (ie http://www.example.com),
onResponseReceived is fired, and response.getStatusCode() returns 0.

It works as expected in firefox: an exception is thrown and no
onResponseReceived nor onError are fired.

Is this the expected behaviour?

As a side note: I'm doing this on mac, I tried it before on windows
and I'm pretty sure it was working as expected.

Thanks.

Source code:

public class Test_same_origin_policy implements EntryPoint {
public void onModuleLoad() {
final String url = http://www.example.com/;;
RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
URL.encode(url));

try {

builder.sendRequest(null, new RequestCallback() {

public void onError(Request request, Throwable 
exception) {

}

   public void onResponseReceived(Request request,
Response response) {

}
  });
}
catch (RequestException 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



getInteger problem when trying to run hosted mode.

2009-06-15 Thread Joel Paulsson

Hi!

I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
when i run the program to hosted mode i get this error in the
AppEngine Server:

[ERROR] Line 53: The method getInteger(String) is undefined for the
type Integer

If i comment that line it works great, but using getInteger is pretty
vital for me in this application so i need it to work. Can anyone help
me understand why i get this error when i don't have any compilation
errors and maybe find a soloution?

/Joel

--~--~-~--~~~---~--~~
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: getInteger problem when trying to run hosted mode.

2009-06-15 Thread Dean S. Jones

Integer.getInteger(name) gets an integer from System properties.

it is ( roughly ) equal to:

Integer.parseInt(System.getProperty(name));

So, in the GAE, what is the definition if System.getProperty() ??? You
have no method or means of setting them, you don't know the properties
of the Runtime Environment

Thus, it is useless to ask... and the method is not provided.



On Jun 15, 5:00 pm, Joel Paulsson mean@gmail.com wrote:
 Hi!

 I run gwt as a plug-in to Eclipse and i have no errors in Eclipse, but
 when i run the program to hosted mode i get this error in the
 AppEngine Server:

 [ERROR] Line 53: The method getInteger(String) is undefined for the
 type Integer

 If i comment that line it works great, but using getInteger is pretty
 vital for me in this application so i need it to work. Can anyone help
 me understand why i get this error when i don't have any compilation
 errors and maybe find a soloution?

 /Joel
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[gwt-contrib] RR : Allow user-provided bridge classes in hosted mode

2009-06-15 Thread bobv

Reviewers: scottb,

Message:
Requesting review

Description:
This patch would allow user-provided code to escape from the
CompilingClassLoader sandbox.

Use case:
   - Create a type that should be used only in hosted mode which lives
somewhere in the classpath
   - Create a web-mode implementation which lives in super-source
   - Annotate the web-mode implementation with the @BridgeClass
annotation

When CCL loads the super-source version it will notice the BridgeClass
annotation and load the (possibly binary-only) implementation of the
bridge class from the classpath via a child classloader.  This
newly-loaded type will then be able to refer to types that are not
defined in the CCL sandbox.

The web-mode compiler will continue to use the version in super-source
and ignore the BridgeClass annotation.

Please review this at http://gwt-code-reviews.appspot.com/34836

Affected files:
   M dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java
   A dev/core/src/com/google/gwt/dev/shell/rewrite/HasAnnotation.java
   A dev/core/super/com/google/gwt/core/client/BridgeClass.java
   M user/build.xml
   A  
user/test-super/com/google/gwt/dev/jjs/super/com/google/gwt/dev/jjs/bridge/UserBridgeClass.java
   M user/test/com/google/gwt/dev/jjs/CompilerSuite.java
   A user/test/com/google/gwt/dev/jjs/UserBridgeTest.gwt.xml
   A user/test/com/google/gwt/dev/jjs/bridge/BaseClass.java
   A user/test/com/google/gwt/dev/jjs/bridge/UserBridgeClass.java
   A user/test/com/google/gwt/dev/jjs/bridge/UserBridgeTest.java



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: RR : Allow user-provided bridge classes in hosted mode

2009-06-15 Thread scottb

Bob, I have some questions about the twilight zone in which this new
class loader lives, but I'm kinda swamped this week.  Maybe we can make
some time to discuss?

http://gwt-code-reviews.appspot.com/34836

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: Hosted mode

2009-06-13 Thread Allan

wow, it takes me a day! lucky, there is a way to do that. Thanks a
million!

On Jun 3, 4:14 am, Kelo mcac...@gmail.com wrote:
 Hi Greg,
    Push the button GWT Compile Project
    Compile your project setting log level to Spam
    Go to Debug Configurations , on the 2nd tab GWT of your project
 set log level to Spam.
    Run Debug as... ( your project )
    Make your breakpoints on your project
    Then press Compile/Browse on Hosted Mode
    Once it fininshed press Refresh on Hosted Mode

 On Jun 1, 4:19 pm, Rajeev Dayal rda...@google.com wrote:

  Hi Greg,

  A few questions for you:

  1) Are you using Debug As to launch your application's debugging session?
  2) If you switch to the Debug perspective and look at the breakpoints view,
  are all of the breakpoints enabled?
  3) If you go to Preferences (Window - Preferences on Linux and Windows,
  Eclipse - Preferences on Mac) - Run/Debug and make sure that Activate the
  workbench whenbreakpointis hit and Activate the debug view when
 breakpointis hit options are enabled?
  4) Can you tell me what is on your project's classpath?

  Rajeev

  On Sat, May 30, 2009 at 5:05 PM, Greg greg.ba...@gmail.com wrote:

   I'm having the same problem as the OP. I'm working through the
   StockWatcher tutorial, and I set breakpoints on the specified lines in
   updateTable. Eclipse shows checkmarks on thebreakpointindicators
   after the hosted-mode browser starts. Extra calls to GWT.log
   demonstrate that control is passing through the marked lines, but
   execution does not stop. Eclipse's perspective never changes to Debug.

   OS: Vista
   Eclipse v3.4.2 (Ganymede + EE)
   GWT Plugin 1.0.1.v200905131143
   GWT SDK for Win32 1.6.4.v200904062334
   JDK 1.6.0_14

   Thanks,
   Greg

--~--~-~--~~~---~--~~
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: Background image shows up in hosted mode but not in web mode

2009-06-12 Thread alex.d

Wrong path? Some CSS/browser issues? Who knows. Take firebug and check
your page's styling.

On 11 Jun., 17:15, Manolis Platakis m.plata...@gmail.com wrote:
 Hello,

 I have created the following css style to add a background image to
 the html page of my application.

 .bg {
   background: url(images/bg.gif) 50% 50% no-repeat;

 }

 and in the .java I have:

 RootPanel.get().addStyleName(bg);

 In hosted mode I can see the background image but in web mode (after
 compiling), although the application is up to date, the background
 image does not show up.

 Any ideas on why this might be happening?

 Thanks in advance,
 Manolis
--~--~-~--~~~---~--~~
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: Background image shows up in hosted mode but not in web mode

2009-06-12 Thread Manolis Platakis

It was, indeed, a css non-standard that was ignored by Firefox. Thanks
for your answer.

Manolis

On Jun 12, 9:21 am, alex.d alex.dukhov...@googlemail.com wrote:
 Wrong path? Some CSS/browser issues? Who knows. Take firebug and check
 your page's styling.

 On 11 Jun., 17:15, Manolis Platakis m.plata...@gmail.com wrote:

  Hello,

  I have created the following css style to add a background image to
  the html page of my application.

  .bg {
    background: url(images/bg.gif) 50% 50% no-repeat;

  }

  and in the .java I have:

  RootPanel.get().addStyleName(bg);

  In hosted mode I can see the background image but in web mode (after
  compiling), although the application is up to date, the background
  image does not show up.

  Any ideas on why this might be happening?

  Thanks in advance,
  Manolis
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Background image shows up in hosted mode but not in web mode

2009-06-11 Thread Manolis Platakis

Hello,

I have created the following css style to add a background image to
the html page of my application.

.bg {
  background: url(images/bg.gif) 50% 50% no-repeat;
}

and in the .java I have:

RootPanel.get().addStyleName(bg);

In hosted mode I can see the background image but in web mode (after
compiling), although the application is up to date, the background
image does not show up.

Any ideas on why this might be happening?

Thanks in advance,
Manolis

--~--~-~--~~~---~--~~
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: Please help! GWT out of the box examples stopped running correctly in hosted mode under Windows Vista

2009-06-11 Thread Sumit Chandel
Hi sbarr10,
Here is the previous thread where you posted about this issue:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/54e1ffa04907b569

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/54e1ffa04907b569I
replied back on there recommending that you check if the Windows Firewall or
new security mechanism is potentially blocking the hosted mode process. If
that's the case, you should be getting a security popup prompting you to
grant access to the process / allow it to connect to the network, unless it
has been set to always allow processes to run (although I'm not quite sure
if there exists a setting to do that). Feel free to get back on the previous
thread if you're still having problems getting hosted mode working.

Hope that helps,
-Sumit Chandel

On Sun, Jun 7, 2009 at 9:36 PM, sbar...@earthlink.net sbar...@earthlink.net
 wrote:


 I cannot find my previous post on this topic.

  I am new to Vista and for weeks have been happily coding away in GWT
 1.6.4 using hosted mode.   I strictly use DOS shells (no Eclipse).

 The issue is not specific to just my code, it affects the GWT sample
 applications out of the box too.

 When I type:

 %ant_home%\bin\ant clean -The relevant directories were cleaned.
 %ant_home%\bin\ant build -Yes, new files are being generated.
 %ant_home%\bin\ant hosted-  I get two blank white screens and nothing
 happens.

 If I then bang the Compile/Browse button and wait a minute, the sample
 app will eventually launch - in a THIRD window.  This did not used to
 happen!

 I looked at the Windows Update history and noticed that an IE8 install
 had failed, so I went and completed that.

 What is it that I am not understanding about Vista?!?




 


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



<    5   6   7   8   9   10   11   12   13   14   >