>>>>> Steinar Bang <[email protected]>: >>>>> Grzegorz Grzybek <[email protected]>: >> With Pax Web Jetty feature comes default jetty.xml which contains this for >> example: [snip!]
> Here is the stuff I added to jetty.xml: > > https://gist.github.com/steinarb/8eaf57dc9fb37b778e2ea9381124f099#file-jetty-xml-L134 > Then I enabled the config with > > https://gist.github.com/steinarb/6784d5659ed1ef6f90d83146556cf349#file-org-ops4j-pax-web-cfg-L27 ChatGPT tells me that it is using org.ops4j.pax.web.config.file at all that causes the OSGi web whiteboard to be disabled, and it tells me that there is nothing I could but into jetty.xml to enable the OSGi web whiteboard. ChatGPT recommends I write a servlet to serve files from a directory. Seems a bit excessive...? I was hoping to be able to serve a directory at the same time as running the OSGi web whiteboard, without requiring any code to do so. If not I guess I could create a OSGi web whiteboard component that derives from ResourceServlet, is fixed to the /pictures context path and uses a karaf configuration to set the local path on disk to serve up? That component doesn't have to be tied into anything else.
