Re: Securing page with Tapestry

2013-08-09 Thread Will N.
Hi, this is what i got when i follow the instructions in the mentioned tutorial. 2013-08-09 11:57:05.504:WARN::failed pms: java.lang.IllegalArgumentException: Contribution com.example.pms.services.PmsModule.contributeWebSecurityManager(Configuration, Session) (at PmsModule.java:193) is for

Re: Securing page with Tapestry

2013-08-09 Thread D.R.
Hi Will, provide some code pls. Is this the full stacktrace? Do you see the service definition in the startup log, like this? [INFO] tapestry5.TapestryFilter Startup status: Services: ... WebSecurityManager: DEFINED In addition i had to exclude t5-ioc as the versions

Re: Securing page with Tapestry

2013-08-09 Thread Will N.
Hi David, actually, i do not come so far because the error occurs while the application is starting. So It does not get to the point where the services are printed. [INFO] ioc.RegistryBuilder Adding module definition for class org.apache.tapestry5.ioc.services.TapestryIOCModule [INFO]

Re: Securing page with Tapestry

2013-08-09 Thread D.R.
Hi Will, seems that the tapestry-security is not in your classpath. Make sure that you see: ... ProjectClassLoader: entry=/home/ASDF/.m2/repository/org/tynamo/tapestry-security/0.5.1/tapestry-security-0.5.1.jar ... and: ... [INFO] ioc.RegistryBuilder Adding module definition for class

Re: Securing page with Tapestry (Solved)

2013-08-08 Thread Will N.
Hi, there is an error in the Tutorial (http://tapestryjava.blogspot.co.uk/search/label/security), which is the wrong name of the constructor of the RequiresLoginFilter class. It musst be public *RequiresLoginFilter*(PageRenderLinkSource renderLinkSource, ComponentSource

Re: Securing page with Tapestry

2013-08-07 Thread D.R.
Hi, i also want to suggest tynamo tapestry-security. As a quickstart is missing, i recommend this post: http://comments.gmane.org/gmane.comp.java.tynamo.user/287 With the instructions given there, you can quickly setup tapestry-security and use this as a starting point. With kind regards

Re: Securing page with Tapestry

2013-08-07 Thread Willy Browne
)         {             session.setAttribute(AUTH_TOKEN, null);             session.invalidate();         } } } De : Taha Hafeez Siddiqi tawus.tapes...@gmail.com À : Tapestry users users@tapestry.apache.org Envoyé le : Mardi 6 août 2013 14h41 Objet : Re: Securing page

Re: Securing page with Tapestry

2013-08-07 Thread D.R.
(); } } } De : Taha Hafeez Siddiqi tawus.tapes...@gmail.com À : Tapestry users users@tapestry.apache.org Envoyé le : Mardi 6 août 2013 14h41 Objet : Re: Securing page with Tapestry Are you defining your own ComponentRequestFilter interface? As you have included the code for that I am

Re: Securing page with Tapestry

2013-08-07 Thread Will N.
(AUTH_TOKEN, null); session.invalidate(); } } } De : Taha Hafeez Siddiqi tawus.tapes...@gmail.com À : Tapestry users users@tapestry.apache.org Envoyé le : Mardi 6 août 2013 14h41 Objet : Re: Securing page with Tapestry Are you defining

Re: Securing page with Tapestry

2013-08-07 Thread D.R.
); session.invalidate(); } } } De : Taha Hafeez Siddiqi tawus.tapes...@gmail.com À : Tapestry users users@tapestry.apache.org Envoyé le : Mardi 6 août 2013 14h41 Objet : Re: Securing page with Tapestry Are you defining your own ComponentRequestFilter

Securing page with Tapestry

2013-08-06 Thread Will N.
Hi, I am trying secure some pages of my application as shown in this tutorial. http://tapestryjava.blogspot.co.uk/search/label/security But I am having following error message when I start the application. Since the RequiresLoginFilte class implements the ComponentRequestFilter interface, I am

Re: Securing page with Tapestry

2013-08-06 Thread Thiago H de Paula Figueiredo
On Tue, 06 Aug 2013 05:10:37 -0300, Will N. llcool_wil...@yahoo.fr wrote: Hi, Hi! I am trying secure some pages of my application as shown in this tutorial. http://tapestryjava.blogspot.co.uk/search/label/security But I am having following error message when I start the application. Since

Re: Securing page with Tapestry

2013-08-06 Thread Will N.
Am 06.08.2013 13:25, schrieb Thiago H de Paula Figueiredo: On Tue, 06 Aug 2013 05:10:37 -0300, Will N. llcool_wil...@yahoo.fr wrote: Hi, Hi! I am trying secure some pages of my application as shown in this tutorial. http://tapestryjava.blogspot.co.uk/search/label/security But I am having

Re: Securing page with Tapestry

2013-08-06 Thread Thiago H de Paula Figueiredo
I'm sorry, I should have asked for your ComponentRequestFilter implementation source too. ;) On Tue, 06 Aug 2013 08:31:15 -0300, Will N. llcool_wil...@yahoo.fr wrote: Am 06.08.2013 13:25, schrieb Thiago H de Paula Figueiredo: On Tue, 06 Aug 2013 05:10:37 -0300, Will N. llcool_wil...@yahoo.fr

Re: Securing page with Tapestry

2013-08-06 Thread Will N.
Am 06.08.2013 14:13, schrieb Thiago H de Paula Figueiredo: I'm sorry, I should have asked for your ComponentRequestFilter implementation source too. ;) On Tue, 06 Aug 2013 08:31:15 -0300, Will N. llcool_wil...@yahoo.fr wrote: Am 06.08.2013 13:25, schrieb Thiago H de Paula Figueiredo: On

Re: Securing page with Tapestry

2013-08-06 Thread Taha Hafeez Siddiqi
Are you defining your own ComponentRequestFilter interface? As you have included the code for that I am assuming you have. You have to implement Tapestry's ComponentRequestFilter, not your own as you can't contribute to the RequestHandler any other implementation. regards Taha On 06-Aug-2013,

Re: Securing page with Tapestry

2013-08-06 Thread Lenny Primak
Wy don't you use the wonderful tynamo tapestry-security library. It works great out of the box and easy to integrate. On Aug 6, 2013, at 3:10 AM, Will N. llcool_wil...@yahoo.fr wrote: Hi, I am trying secure some pages of my application as shown in this tutorial.