File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes NoSuchMethodException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "NoSuchMethodException:" Watch "NoSuchMethodException:" New topic


Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 255
Hi All,
how do you get hold of spring security 3 tag within a jsf2 facelet page.
I currently call <sec:authentication property="principal.username" /> but keep
getting the following:-
Caused by: java.lang.NoSuchMethodException:<init>(javax.faces.view.facelets.ComponentConfig)

I created the following within springsecurity.taglib.xml, not sure if this is the correct approach.

Bill Gorder

Joined: Mar 07, 2010
Posts: 1682

Does this help?

If you are using web-flow see their documentation

[How To Ask Questions][Read before you PM me]
Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 255
Hi Bill,
thanks for the reply. I have managed to integrate spring security 3 into my jsf application, but I'm not sure how to get hold of the username that is logged in using the spring authenticationtag
I checked out the following, but this is for aurhorize

It is sorta covered in the JavaRanch Style Guide.
subject: NoSuchMethodException:
It's not a secret anymore!