5 Replies Latest reply on Sep 16, 2002 2:17 PM by Péter Miklós

    Creating HttpContext using jetty-web.xml, is it possible?

    Péter Miklós Newbie

      hi,

      I'd like to have a http context that refers to an external directory to my .war.
      I can do it by configuring Jetty in jboss admin, and I read the same effect can be reached by hacking jetty-plugin.sar/META-INF/jboss-service.xml and put some xml lines into the Configure element that calls addContext(), but it would be nice that my web application could set everything it needs and no extra hacks would have to be made by the deployer.

      So I'm trying to write a jetty-web.xml with little success because I don't exactly know what the class attribute means in the Configure element. I tried this:


      /updates/*
      /tmp/
      TRUE



      but an exception is thrown when deploying (IllegalArgumentException: not of type class org.mortbay.jetty.Server)

      How can I access Jetty server and force to add new http context? Is there any way to do this that affects my web application only?

      Regards
      -peter