user1418493
user1418493

Reputation: 1

JRuby/tomcat 404 errors in rseponse to ajax GET

This problem appears specific to routing for JRuby ajax requests. My page sends an ajax GET which works fine in rails development mode. When moved to tomcat via warbler, the request is generated correctly, but tomcat responds with a 404 error.

In other words, the line in routes.rb get '/sector/method' is sufficient that http://localhost:3000/sector/method is processed by Webrick, but if I change the port to 8080 (tomcat) I get a HTTP status 404 The requested resource (/sector/method) is not available.

Apparently tomcat needs to be told it is OK to process the GET even though there is no corresponding file to be found. Right? Fixes?

Thanks.

Upvotes: 0

Views: 266

Answers (1)

MiGro
MiGro

Reputation: 1511

Are you sure your request point to correct address? if application works, there is no way that GETs does not. Please try to put the request directly into your browser and check...

Upvotes: 1

Related Questions