tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: TomEE2 JAXRS Security Context
Date Fri, 16 Jan 2015 11:39:40 GMT
Should work for sure, anyway openejb-jar.xml is ignored cause your
application is DeviceService and not jaxrs-application


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-16 12:32 GMT+01:00 SKR <kras@cosma-consult.de>:
> I tried:
> @InInterceptors (interceptors =
> "org.apache.cxf.interceptor.security.SecureAnnotationsInterceptor")
> in my service.
>
> No effect. The interceptor was not loaded or invoked. I think using
> openejb-jar.xml is better. I'm using now:
>
> <openejb-jar xmlns="http://www.openejb.org/openejb-jar/1.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://www.openejb.org/openejb-jar/1.1">
>     <pojo-deployment  class-name="jaxrs-application">
>         <properties>
>             cxf.jaxrs.providers =
> com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider
>             cxf.jaxrs.in-interceptors =
> org.apache.cxf.interceptor.security.SecureAnnotationsInterceptor
>         </properties>
>     </pojo-deployment>
> </openejb-jar>
>
> here also... no effect! The interceptor gets not invoked.
>
> I noticed this problem already some days ago as I tried to add the
> org.apache.cxf.interceptor.LoggingInInterceptor to my service. This failed
> also.
>
> For any reason CXF does not load interceptors via annotations or this
> property. Is my openejb-jar.xml correct?
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE2-JAXRS-Security-Context-tp4672828p4673411.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Mime
View raw message