Hi Christopher
I had a tough time getting this to work at first too (using 1.5). One
of the changes I
made that I have not seen mentioned in this thread is that I had to
change the
service entry point to something different than what Bruce had in his
initial post
I had to use a full URL to my server, see example of my service entry
point below.
Also a couple of other things - you need to copy the compiled GWT
application
directory to the server directories (and recopy if you change the
interface)
and don't forget that you need to alter the address in the hosted mode
browser to
the actual page on your server or the application won't load.
>> from bruce johnson's post
5) Make sure that your client-side code references the right service
entrypoint using ServiceDefTarget. In this case, it would be
something
like serviceDefTarget.setServiceEntryPoint("/myproject/myservice").
>> example of what I put in my code
geoServiceTarget.setServiceEntryPoint("http://staging.abaqus.net/geo/
gcb/geoservice");
hope this helps
jos
On Oct 14, 9:34 am, Christopher Venning
<[EMAIL PROTECTED]> wrote:
> I cannot seem to get the -noserver mode working with RPCs. I got it
> to work in 1.4 but have changed environments in the last year. There
> don't appear to be any Group postings about getting it going since 1.5
> was released. Bruce Johnson's original posting (http://
> groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/
> 338c4b765d7dfc39) doesn't appear to be the 1.5-supported method, based
> on the current Developer's Guide (yes, I tried it anyways and
> failed). Working off
> ofhttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_...,
> Hosted Mode hooks in appropriately (changing Java code and refreshing
> the Hosted Browser changes content). However, the RPCs fail. I am
> probably doing something dumb, and would appreciate someone pointing
> that out.
>
> Relevant Environment: GWT 1.5.2, Eclipse 3.4.0, Tomcat 5.5.27, jdk
> 1.6u7, XP SP3
>
> Relevant Error
> ---
> Throwable type:
> - com.google.gwt.user.client.rpc.StatusCodeException
> Message content:
> - html page from external Tomcat (has been confirmed)
> - 404 report
> - description: "The requested resource (/ServerTest/testService) is
> not available."
>
> Relevant module code
> ---
> from TestService.java (extends RemoteService):
> @RemoteServiceRelativePath("/testService")
>
> from ServerTest.gwt.xml:
> <servlet path="/testService" class="org.server.TestServiceImpl" />
>
> from ServerTest.launch (arguments):
> -noserverhttp://localhost:8080/ServerTest/ServerTest.html
>
> Sum Total of changes to Tomcat
> ---
> created %TOMCAT_HOME%/webapps/ServerTest
> copied into that directory (from compilation):
> - clear.cache.gif
> - history.html
> - hosted.html
> - org.ServerTest.nocache.js
> - ServerTest.html
> - 5BA8A5B3E35F40698BB0BF65F390BCF2.gwt.rpc
> - 9DA92932034707C17CFF15F95086D53F.cache.png
> - 548CDF11D6FE9011F3447CA200D7FB7F.cache.png
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---