javajettyapache-karafpax-web

How to change Apache Karaf / Jetty / Pax-Web default path from / to your-custom-path/?


I have a Karaf installation with some .war-files in it. Each of them is available via hostname:port/individual-context-path.

How can i redirect the hostname:port/ call, which gives a 404 actually - to a given context-path?

Which files defines the jetty / karaf "root-path"?


Solution

  • You can't re-direct or route a certain path to another, but you can register your application to be registered at Web-ContextPath "/". oth all servlets registered with any HttpService/WecContainer or registerd as Servlet Service (OSGi) will be registered with the "/" context path, all extras are aliases on those.