Re: tokenSession is null on redeploy app via tomcat manager

2022-08-18 Thread Greg Huber
I have done some more testing and I have not been able to determine yet what is causing it, as it only happens sometimes. I will take at a look at the interceptor code as well as the TokenHelper, and do some more testing. Thanks for taking a look. On Thu, 18 Aug 2022 at 07:53, Yasser Zamani wro

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Yasser Zamani
On 8/17/2022 10:50 PM, Greg Huber wrote: It is only when I have an active session and then redeploy with the manager app. Thanks for clarifications Greg! So I guess it's an expected behavior due to security reasons [1]. Isn't it? you might ask on Tomcat's user list. They know better. Reg

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Greg Huber
I will try the session save, but my login works and has nothing to do with struts. ...I also tried stopping tomcat and deleting the work folder (SESSIONS.ser), and restating. Everything works OK. I will read up also on redeploying tomcat. Thanks. On Wed, 17 Aug 2022 at 14:52, Yasser Zamani wr

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Greg Huber
OK, keep session, I will have a look and see if it fixes it. Thanks. On Wed, 17 Aug 2022 at 14:17, Yasser Zamani wrote: > Hi Greg, > > I remember Tomcat Manager had an option titled "keep session" when you > deploy. Have you seen/tried it? > > Regards > > On 8/14/2022 11:54 AM, Greg Huber wrote

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Greg Huber
Ever since I have been using the manager app to deploy my war (about a year). Before I did it manually on the server. If I stop and start the server it works OK. I also tried stopping tomcat, deleting the exploded war folder and then starting tomcat, it still works. It is only when I have an ac

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Yasser Zamani
No it's for a long time ago. I even don't remember exactly where was that option. I guess it was at 'undeploy' where we were able to keep sessions. @Greg could you please google "tomcat manager redeploy sessions" to see if you've configured tomcat correctly, or you haven't disabled session pe

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Lukasz Lenart
Has it started recently? Tomcat by default serializes all sessions and tries to restore them on application reload. https://serverfault.com/questions/300222/invalidate-all-sessions-at-application-reload Regards -- Ɓukasz + 48 606 323 122 http://www.lenart.org.pl/ ---

Re: tokenSession is null on redeploy app via tomcat manager

2022-08-17 Thread Yasser Zamani
Hi Greg, I remember Tomcat Manager had an option titled "keep session" when you deploy. Have you seen/tried it? Regards On 8/14/2022 11:54 AM, Greg Huber wrote: I have an issue when I redeploy my war via tomcat manager. eg If I have an active session, ie I am using my application, then I r