[jetty-user] how do I enable put and delete for static content?
"Richard Murray" <[email protected]> Tue, 6 Sep 2011 13:39:37 +0100
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CE2C5C70AF459D40B73B00072DC2F746046D5336@mallard.orchard-systems.co.uk> |
Hi,
I'm trying to configure Jetty to serve static content (I'm creating a
repository for Apache Ivy - its all static content but I need to allow get,
put and delete operations)
I've installed Jetty-6.1.26, and have created a file in
JBOSS_HOME/contexts/ivy-repo.xml (which is a copy of the javadoc.xml
example). I've setup the file as follows:
<Configure class="org.mortbay.jetty.handler.ContextHandler">
<Set name="contextPath">/ivyrepo</Set>
<Set name="resourceBase">F:/ivy-repo/</Set>
<Call name="addHandler">
<Arg>
<New class="org.mortbay.jetty.handler.ResourceHandler"/>
</Arg>
</Call>
</Configure>
The get operations are working OK, but I get 405 errors attempting a post
Cause: java.io.IOException: PUT operation to URL
http://localhost:8080/ivyrepo/ois/serverUtils/jars/oisServerUtils-1.0.jar
failed with status code 405
: HTTP method PUT is not supported by this URL
NOTE: I also have a couple of web apps deployed that are separate from the
static content I am trying to serve, so I don't want to break any of the
existing deployments.
Can anyone help?
Apologies if this get's posted twice, my original message got bounced back
from my gmail account.
Thanks.