Alex, it is your right to require free beer from me :) I changed the version of tapestry-spring-security to 2.1.0 and found a login page.
Thank you very much! On Wed, Oct 13, 2010 at 11:32 PM, Alex Kotchnev <[email protected]> wrote: > Andrey, > I think you might have some versioning issues that you might want to try > to address first: > > 1. From the TSS (Tapestry Spring Security) home page, it indicates that you > need TSS 2.1.0 to work w/ T 5.1.05 . You have TSS 2.0.0 with T5.1.0.5 > (2009-07-16: Release *2.1.0* is available. Upgraded to Tapestry 5.1.0.5.) > > 2. You're using Spring-DAO 3.0 . The general support for Spring Security 3.0 > comes in the snapshot version of TSS . I think I recall somebody mentioning > that using Spring 3.0 is fine w/ TSS 2.x; as TSS 2.x brings with itself > Spring Security 2.x as a dependency. However, I really can't vouch for that > > 3. I did see something weird where you had declared a dependency on Spring > 2.5 from a netbeans repository - I'm not sure how the app would work with > that. > > Anyway, try using TSS 2.1 w/ Spring 2.5 and that might clear things up. Or > TSS 3.0-SNAPSHOT w/ Spring 3. > > Regards, > > Alex K > > > > On Wed, Oct 13, 2010 at 1:43 PM, Andrey Gladilin > <[email protected]>wrote: > >> Thank you Alex for your answer. >> Attached is zip archive of project. >> >> On Wed, Oct 13, 2010 at 3:48 PM, Alex Kotchnev <[email protected]> wrote: >> > Andrey, >> > you might want to try starting your application in debug mode and set a >> > couple of breakpoints inside your UserDetailsService implementation and >> see >> > if it's being called when you try to navigate to that page. >> > >> > It seems that if added the configurations as described on that page >> your >> > app compiles successfully, you have all the dependencies where they need >> to >> > be (e.g. spring security is available, etc). >> > >> > It might be useful if you post some code to show what you did. >> > >> > Regards, >> > >> > Alex K >> > >> > On Wed, Oct 13, 2010 at 4:45 AM, Andrey Gladilin >> > <[email protected]>wrote: >> > >> >> Hello, >> >> >> >> I can not succeed in setting up the tapestry-spring-security. >> >> I created a default project from maven archetype, line this: >> >> http://tapestry.apache.org/tapestry5.1/quickstart/. >> >> I followed instructions from >> >> http://www.localhost.nu/java/tapestry-spring-security/conf.html >> >> and used some code from sample application >> >> >> >> >> http://www.localhost.nu/svn/public/tapestry-spring-security-sample/src/main/java/nu/localhost/tapestry5/springsecuritytest/ >> >> >> >> I create a page Dashboard.java (also .tml), code like this: >> >> >> >> @Secured("ROLE_ADMIN") >> >> public class Dashboard >> >> { >> >> } >> >> >> >> I spent much time, but I still find the dashboard page without any >> >> restrictions or sign in requires. >> >> >> >> And I am absolutely new to Tapestry and Java. Probably I missed >> >> something obvious. >> >> >> >> Thanks in advance. >> >> >> >> >> >> >> >> -- >> >> С уважением, Гладилин Андрей. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> >> >> > >> >> >> >> -- >> С уважением, Гладилин Андрей. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > -- С уважением, Гладилин Андрей. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
