[GLASSFISH-10245] Admin consoles for 2 simultaneoulsy running domains don't load completely Created: 14/Oct/09  Updated: 13/Dec/12  Resolved: 13/Dec/12

Status: Resolved
Project: glassfish
Component/s: admin_gui
Affects Version/s: V3
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Marek Potociar Assignee: Anissa Lam
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: All
Platform: All

Attachments: PNG File GFv3 Admin Console.png    
Issue Links:
is duplicated by GLASSFISH-16711 Admin Console is reloaded when switch... Resolved
Issuezilla Id: 10,245
Tags: 3_1-exclude


When I simultaneously start 2 domains in the same GFv3 installation and
subsequently try to open their admin consoles in the browser, the admin consoles
don't fully load (left and top menu bars are missing - see screenshot). Trying
to navigate from such crippled console results in the blank page. When I refresh
the consoles they usually fully load and start working. Still this is a really
annoying issue from a user perspective

Comment by Marek Potociar [ 14/Oct/09 ]

Created an attachment (id=3516)
Screenshot of the incomplete console

Comment by Anissa Lam [ 14/Oct/09 ]

-> ken

Comment by Nazrul [ 28/Oct/09 ]

Will look into this in next release.

Comment by Marek Potociar [ 01/Oct/10 ]

Hello, it's been a year since I have reported this issue. What is the status of
the issue?

Comment by kenpaulsen [ 07/Oct/10 ]

I tried this out. Here's what I found... when I used browers that did not share
cookies (i.e. Chrome w/ 1 browser running in "Incognito Mode"), then everything
worked exactly as expected.

When I used browser windows that do share cookies, the JSESSIONID was
overwritten by the other browser window. This meant that every time I switched
between windows, I essentially logged the other window out. Also, the Woodstock
tree component uses cookies to maintain its highlighting – it got confused when
2 windows were both updating the tree highlighting cookie.

The suggested work-a-round is to use 2 browsers which are in different processes
(e.g. firefox & chrome). Or to use the "incognito window" to isolate your 2
browser windows from updating the same cookies. The cookies are set per
machine, and not per domain. A possible enhancement in the future would be to
make the cookies domain-aware. This would likely have to be done in the web
container code for the JSESSION cookie.

Also, we hope to allow administration of multiple domains from a single console
in the future – this would provide another way to avoid this problem.


Comment by Anissa Lam [ 07/Oct/10 ]

Based on Ken's comment, transfer to web-container.

Comment by Shing Wai Chan [ 02/May/12 ]

One can solve this issue by using a different session cookie name for different domain.
The cookie name is configured in web.xml

Comment by Anissa Lam [ 13/Dec/12 ]

There is only one copy of admin console installed for the entire glassfish installation, so there is only 1 copy of web.xml.
There is no way to specify different cookie name based on the domain name since they all use the same web.xml. So, the suggestion from Shing Wei will not work.

The work around is to use different browser for different domain to access the console.

Generated at Fri Nov 27 04:32:35 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.