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

490 views
Skip to first unread message

Roger Küng

unread,
Jul 13, 2015, 2:59:55 PM7/13/15
to google-we...@googlegroups.com
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.


Ignacio Baca Moreno-Torres

unread,
Jul 13, 2015, 5:25:15 PM7/13/15
to google-we...@googlegroups.com
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:

Roger Küng

unread,
Jul 17, 2015, 8:56:28 PM7/17/15
to google-we...@googlegroups.com
Thank you, the correct setup with the help of the maven archetypes helped!
Reply all
Reply to author
Forward
0 new messages