Hi Oliver,

I'm not sure I follow. The servlet context / Web-ApplicationContext
configured in the Manifest is not connected to the jetty.xml. Those are
different things. With the jetty.xml you are able to do a finer grained
configuration compared to the configuration available through the
config-admin service.
So for example if you need to add another ServletContext Handler you need
to "get" the list of Handlers from the jetty server first, the sample of my
blog post is just about adding a DefaultServlet publishing static content.

regards, Achim


2013/1/27 Oliver Wulff <[email protected]>

>  Hi Achim
>
> What about the reference to the resource:
> <Set name="resourceBase">/path/to/your/share</Set>
>
> Is this really required in karaf? I've configured the servlet context in
> the manifest file thus the link between karaf jetty.xml and the war bundle
> could be created.
>
> Thanks
> Oli
>
>
>   ------------------------------
> *From:* Achim Nierbeck [[email protected]]
> *Sent:* 26 January 2013 18:32
>
> *To:* [email protected]
> *Subject:* Re: Configure authenticator for jetty in karaf
>
>   Hi, I already wrote a little blog about it.
> You can find it at [1]
>
> Regards, Achim
>
> [1] -
> http://notizblog.nierbeck.de/2011/05/adding-additional-servletcontext-in-pax-web/
>
> sent from mobile device
> Am 26.01.2013 03:31 schrieb "Jean-Baptiste Onofré" <[email protected]>:
>
>> Hi Oli,
>>
>> In fact, in etc/org.ops4j.pax.web.cfg, you can reference a etc/jetty.xml.
>>
>> In this jetty.xml, you can define your different connectors, and in your
>> webapp (WAB) you can define which connector you want to use.
>>
>> I gonna blog about that (it's on my TODO ;)).
>>
>> Regards
>> JB
>>
>> On 01/25/2013 10:28 PM, Oliver Wulff wrote:
>>
>>> Hi JB
>>>
>>> I could configure something like this in jetty.xml I assume:
>>>
>>> <Configure class="org.eclipse.jetty.**webapp.WebAppContext">
>>>    <Set name="contextPath">/**fedizhelloworld</Set>
>>>    <Get name="securityHandler">
>>>      <Set name="loginService">
>>>        <New class="org.apache.cxf.fediz.**jetty.FederationLoginService">
>>>            <Set name="name">WSFED</Set>
>>>          </New>
>>>      </Set>
>>>      <Set name="authenticator">
>>>        <New class="org.apache.cxf.fediz.**jetty.FederationAuthenticator"
>>> **>
>>>          <Set name="configFile"><**SystemProperty name="jetty.home"
>>> default="."/>/etc/fediz_**config.xml</Set>
>>>        </New>
>>>      </Set>
>>>      <Set name="checkWelcomeFiles">true<**/Set>
>>>    </Get>
>>> </Configure>
>>>
>>> But isn't it possible to configure the context related configs similar
>>> to the native jetty distribution (<jetty-home>/contexts) without having to
>>> update the core jetty.xml configuration?
>>>
>>> Thanks
>>> Oli
>>>
>>>
>>> ------
>>>
>>> Oliver Wulff
>>>
>>> Blog: http://owulff.blogspot.com
>>> Solution Architect
>>> http://coders.talend.com
>>>
>>> Talend Application Integration Division http://www.talend.com
>>>
>>> ______________________________**__________
>>> From: Jean-Baptiste Onofré [[email protected]]
>>> Sent: 26 November 2012 20:52
>>> To: [email protected]
>>> Subject: Re: Configure authenticator for jetty in karaf
>>>
>>> Hi Oli,
>>>
>>> when installing the http feature, you have access to etc/jetty.xml where
>>> you can create your custom configuration.
>>>
>>> Regards
>>> JB
>>>
>>> On 11/26/2012 08:48 PM, Oliver Wulff wrote:
>>>
>>>> Hi there
>>>>
>>>> I've built a custom authenticator for jetty thus web applications can
>>>> also support WS-Federation SSO in Karaf for authentication. The snapshot
>>>> version of the jetty module works but I'm wondering where I can
>>>> configure the jetty authenticator, loginservice etc in Karaf.
>>>>
>>>> Thanks
>>>> Oli
>>>>
>>>> ------
>>>>
>>>> Oliver Wulff
>>>>
>>>> Blog: http://owulff.blogspot.com <http://owulff.blogspot.com/>
>>>> Solution Architect
>>>> http://coders.talend.com
>>>>
>>>> <http://coders.talend.com>**Talend Application Integration Division
>>>> http://www.talend.com
>>>>
>>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [email protected]
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> [email protected]
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>


-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>

Reply via email to