Hi,

it's a known bug in Pax Web [1], and already fixed there :-)
Will be available with next release of Pax Web and Karaf.

regards, Achim

[1] - https://ops4j1.jira.com/browse/PAXWEB-738

2014-12-01 12:09 GMT+01:00 Frizz <[email protected]>:

> Since Karaf has Jetty included it shouldn't be too hard to make it serve
> static HTML pages. Unfortunately I haven't figured out how to do it.
>
> Does someone have a config example or something like?
>
> I tried adding this to my jetty.xml - but it didn't work (-> HTTP ERROR:
> 404)
>
> <Get name="handler">
>         <Call name="addHandler">
>             <Arg>
>                 <New
> class="org.eclipse.jetty.servlet.ServletContextHandler">
>                     <Set name="contextPath">/app</Set>
>                     <Set name="resourceBase">/home/frizz/html-example/
>                     </Set>
>                     <Call name="addServlet">
>                         <Arg>org.eclipse.jetty.servlet.DefaultServlet</Arg>
>                         <Arg>/</Arg>
>                     </Call>
>                 </New>
>             </Arg>
>         </Call>
>     </Get>
>
> cheers,
> Frizz
>



-- 

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

Reply via email to