[Tomcat Integration] - Re: Session is getting merge with other session
by davewebb
Brian,
It was reported to me in October, then again today. I log the sessionId when a user logs into my app, and today I could see that the sessionId
hGbGpyqSV2CPfJKGZi0KGg**.node1
was given to one user at 1:49PM and then to another user at 4:43PM. The first user complained that at 4:45PM she was seeing "Someone else's data". It is disturbing that the duplicate Id came from the same cluster node.
I could probably run a query against the access table to see how often it is happening if that would help. However, it appears that the fix you are recommending be made in 4.2.3 already exists in another branch. After which version of JBoss AS is that fix applied?
I also read that this can happen when sessionIds are recycled, and when the session cookie is being used in the URL (such as a bookmarked page with jsessionid) that JBoss will use the sessionId passed in without creating a new one.
http://kbase.redhat.com/faq/docs/DOC-17273
Is that true and will setting this value in the Connector help?
emptySessionPath=false
Thank you for your help. Upgrading to a newer version of JBoss is acceptable if needed, but a short term fix could help buy me a little more time to manage the upgrade.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270112#4270112
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270112
14 years, 11 months
[Beginner's Corner] - Re: How to get JBoss and Apache to work together
by rbrtfreund
JBoss and Apache do play well together! Your on a Win box. So you probably have a setup similar to c:/jboss5 and c:/apache. Now you probably want to get jboss running (at least) forward listening on port 80. You are correct. Choose either mod_jk or mod_proxy. One way to do it.... there are many and your exact server limitations/ setup should be consulted to determine your best case scenario but for a point of getting started uncomment the mod_proxy modules... If they are not already there add them from apache...
apache/conf/httpd.conf
| LoadModule proxy_connect_module modules/mod_proxy_connect.so
| LoadModule proxy_module modules/mod_proxy.so
| LoadModule proxy_http_module modules/mod_proxy_http.so
|
and then to config it in apache/conf/httpd.conf do the following... Obviously this setup is very open ended and may not be optimal for proxy pass and such but will get jboss and apache to play nice.
apache/conf/httpd.conf
| ProxyRequests Off
| ProxyPreserveHost On
|
| <Proxy *>
| Order deny,allow
| Allow from all
| </Proxy>
|
| ProxyPass / http://localhost:8080/
| ProxyPassReverse / http://localhost:8080/
| <Location />
| Order allow,deny
| Allow from all
| </Location>
|
That should do it. Start apache and jboss and hit localhost at port 80.
Hope that helps.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4270107#4270107
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4270107
14 years, 11 months