File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes NoSuchMethodException: org.springframework.security.taglibs.authz.AuthenticationTag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "NoSuchMethodException: org.springframework.security.taglibs.authz.AuthenticationTag" Watch "NoSuchMethodException: org.springframework.security.taglibs.authz.AuthenticationTag" New topic
Author

NoSuchMethodException: org.springframework.security.taglibs.authz.AuthenticationTag

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 232
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: org.springframework.security.taglibs.authz.AuthenticationTag.<init>(javax.faces.view.facelets.ComponentConfig)

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



Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Does this help?

http://technology-for-human.blogspot.com/2010/12/jsf-2-with-spring-3-basics-part-1-of-2.html
http://technology-for-human.blogspot.com/2011/01/jsf-2-with-spring-3-protection-with.html

If you are using web-flow see their documentation
http://static.springsource.org/spring-webflow/docs/2.3.x/reference/html/ch13.html


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

Joined: May 21, 2008
Posts: 232
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


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoSuchMethodException: org.springframework.security.taglibs.authz.AuthenticationTag