Hope this helps,
Eric
HTTP Status 405 - HTTP method GET is not supported by this URL
You are saying there is an Apache rule to set GET vs. POST?
How do I
"so I just changed my RPC's to use the GET method."
Thanks,
Lance
For rpc, if your server-side code implements RemoteServiceServlet,
then both the get and post methods should be enabled, but I'd check
the source for that class to make sure. There also might be a setting
in your web.xml file that can restrict the method type.
Sorry about the confusion.
Thanks,
Eric
I ask because it might be that you are using a different path or
context on the hosted server than on the "production" one, are you
using GWT.getModuleBaseURL()?
Double check that the endpoint is valid for the production machine.
I changed the servlet mapping to
/app_home/servlet_name.rpc
and everything works fine.
Thanks.
----- Original Message -----
From: <charlie...@gmail.com>
To: "Google Web Toolkit" <Google-We...@googlegroups.com>
So when you say that you "changed the servlet mapping to...." do you
mean that the URL-Path is now /app_home/servlet_name.rpc, or that you
had to re-name your servlet? I know that's probably a silly question,
just trying to follow. And this is in the web.xml, or in the *.gwt.xml
file as well?
Thanks,
Wesley
On Sep 13, 3:53 am, "L Frohman" <lfroh...@gmail.com> wrote:
> I found the problem, the server has jsf/facelets and was changing acallto
> /app_home/servlet_name
> (no extension)
> to
> /app_home/servlet_name.xhtml
> which is a valid jsf/facelets page on the server.
> I guess this is some server configuration.
>
> I changed the servlet mapping to
> /app_home/servlet_name.rpc
> and everything works fine.
>
> Thanks.
>
> ----- Original Message -----
> From: <charlie.coll...@gmail.com>
> To: "Google Web Toolkit" <Google-We...@googlegroups.com>
> Sent: Wednesday, September 12, 2007 2:12 PM
> Subject: Re: "405 - Method not allowed" onrpccall
>
> > This could be configuration on the HTTP server, but also may be
> > simpler. What is the endpoint set to in yourRPCcall?
>
> > I ask because it might be that you are using a different path or
> > context on the hosted server than on the "production" one, are you
> > using GWT.getModuleBaseURL()?
>
> > Double check that the endpoint is valid for the production machine.
>
> > On Sep 11, 6:05 pm, "L Frohman" <lfroh...@gmail.com> wrote:
> >> I have an app that makes anrpccallusing -noserver. It works fine on my
<servlet-mapping>
<servlet-name>servlet_name</servlet-name>
<url-pattern>/servlet_name</url-pattern>
</servlet-mapping>
to
<servlet-mapping>
<servlet-name>servlet_name</servlet-name>
<url-pattern>/servlet_name.rpc</url-pattern>
</servlet-mapping>
(and changed the AsyncCallback call in the client)