Hi, FYI, the error java.lang.ClassNotFoundException: org.apache.karaf.jaas.boot.principal.RolePrincipal not found by org.apache.cxf.cxf-rt-transports-http
is caused by CXF not set correct context class loader for rest service, it was fixed very recently in CXF[1], with this fix, the Principal class import correctly defer download to your customer bundle, but not from cxf-rt-transports-http bundle. And about org.eclipse.jetty.plus.jaas.JAASLoginService, currently it's configuration is globally so it apply for all context path, but my gut feeling is that jetty configuration should be able to provide a way to specify a context path, which means jetty JAASLoginService can only apply for some certain context path, not really sure though. [1]http://svn.apache.org/viewvc?view=revision&revision=r1448177 ------------- Freeman(Yue) Fang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://fusesource.com | http://www.redhat.com/ Twitter: freemanfang Blog: http://freemanfang.blogspot.com http://blog.sina.com.cn/u/1473905042 weibo: @Freeman小屋 On 2013-2-22, at 上午3:29, siv vasan wrote: > Do you mean I should use JAASLoginInterceptor even for my web application ? > Currently I am using JAASLoginInterceptor for rest application only. > > One thing I don't understand is why is the JAASLoginService invoked even for > rest application ? This is getting invoked even when I add 2 different karaf > modules and JAASLoginService mapps to one of the realm only. This sound like > a bug to me. What do you think is happening ? > > <Call name="addBean"> > <Arg> > <New class="org.eclipse.jetty.plus.jaas.JAASLoginService"> > <Set name="name">LDAP</Set> > <Set name="loginModuleName">LDAP</Set> > <Set name="roleClassNames"> > <Array type="java.lang.String"> > > <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal</Item> > </Array> > </Set> > </New> > </Arg> > </Call> > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Use-same-JAAS-module-for-web-app-and-cxf-rest-application-tp4027838p4027848.html > Sent from the Karaf - User mailing list archive at Nabble.com.
