Re: [jetty-user] how do I enable put and delete for static content?
Jesse McConnell <[email protected]> Tue, 6 Sep 2011 07:53:11 -0500
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <CAPHPUs+1VBP-p1FttQPVs7-7T4ZBM5XC-fxZWA0NT=fEaiLshQ@mail.gmail.com> |
first off, jetty 7.5.0 and 8.0.0 have both been released so if your just getting started it make no sense to start back in the jetty6 days. second, we don't support put and delete on the base resource handler, but you can write your own handler to do these things without too much trouble and if you wanted to contribute that back to the project your more then welcome to :) barring that, if you would like to open an issue for an enhancement, please do so in bugs.eclipse.org for jetty 7 and up. You can open one in jira.codehaus.org but I'll tell you now that the chances of our adding new behavior to jetty6 is remote at best. cheers, jesse -- jesse mcconnell [email protected] On Tue, Sep 6, 2011 at 07:39, Richard Murray <[email protected]> wrote: > 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. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email