Re: web session not available to current thread

2018-12-14 Thread Maxim Solodovnik
Please contact Tomcat user@ mailing list for some reason remoteAddr is empty :( You still can use https://ci.apache.org/projects/wicket/apidocs/8.x/org/apache/wicket/protocol/http/ClientProperties.html#getRemoteAddress-- On Wed, 12 Dec 2018 at 07:53, Arunachalam Sibisakkaravarthi < arunacha...@mc

Re: web session not available to current thread

2018-12-11 Thread Arunachalam Sibisakkaravarthi
Hi Maxim, No, I did not use any frontend proxy since it is development environment. *Thanks And RegardsSibi.ArunachalammCruncher* On Mon, Dec 10, 2018 at 5:48 PM Maxim Solodovnik wrote: > I was asking regarding frontend proxy like Apache or nginx > I would read Tomcat related articles regard

Re: web session not available to current thread

2018-12-10 Thread Bas Gooren
Hi! You need to configure the XForwardedRequestWrapperFactory, see https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/XForwardedRequestWrapperFactory.java You can call (in your application’s init() method): getFilterFactoryManager().ad

Re: web session not available to current thread

2018-12-10 Thread Maxim Solodovnik
I was asking regarding frontend proxy like Apache or nginx I would read Tomcat related articles regarding this On Mon, 10 Dec 2018 at 16:08, Arunachalam Sibisakkaravarthi < arunacha...@mcruncher.com> wrote: > We use AOP auto proxy.Yes, the problem occurs in the Aspect class. > > We have configure

Re: web session not available to current thread

2018-12-10 Thread Arunachalam Sibisakkaravarthi
We use AOP auto proxy.Yes, the problem occurs in the Aspect class. We have configured this How do I resolve this? *Thanks And RegardsSibi.ArunachalammCruncher* On Mon, Dec 10, 2018 at 4:42 PM Maxim Solodovnik wrote: > Are you using frontend proxy? > > On Mon, 10 Dec 2018 at 15:39, Arunach

Re: web session not available to current thread

2018-12-10 Thread Maxim Solodovnik
Are you using frontend proxy? On Mon, 10 Dec 2018 at 15:39, Arunachalam Sibisakkaravarthi < arunacha...@mcruncher.com> wrote: > But, It didn't give remote address when run the app in Tomcat, but in Jetty > It gives correct remote address > > RequestCycle requestCycle = RequestCycle.get(); > Servl

Re: web session not available to current thread

2018-12-10 Thread Arunachalam Sibisakkaravarthi
But, It didn't give remote address when run the app in Tomcat, but in Jetty It gives correct remote address RequestCycle requestCycle = RequestCycle.get(); ServletRequest containerRequest = (ServletRequest) requestCycle.getRequest().getContainerRequest(); return containerRequest.getRemoteAddr();

Re: web session not available to current thread

2018-12-06 Thread Arunachalam Sibisakkaravarthi
It woks. Thank you. *Thanks And RegardsSibi.ArunachalammCruncher* On Thu, Dec 6, 2018 at 3:18 PM Ernesto Reinaldo Barreiro wrote: > Hi, > > See > > http://wicketinaction.com/2014/07/working-with-background-jobs/ > https://github.com/reiern70/antilia-bits/tree/master/bgprocess > > > > On Thu,

Re: web session not available to current thread

2018-12-05 Thread Ernesto Reinaldo Barreiro
Hi, See http://wicketinaction.com/2014/07/working-with-background-jobs/ https://github.com/reiern70/antilia-bits/tree/master/bgprocess On Thu, Dec 6, 2018 at 7:35 AM Arunachalam Sibisakkaravarthi < arunacha...@mcruncher.com> wrote: > Hi guys, > I am facing problem when try to get current sess

web session not available to current thread

2018-12-05 Thread Arunachalam Sibisakkaravarthi
Hi guys, I am facing problem when try to get current session in separate thread. Have a button in a page to import contacts. When user clicks the button, it invoke Spring Async method in service class. The method saves the contacts. Inside the method I have used Sessiong.get() to get username. But