autore_connect after connection_timeout using c3p0

2013-10-13 Thread Will N.
Hi, i have some trouble keeping my application connected to the database, since de default mysql wait_timeout value is 28800. I have read that I can solve the roblem by using c3p0 connection pooling. I couldn't find the right configuration since the connection is till aborted after the timeou

move tml and properties files into coresponding packges where the java files are

2013-09-10 Thread Will N.
I would like to move the .tml and .properties files into the same packages as the coresponding .java files. Right now the java files are in main/java and the resources in main.resources. Since I have a lot of pages, it is sometimes not so funny looking for a tml file. I guess I would have to tel

Re: How to run my application on a server

2013-09-05 Thread Will N.
Hi Ben, thanks for the reply. Actually, i already have a server where i can and will upload my app to. The question is more how to do it(step by step) or what needs to be done to make it work on a server. Is Jetty recommandable for the production mode or do I have to switch to Tomcat. A MySQL

How to run my application on a server

2013-09-05 Thread Will N.
Hi, I have been working on my application for a few months now and I //would like to take it to the server soon. What is the easiest way to do this. I use eclipse Galileo as env. My App runs local on a jetty Server and I also needs a MySQL Database. I guess I should change the mode from devel

Re: custom logout+logout confirmation page with Tynamo

2013-08-21 Thread Will N.
thanks! Am 20.08.2013 17:46, schrieb Kalle Korhonen: On Tue, Aug 20, 2013 at 5:43 AM, Will N. wrote: since there is no such a configuration(as far as i know) like configuration.override(**SecuritySymbols.SUCCESS_URL, "***"); in the case of a succesfull logout, i figured out t

custom logout+logout confirmation page with Tynamo

2013-08-20 Thread Will N.
Hi, since there is no such a configuration(as far as i know) like configuration.override(SecuritySymbols.SUCCESS_URL, "***"); in the case of a succesfull logout, i figured out that i must use a custom logout to achieve that. example: my custom logout and then add a Object onActi

Apache Shiro

2013-08-11 Thread Will N.
Hi, i have some issues using shiro in my tapestry application. So far login and logout work almost perfect. I have a custom logout link which is an image but one logout text is still i guess automatically generated, so i have my image and the "logout" text(link). how can i avoid that? The secon

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] ioc.Re

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 ser

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 component

Re: Securing page with Tapestry

2013-08-07 Thread Will N.
pestry 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 0

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. wrote: Am 06.08.2013 13:25, schrieb Thiago H de Paula Figueiredo: On Tue, 06 Aug 2013

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. 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

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: nullpointer exception

2013-08-02 Thread Will N.
Proble solved! There was an error in my getter method for the concerned entity! Am 02.08.2013 09:06, schrieb Will N.: Hi, i have some issues trying to save an Entitie in the database after filling the coresponding form. In fact i figured out that the Entity(Object) is Null after a press the

nullpointer exception

2013-08-02 Thread Will N.
Hi, i have some issues trying to save an Entitie in the database after filling the coresponding form. In fact i figured out that the Entity(Object) is Null after a press the save button of the form. This is confusing because I do not have this effect with other entities and forms of my applica

Error in GridCollapse

2013-06-24 Thread Will N.
Hi, I have some problems using the GridCollapse class(http://tapestry-stitch.uklance.cloudbees.net/gridcollapsedemo) of Lance in my application. I get an error message. note that GridCollapse.java line 119 is: Node lastChild= topChildren.get(topChildren.size() - 1); thanks * ocation

user rolle, tapestry +hibernate

2013-06-24 Thread Will N.
Hi, i am working on a project with tapestry and hibernate. My Application already has a login but I would like to give different users different roles so that some user can not acces some pages() or perform some queries to the database. can someone tell me a good way to do that? thanks Will