That section in webdefault.xml looks like this:
<security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
When I send a PUT, I get status code 405. I have read the PUT is disabled
by default. If that's true, how do I enable it?
On Sat, Aug 11, 2012 at 6:24 PM, Joakim Erdfelt <[email protected]> wrote:
> 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
>
>
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users