The only way I know of to disable a method like PUT, in jetty, is to
specify it in a security constraint in your web.xml

Do you have something like this in your web.xml?
  <security-constraint>
    <web-resource-collection>
      <web-resource-name>NoPut</web-resource-name>
      <url-pattern>/*</url-pattern>
      <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    </auth-constraint>
  </security-constraint>


--
Joakim Erdfelt <[email protected]>
www.webtide.com
Developer advice, services and support
from the Jetty & CometD experts.



On Sat, Aug 11, 2012 at 10:08 AM, Thornton Rose <[email protected]>wrote:

> I'm developing a REST app with Jersey on Jetty 6. I get HTTP error 405 for 
> PUT.
> How do I enable HTTP PUT in the Jetty config?
> _______________________________________________
> jetty-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/jetty-users
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to