Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Apache httpd problem
Apache httpd problem [message #515799] Sat, 20 February 2010 20:22 Go to next message
Eclipse UserFriend
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 06:41 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 26 February 2010 22:08 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 26 February 2010 22:13 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 26 February 2010 22:46 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 26 February 2010 22:38 Go to previous messageGo to next message
Eclipse UserFriend
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] Sat, 27 February 2010 21:11 Go to previous message
Eclipse UserFriend
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: Fri Jun 13 05:40:08 EDT 2025

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

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

Back to the top