[ajug-members] REST, Tomcat and Apache
Jack J. Coleman
jackjc at bellsouth.net
Mon Feb 6 13:04:07 EST 2006
Now that Bill has opened the door to discussions of REST based Web
Services...
I have implemented a REST based web service (with JSP and JSTL) for
administering account information as follows:
Retrieve Account: GET request method
Update Account: POST request method
Delete Account: DELETE request method
Add Account: PUT request method
I originally wrote it using Tomcat standalone, and everything was
working great.
I then decided to integrate Apache and Tomcat using the mod_jk
connector. When I got that working, the PUT method to add new accounts
stopped working. Once I started going through Apache, I would get a 405
(method not allowed) error message when trying to do a PUT. Apache has
some documentation about implementing a PUT, but it is CGI based.
Has anyone ever set up Apache and Tomcat like this before, or does
anyone have any suggestions on how to set up Apache to forward PUT
requests to the correct JSP/Servlet?
Google has not been much help (or maybe I just haven't searched hard
enough).
Jack Coleman
Bill Siggelkow wrote:
> If you read the Wikipedia page for Web 2.0 you'll see that it's a
> great deal more than just AJAX. It's also stuff liked REST-based
> services (resource-driven services). Of course, these services could
> return information in an RSS/RDF (Dublin Core) format -- but that's
> just one example. The output could be described by a non-SOAP-based
> WSDL.
>
> My point? There's more to Web 2.0 than AJAX that we can discuss!
>
> -Bill Siggelkow
>
> On Feb 5, 2006, at 12:24 PM, Burr Sutter wrote:
More information about the ajug-members
mailing list