Just to make sure we're talking about the same thing: do you mean
AspectJ when you say JAspect?

Did you take a look at the Shiro AspectJ sample? In the POM [1], you
can see how to use the AspectJ Maven plugin to weave your code. Just
adding the libs is not enough.

In case you're not familiar with AspectJ or not quite sure what
weaving means, maybe you'll find it easier to use Shiro with Spring or
Guice to make the annotations work. In any case, the samples should
help you getting started.

Regarding the tags, it's hard to say anything without a self-contained
sample. Can you try using the debugger to find out what's going on in
your case? Set a breakpoint on HasRoleTag.hasRole() and check if the
subject is null or the expected role is missing. Enable Shiro TRACE
logging to see if your request is properly authenticated. Something
like that...

[1] https://github.com/apache/shiro/blob/1.2.x/samples/aspectj/pom.xml


Best regards,
Harald

2013/7/28 akhan <[email protected]>:
> Hi Harald,
>
> Thanks for your response.
>
> The content within the Shiro faces tag doesn't get rendered. Though a
> request.isUserInRole("ADMIN") works fine. I am not sure what is missing.
>
> Regarding the Annotations, I just added JAspect to my libraries - Is there
> more configuration required? And can you please provide some pointers on how
> to go about the configuration.
>
> Thanks
>
>
>
>
>
> --
> View this message in context: 
> http://shiro-user.582556.n2.nabble.com/Setting-up-Annotations-and-Shiro-faces-tags-tp7578964p7578966.html
> Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to