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]<mailto:[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]<mailto:[email protected]>]
Sent: 26 November 2012 20:52
To: [email protected]<mailto:[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]<mailto:[email protected]>
http://blog.nanthrax.net
Talend - http://www.talend.com


--
Jean-Baptiste Onofré
[email protected]<mailto:[email protected]>
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to