I didn't have to do that.  The service path is set as "/myService" in
both Module.gwt.xml and as the argument to
@RemoteServiceRelativePath.  I tried "/myModule/myService", but got
404s stating that the server couldn't find "/myModule/myModule/
myService".  Some aspects of GWT seem to be tightly-coupled, so
changing either one probably would break your app.

Additionally, the arguments in Module.launch (Eclipse-specific) looks
like: "-noserver http://localhost:8080/Module/Module.html";, loading up
a Hosted Browser with the included URL on launch.  Alternatively, "-
noserver -port 8080 Module/Module.html" works identically, as
localhost is the default host Hosted Mode seeks.  Additional URL
arguments load multiple Hosted Browser instances in the Hosted Mode
session at launch if need be.

Both my trivial and non-trivial apps are working with this setup.  If
anyone would like to see the codebase for the entire, functioning
trivial app, I can put that up.

But, hey.  What works, works.


On Oct 15, 12:16 pm, jos <[EMAIL PROTECTED]> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to