|
|
|
|
|
Re: Apache httpd problem [message #517361 is a reply to message #517350] |
Sat, 27 February 2010 03:38 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Gustavo,
it looks like your application is based on RAP 1.2. Can you try it with
RAP 1.3M5 or CVS HEAD?
Best,
Ivan
On 2/27/2010 5:46 AM, Gustavo wrote:
> Hi Rüdiger
> (Sorry for the duplicated message before)
>
> I have observed the following:
>
> The first request to the branding servlet looks like this when I
> access through Apache:
>
> http://mydomain.org/home ;jsessionid=1AE9F6FA1EA04A9F913F0ED125053CA4?nocache=1267240 977790&1117249428=591%2C14&1209758426=582%2C14&5 63911256=1278%2C62&
>
> startup=view&uiRoot=w1&w1.bounds.height=274&w1.b ounds.width=1278&w4t_ajaxEnabled=true&w4t_height=274 &w4t_scriptEnabled=true&w4t_survey=true&w4t_widt h=1278
>
>
> and directly through Tomcat:
>
> http://localhost:8080/myservlet/home?nocache=1267240870224&a mp;1117249428=591%2C14&1209758426=582%2C14&563911256 =1278%2C62&
>
> startup=view&uiRoot=w1&w1.bounds.height=274&w1.b ounds.width=1278&w4t_ajaxEnabled=true&w4t_height=274 &w4t_scriptEnabled=true&w4t_survey=true&w4t_widt h=1278
>
>
> and using Firebug the response from the first request is:
>
> At the first time:
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "0"
> );qx.theme.manager.Meta.getInstance().setTheme(
> org.eclipse.swt.theme.Custom_1
> );org.eclipse.swt.Request.getInstance().setTimeoutPage(
> "<html><head><title>Session timed out</title></head><body><p>The
> server session timed out.</p><p>Please click <a {HREF_URL}>here</a> to
> restart the session.</p></body></html>" );....
>
> At the second time after two F5 refresh I lose my theme:
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3"
> );qx.theme.manager.Meta.getInstance().setTheme(
> org.eclipse.swt.theme.Default
> );org.eclipse.swt.Request.getInstance().setTimeoutPage(
> "<html><head><title>Session timed out</title></head><body><p>The
> server session timed out.</p><p>Please click <a {HREF_URL}>here</a> to
> restart the session.</p></body></html>" );....
>
> The difference in the response object could shed some light on the
> problem:
>
> qx.theme.manager.Meta.getInstance().setTheme(
> org.eclipse.swt.theme.Custom_1 )
>
> qx.theme.manager.Meta.getInstance().setTheme(
> org.eclipse.swt.theme.Default )
>
> In my filter I check if the sessionStore cookie is present and if the
> jsessionid is not. If true I invalidate the sessionStore cookie and
> add it to the response object, that way I dont get the "session
> expired" message.
> This strange behaviour only happens when I access the branding servlet
> trough Apache Httpd and not Tomcat.
>
> Thanks
> Gustavo
>
> Gustavo wrote:
>> Hi Rüdiger
>> I have tried that but the sessionStore cookie problem always shows a
>> "Session expired" message. I believe its related to a cookie problem,
>> any hint about it?
>>
>> Thanks!
>> Gustavo
>>
>> Rüdiger Herrmann wrote:
>>> Gustavo,
>>>
>>> I can't help you much with Apache + Tomcat. However, did you try to
>>> run the scenario without your filter?
>>>
>>> HTH
>>> Rüdiger
>>>
>>> On 21.02.2010 02:22, Gustavo wrote:
>>>> Hi all
>>>> I have a RAP application running on a tomcat server on port 8080. The
>>>> application has a branding servlet called 'home'.
>>>> There is also an Apache Httpd server running on port 80 that redirects
>>>> requests (via mod_proxy and mod_rewrite) to the RAP servlet.
>>>> My problem is the following:
>>>> After two Browser refresh (F5 in Firefox) the theme I have declared
>>>> for
>>>> the branding servlet is gone and never appears again.
>>>>
>>>> This doesnt happen if I access the servlet via Tomcat.
>>>>
>>>> Can anyone help me?
>>>>
>>>> P.S.: I had problems deleting sessionStore cookie in that httpd+tomcat
>>>> configuration. I implemented a Filter to delete the cookie.
>>>>
>>>>
>>>> Thanks.
>>>> Gustavo
|
|
|
Re: Apache httpd problem [message #517442 is a reply to message #517361] |
Sun, 28 February 2010 02:11 |
Gustavo Messages: 12 Registered: July 2009 |
Junior Member |
|
|
Hi Ivan
I switched to 1.3 M5 and it worked! Although, I had to keep my filter
and set maxAge property to -1 for jsessionid and settingstore cookies so
they get deleted at every browser refresh.
Thanks!!
Gustavo
Ivan Furnadjiev wrote:
> Hi Gustavo,
>
> it looks like your application is based on RAP 1.2. Can you try it with
> RAP 1.3M5 or CVS HEAD?
>
> Best,
> Ivan
>
> On 2/27/2010 5:46 AM, Gustavo wrote:
>> Hi Rüdiger
>> (Sorry for the duplicated message before)
>>
>> I have observed the following:
>>
>> The first request to the branding servlet looks like this when I
>> access through Apache:
>>
>> http://mydomain.org/home ;jsessionid=1AE9F6FA1EA04A9F913F0ED125053CA4?nocache=1267240 977790&1117249428=591%2C14&1209758426=582%2C14&5 63911256=1278%2C62&
>>
>> startup=view&uiRoot=w1&w1.bounds.height=274&w1.b ounds.width=1278&w4t_ajaxEnabled=true&w4t_height=274 &w4t_scriptEnabled=true&w4t_survey=true&w4t_widt h=1278
>>
>>
>> and directly through Tomcat:
>>
>> http://localhost:8080/myservlet/home?nocache=1267240870224&a mp;1117249428=591%2C14&1209758426=582%2C14&563911256 =1278%2C62&
>>
>> startup=view&uiRoot=w1&w1.bounds.height=274&w1.b ounds.width=1278&w4t_ajaxEnabled=true&w4t_height=274 &w4t_scriptEnabled=true&w4t_survey=true&w4t_widt h=1278
>>
>>
>> and using Firebug the response from the first request is:
>>
>> At the first time:
>> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
>> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "0"
>> );qx.theme.manager.Meta.getInstance().setTheme(
>> org.eclipse.swt.theme.Custom_1
>> );org.eclipse.swt.Request.getInstance().setTimeoutPage(
>> "<html><head><title>Session timed out</title></head><body><p>The
>> server session timed out.</p><p>Please click <a {HREF_URL}>here</a> to
>> restart the session.</p></body></html>" );....
>>
>> At the second time after two F5 refresh I lose my theme:
>> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
>> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "3"
>> );qx.theme.manager.Meta.getInstance().setTheme(
>> org.eclipse.swt.theme.Default
>> );org.eclipse.swt.Request.getInstance().setTimeoutPage(
>> "<html><head><title>Session timed out</title></head><body><p>The
>> server session timed out.</p><p>Please click <a {HREF_URL}>here</a> to
>> restart the session.</p></body></html>" );....
>>
>> The difference in the response object could shed some light on the
>> problem:
>>
>> qx.theme.manager.Meta.getInstance().setTheme(
>> org.eclipse.swt.theme.Custom_1 )
>>
>> qx.theme.manager.Meta.getInstance().setTheme(
>> org.eclipse.swt.theme.Default )
>>
>> In my filter I check if the sessionStore cookie is present and if the
>> jsessionid is not. If true I invalidate the sessionStore cookie and
>> add it to the response object, that way I dont get the "session
>> expired" message.
>> This strange behaviour only happens when I access the branding servlet
>> trough Apache Httpd and not Tomcat.
>>
>> Thanks
>> Gustavo
>>
>> Gustavo wrote:
>>> Hi Rüdiger
>>> I have tried that but the sessionStore cookie problem always shows a
>>> "Session expired" message. I believe its related to a cookie problem,
>>> any hint about it?
>>>
>>> Thanks!
>>> Gustavo
>>>
>>> Rüdiger Herrmann wrote:
>>>> Gustavo,
>>>>
>>>> I can't help you much with Apache + Tomcat. However, did you try to
>>>> run the scenario without your filter?
>>>>
>>>> HTH
>>>> Rüdiger
>>>>
>>>> On 21.02.2010 02:22, Gustavo wrote:
>>>>> Hi all
>>>>> I have a RAP application running on a tomcat server on port 8080. The
>>>>> application has a branding servlet called 'home'.
>>>>> There is also an Apache Httpd server running on port 80 that redirects
>>>>> requests (via mod_proxy and mod_rewrite) to the RAP servlet.
>>>>> My problem is the following:
>>>>> After two Browser refresh (F5 in Firefox) the theme I have declared
>>>>> for
>>>>> the branding servlet is gone and never appears again.
>>>>>
>>>>> This doesnt happen if I access the servlet via Tomcat.
>>>>>
>>>>> Can anyone help me?
>>>>>
>>>>> P.S.: I had problems deleting sessionStore cookie in that httpd+tomcat
>>>>> configuration. I implemented a Filter to delete the cookie.
>>>>>
>>>>>
>>>>> Thanks.
>>>>> Gustavo
|
|
|
Powered by
FUDForum. Page generated in 0.04467 seconds