Friday, July 17, 2015

Re: [Request Factory]: 405 (HTTP method POST is not supported by this URL)

Thank you, the correct setup with the help of the maven archetypes helped!

On Monday, July 13, 2015 at 11:25:15 PM UTC+2, Ignacio Baca Moreno-Torres wrote:
You have various problems, your project layout is incorrectly (WEB-INF/web.xml must be placed inside src/main/webapp), servlet name typo (servlet and servlet-name has different names), client side request factory are not pointing to the correct place (requesting http://localhost:8080/pay-me-back/Example/Example.html but the servlet is exposed http://localhost:8080/pay-me-back/gwtRequest), etc...

Maybe you can use one of this sample projects as a starting point, and I think that is easier to start with maven instead of gradle:
On Monday, July 13, 2015 at 8:59:55 PM UTC+2, Roger Küng wrote:
Good Day

I am new to GWT and try to have the request factory server communication working.

I setup everything according to the documentation: 


But I receive the following error:

POST http://localhost:9876/Example/gwtRequest 405 (HTTP method POST is not supported by this URL)


I looked everywhere and just can't figure out what I am missing.

I hosted the project on github:


I tried now for hours to resolve the issue, maybe it has is due to the way I wrote my gradle file. I am relatively new to java development and the building tools aren't familiar to me, so it might simply be that I didn't handle correctly all the necessary dependencies in the gradle file.


Any help would be appreciated.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment