简体   繁体   English

GlassFish 4.1-同时访问同一GF的两个域的Web管理控制台

[英]GlassFish 4.1 - simultaneous access to web admin console of two domains of the same GF

I use GlassFish 4.1 - final release (downloaded from java.net). 我使用GlassFish 4.1-最终版本(从java.net下载)。 I have two domains - domain1 and domain2 我有两个域-domain1和domain2

The problem is that I can't work simultaneously with web admin console of two domains of the same GF server. 问题是我无法同时使用同一GF服务器的两个域的Web管理控制台。 I open admin of domain1 - everything is ok, at the same browser (firefox) but different tab I open admin console of domain2 - at this time server closes my access for the admin of domain1. 我打开domain1的管理员-一切正常,在相同的浏览器(firefox)上,但使用其他选项卡打开了domain2的管理员控制台-此时服务器关闭了对domain1管理员的访问权限。 What is the reason? 是什么原因? How can it be fixed? 如何解决?

That is simply because you're accessing the two domains via URLs with the same host. 这仅仅是因为您要通过具有相同主机的URL访问这两个域。

192.168.1.10:X
192.168.1.10:Y

Recall that the host portion is 192.168.1.10 and as with many other web-app, glassfish admin console use session cookies, which is unique per host . 回想一下,主机部分是192.168.1.10 ,与许多其他Web应用程序一样,glassfish管理控制台使用会话cookie,这对于每个主机都是唯一的 So what happen when you login to the second domain is, the session info from the first domain is lost / overwritten. 因此,当您登录到第二个域时发生的情况是,第一个域中的会话信息将丢失/覆盖。

Easiest solution for this is use a different browser for each domain (eg: firefox for domain 1 and IE for domain 2) or open another window in incognito mode (if using google chrome) 最简单的解决方案是为每个域使用不同的浏览器(例如:对于域1使用firefox,对于域2使用IE)或以隐身模式打开另一个窗口(如果使用Google chrome)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM