Hi Rajeev,

Thanks for your reply.

I am running under Vista. I have done nothing special configuration wise 
with Eclipse and it is out of the box so to speak. I downloaded and imported 
into Eclipse the "all client side" version of the StockWatch project. In GWT 
designer I right click on the StockWatcher project -> Google Web Toolkit 
-> Convert project into GWT project. I then implemented the code in the RPC 
tutorial and upon completion, when I run in hosted mode the, Price and the 
Change, values are not being pulled through from the server side code. I just 
get the following on the hosted mode console: 404 - POST 
/stockwatcher/StockPriceService (127.0.0.1) 1416 bytes.

   Request headers
      Accept: */*
      Referer: http://localhost:8080/stockwatcher/hosted.html?stockwatcher
      Accept-Language: en-gb
      Accept-Encoding: gzip, deflate
      User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; 
Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 
1.1.4322; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; 
OfficeLiveConnector.1.3; OfficeLivePatch.0.0; InfoPath.1)
      Host: localhost:8080
      Connection: Keep-Alive
      Content-Type: text/x-gwt-rpc; charset=utf-8
      Content-Length: 212
      Cache-Control: no-cache


Here are the parameters in my Eclipse -> Project -> Properties -> Java Build 
Path

Under the "Source" Tab
Source folders on build path:
> StockWatcher/src
    > Included: (All)
    > Excluded: (None)
    > Native library location (None)

Under the "Projects" Tab
Required projects on the build path:
There is nothing here. When I click on "Add" it only gives a starter project 
that I was playing around with and not the StockWatcher one.

Under the "Libraries" Tab
JARs and class folders on the build path:
> GWT SDK [GWT - 1.6.4]
    > Access rules: No rules defined
    > Native library locations: (None)
    > gwt-user.jar - 
C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
        >Source attachment: (None)
        >Javadoc location: 
file:/C:/Users\work/Desktop/eclipse/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4/doc/javadoc/
        >Native library location: (None)
        >Access rules: (No restrictions)
    > gwt-dev-windows.jar - 
C:\Users\work\Desktop\eclipse\eclipse\plugins\com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062334\gwt-windows-1.6.4
> JRE System Library [jre1.6.0]
    > Access rules: No rules defined 
    > Native library locations: (None)
    > resources.jar - C:\Program Files\Java\jre1.6.0\lib
    > rt.jar - C:\Program Files\Java\jre1.6.0\lib
    > jsse.jar - C:\Program Files\Java\jre1.6.0\lib
    > jce.jar - C:\Program Files\Java\jre1.6.0\lib
    > charsets.jar - C:\Program Files\Java\jre1.6.0\lib
    > dnsns.jar  - C:\Program Files\Java\jre1.6.0\lib
    > localedata.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunjce_provider.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunmscapi.jar - C:\Program Files\Java\jre1.6.0\lib
    > sunpkcs11.jar - C:\Program Files\Java\jre1.6.0\lib

Under the "Order and Export" Tab
Build class path order and exported entries:
[] StockWatcher/src
[] GWT SDK [GWT - 1.6.4]
[] JRE System Library [jre1.6.0]
(The first option above is checked and the second two are unchecked)

That is about it

Thanks
Paul





 



________________________________
From: Rajeev Dayal <rda...@google.com>
To: Google-Web-Toolkit@googlegroups.com
Sent: Monday, 8 June, 2009 0:35:05
Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC tutorial

Hi Paul, 

Sorry that responses have been slow for you on this forum. They are definitely 
monitored, but I think that we're playing catchup on this end due to the Google 
I/O conference.

First of all, are you using Eclipse, or are you trying to run this from the 
command line? If you're trying to do this in Eclipse, can you me what you have 
on your Java build path? If you're running from the command line, can you paste 
the command line that is being executed?

It sounds like the StockPrice class (or maybe one of the classes that it uses) 
is not available on your server, which is definitely odd. That's why I want to 
see what your command line/build path looks like when executing Hosted Mode. 
Also, you're not doing anything special like running with the -noserver option, 
are you?


Rajeev




On Sun, Jun 7, 2009 at 3:24 PM, Paul Hargreaves <cbassthef...@yahoo.co.uk> 
wrote:



Can anyone suggest a newbies forum for my queries? On this forum I get very 
little feed back.  I also see lots of other requests for help getting very 
little/no feed back. Maybe I am pitching below your standards hence the request 
for a location of a newbies forum. Most other forums, for other software 
packages I have studied, have been rather good at supporting both new and 
experienced users, but does not seem to be the case here.




----- Original Message ----
From: cbassthefish <cbassthef...@yahoo.co.uk>
To: Google Web Toolkit <Google-Web-Toolkit@googlegroups.com>

Sent: Sunday, 7 June, 2009 13:14:45
Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC  
tutorial


Bump! :o) Any other ideas? Anyone?

On Jun 6, 10:15 am, Paul Hargreaves <cbassthef...@yahoo.co.uk> wrote:
> Not really of use. I tried re-doing the RPC tutorial with other tutorials on 
> the web - one was the GWT designer tutorial but still the same thing. It 
> cannot find the source. The hosted mode browser gives "404 - POST /stock 
> watcher/Stock Price Service(127.0.0.1)". I am sort of short of ideas now.
>
>
>
> ----- Original Message ----
> From: Jim <jim.p...@gmail.com>
> To: Google Web Toolkit <Google-Web-Toolkit@googlegroups.com>
> Sent: Friday, 5 June, 2009 18:23:46
> Subject: Re: Eclipse - GWT - ClassNotFoundException in StockWatcher RPC 
> tutorial
>
> You can find the modified GWT mail example 
> inhttp://www.gwtorm.com/gwtMail.jsp,
> which is a database web application.
> Just follow the instruction on that page and you can find source code
> as well as database code there.
>
> Jimhttp://www.gwtorm.comhttp://code.google.com/p/dreamsource-orm/
>
> On Jun 5, 12:51 pm, cbassthefish <cbassthef...@yahoo.co.uk> wrote:
> > Hi,
>
> > I am just finishing up the RPC tutorial on the stockwatcher tutorial.
> > I go to test it, add in my stock codes, it updates the list with my
> > codes but no price or change values are coming through. I set a break
> > point at StockWatcher.java in refreshWatchList(). When it calls the
> > remote host with AsyncCallback<StockPrice[]:
>
> >             AsyncCallback<StockPrice[]> callback = new
> > AsyncCallback<StockPrice[]>() {
> >               public void onFailure(Throwable caught) {
> >                 // TODO: Do something with errors.
> >               }
>
> >               public void onSuccess(StockPrice[] result) {
> >                 updateTable(result);
> >               }
> >             };
>
> > I get an error:
> > "source not found"
> > this = ClassNotFoundException (id=66)
> > arg0 = com/google/gwt/sample/stockwatcher/client/StockWatcher$5
>
> > Any ideas what this could be? How could I deductively touble shoot
> > this situation? Failing that. Is there a copy of the completed source
> > code for the RPC tutorial so I can do a difference between the source
> > code to see where I am going wrong.
>
> > Many thanks
> > Paul- 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to