Re: Struts2 login action class seems to be reused

2018-03-07 Thread Prasanth Pasala
Thanks for looking into this Yasser.  In the current setup we have, we don't have a cluster, it is the only server handling all requests. If it is a session crossover we would display another user information without making a login entry. In the cases where we had issue the code recognized that

Re: Struts2 login action class seems to be reused

2018-03-07 Thread Yasser Zamani
On 3/7/2018 7:34 PM, Prasanth wrote: > I can't say that 2 percent of users were able to get in without > username/password. As I have ran the JMeter tests a lot of times (each run > with 100 users). Only during one of those runs of JMeter I > had 2 requests get users home page when

Re: Struts2 login action class seems to be reused

2018-03-07 Thread Prasanth
/context1 is used just for directing users to the right application (or context). Session is really maintained by /context2. Users can login directly in /context2 or they can input username and password in /context1 and they will be forwarded to the right context on of which is /context2. So

Re: Struts2 login action class seems to be reused

2018-03-07 Thread Yasser Zamani
On 3/6/2018 9:42 PM, Prasanth Pasala wrote: > In StrutsPrepareAndExecuteFilter below is the line that gets the action > mapping, since the forceLookup is set to true the PrepareOperations class > might be creating it again. > ActionMapping mapping = prepare.findActionMapping(request, response,

Re: Struts2 login action class seems to be reused

2018-03-07 Thread Yasser Zamani
On 3/5/2018 7:48 PM, Prasanth wrote: > For replicating the issue I was directly accessing /context2/Login.action. So > /context1 was not used in testing. Please let me repeat what I understood; When some users are signed in into /context1, you browses /context2/Login.action via JMeter empty

Re: Struts2 login action class seems to be reused

2018-03-07 Thread Prasanth Pasala
I am not defining any default action. I would get the below exception if I set the ActionMapping to null. For some reason the object doesn't go away, if I set it to null. After setting it to null using request.setAttribute("struts.actionMapping", null);    I can get it using getAttribute. The

Re: Struts2 login action class seems to be reused

2018-03-07 Thread Prasanth Pasala
I am not using Spring. Using Struts1, Struts 2 (2.3.34), tiles 2.0.4 On 03/05/2018 11:57 AM, Adam Brin wrote: > What are the annotations on the class? Is it possible that you're using > Spring, and not declaring "prototype" scope. eg: > > @Scope("prototype") > > On Mon, Mar 5, 2018 at 10:49 AM,