I guess we wire it for EJB but not the whole webapp. Can you try it in an EJB?


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


2014-12-03 15:04 GMT+01:00 gfolch <[email protected]>:
> My Jacc provider jar is in tomee/lib
>
> Also I can see this log entry in Catalina log:
>
> Dec 03, 2014 2:59:43 PM org.apache.openejb.util.OptionsLog info
> INFO: Using
> 'javax.security.jacc.policy.provider=com.example.jacc.YourPolicy'
>
> So I guess TomEE is using my jacc provider.
> However when I do a request to my webApp test application,  trying to get
> the PolicyContext, it fails.
>
> This line:
> Subject s = (Subject)
> PolicyContext.getContext("javax.security.auth.Subject.container");
>
> is throwing an exception:
> java.lang.IllegalArgumentException: No handler can be found for the key
> 'javax.security.auth.Subject.container'
>
> What I'm missing?
>
>
>
> --
> View this message in context: 
> http://tomee-openejb.979440.n4.nabble.com/How-can-I-enable-JACC-in-TomEE-tp4673113p4673115.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to