Achim, My bundle is a war the uses MyFaces, PrimeFaces, database, and business logic bundles, so you options are not working for me. The Jetty documentation[1] reference the MANIFEST property "Jetty-bundleInstall" and "mostly useful for those OSGi frameworks that unpack bundles by default."
Can PAX-WEB be configured to "unpack bundles by default"? If so, how do I define the directory the war is unpacked into? Why options did not work for me: a - Does not work because the Imported-Package defined in the bundle are not used or displayed by bundle:header b - Similar to my current workflow. c - Same as failure as "a". I was able to see the files, but the classpath was missing JSF and other bundles. ** Added the following to etc/jetty.xml and exploded war in to /tmp/foo <Get name="handler"> <Call name="addHandler"> <Arg> <New class="org.eclipse.jetty.servlet.ServletContextHandler"> <Set name="contextPath">/foo</Set> <Set name="resourceBase">/tmp/foo</Set> <Call name="addServlet"> <Arg>org.eclipse.jetty.servlet.DefaultServlet</Arg> <Arg>/</Arg> </Call> </New> </Arg> </Call> </Get> Paul Spencer [1]http://www.eclipse.org/jetty/documentation/9.0.6.v20130930/framework-jetty-osgi.html#d0e15965 > On Sep 15, 2015, at 10:12 AM, Achim Nierbeck <bcanh...@googlemail.com> wrote: > > Hi, > > you have a couple of different possibilities: > > a) Use an exploded WAR in the deploy folder > b) build your bundle with maven and have karaf listening to it via > bundle:watch > c) make sure you have an extra handler configured in the jetty.xml which > serves the static content from a fileystem [1] > > regards, Achim > > [1] - http://ops4j.github.io/pax/web/SNAPSHOT/#_advanced_jetty_configuration > > > 2015-09-15 14:34 GMT+02:00 Paul Spencer <pau...@apache.org>: > (Karaf 3.0.3 and Pax Web) > I am developing webpages that are include in a bundle. My current workflow, > which seems wrong, is as follows: > > 1) Edit the web source files (.jspx,.html,.css,...) > 2) Rebuild the bundle > 3) Copy the bundle to Karaf's deploy directory > 4) Test the changes > > I know there is a better way and I am open to suggestions. > > Paul Spencer > > > > > > -- > > Apache Member > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> > > Software Architect / Project Manager / Scrum Master >