Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Apache httpd problem
Apache httpd problem [message #515799] Sun, 21 February 2010 01:22 Go to next message
Gustavo is currently offline GustavoFriend
Messages: 12
Registered: July 2009
Junior Member
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 #515978 is a reply to message #515799] Mon, 22 February 2010 11:41 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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 #517348 is a reply to message #515978] Sat, 27 February 2010 03:08 Go to previous messageGo to next message
Gustavo is currently offline GustavoFriend
Messages: 12
Registered: July 2009
Junior Member
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 #517349 is a reply to message #515978] Sat, 27 February 2010 03:13 Go to previous messageGo to next message
Gustavo is currently offline GustavoFriend
Messages: 12
Registered: July 2009
Junior Member
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 #517350 is a reply to message #517349] Sat, 27 February 2010 03:46 Go to previous messageGo to next message
Gustavo is currently offline GustavoFriend
Messages: 12
Registered: July 2009
Junior Member
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 #517361 is a reply to message #517350] Sat, 27 February 2010 03:38 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
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 Go to previous message
Gustavo is currently offline GustavoFriend
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
Previous Topic:View PDF, CHM files within a RAP Application
Next Topic:Urgent: How to use IApplication support???
Goto Forum:
  


Current Time: Thu Apr 18 16:20:23 GMT 2024

Powered by FUDForum. Page generated in 0.02120 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top