Figured out a work around.

                String baseUrl = GWT.getModuleBaseURL();
                int indexOfC = baseUrl.indexOf("celticlock");
                baseUrl = baseUrl.substring(0,indexOfC);
                 String observationServiceURL = baseUrl + "servlets/celticlock/
greet";
If I set the full observationServiceURL without the celticlock, it
works!

Thanks for your help!
On May 23, 9:34 am, Sean <slough...@gmail.com> wrote:
> It looks like the problem is, the moduleBaseUrl for greetingservice is
> "http://localhost:8080/celticlock/"; and it's tacking on the serviceUrl
> to that possibly.
>
> On May 23, 9:26 am, Sean <slough...@gmail.com> wrote:
>
> > I thought that would work, but even with:
>
> >  String observationServiceURL = "servlets/celticlocks/greet";
>
> >                  ((ServiceDefTarget) greetingService).setServiceEntryPoint
> > (observationServiceURL);
>
> > I still get the message:
>
> > HTTP ERROR: 404
> > NOT_FOUND
> > RequestURI=/celticlock/servlets/celticlocks/greet
>
> > I even added the 's' to the 2nd cleticlock just to make sure my
> > changes were going through.
>
> > I wonder if it's built down deeper to add the /celticlock.
>
> > On May 22, 6:47 pm, Rajeev Dayal <rda...@google.com> wrote:
>
> > > You're getting the first celticlock in becuase you're appending
> > > GWT.getModuleBaseURL() to the front of observationServiceURL. Since you 
> > > know
> > > that your servlets are hosted at /servlets, change:
>
> > > String observationServiceURL = GWT.getModuleBaseURL() +
> > > "servlets/celticlock/greet";
>
> > > to
>
> > > String observationServiceURL = "/servlets/celticlock/greet";
>
> > > On Fri, May 22, 2009 at 3:22 PM, Sean <slough...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I'm trying to deploy an RPC, but I can't figure out how to do it in
> > > > 1.6. The problem is, the new RPC seems to always have the request
> > > > being
>
> > > > [projectname]/[RPC entry Point]
>
> > > > My problem with this is, on my shared Tomcat account, the way I can
> > > > tell the server to have Tomcat execute this service instead of it
> > > > being a normal http request is
>
> > > > servlets/[whatever you want]
>
> > > > The servlets/ tells the server it's an RPC. But even if I set my Entry
> > > > point explicitly like:
>
> > > >                 String observationServiceURL = GWT.getModuleBaseURL() +
> > > > "servlets/
> > > > celticlock/greet";
>
> > > >                 ((ServiceDefTarget) 
> > > > greetingService).setServiceEntryPoint
> > > > (observationServiceURL);
>
> > > > The request turns to: /celticlock/servlets/celticlock/greet
>
> > > > How can I get the RPC to stop automatically putting the first /
> > > > celticlock in? I want it to just request my RPC Service Entry point.
>
> > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to