在使用 WAB 进行所有测试后,GF(4) 似乎只能与虚拟服务器“服务器”(默认虚拟服务器)一起工作,并忽略所有其他虚拟服务器。所以我的问题 - 有没有人成功地使用 glassfish 在一个域中为 wab\eab 设置不同的虚拟服务器?
最佳答案
我找到了答案!据我了解,答案只存在于整个互联网的一个地方。在这里:https://java.net/jira/browse/GLASSFISH-11700
This is an initial version of the fix which only supports one virtual server to be set while deploying a WAB. Like Web-ContextPath, user has to supply this information in MANIFEST.MF of the WAB. The header name is "Virtual-Servers." When the header is absent or the header name is empty, we only deploy to default virtual server. If user tries to set multiple virtual server in the manifest header Virtual-Servers, a runtime exception is raised at this point of time indicating that we don't yet support multiple virtual servers. We will fix it when I have some more time.
关于java - Glassfish、OSGi Web 应用程序包 (WAB) 和虚拟服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24074772/