简体   繁体   English

Glassfish,OSGi Web应用程序捆绑包(WAB)和虚拟服务器

[英]Glassfish, OSGi web application bundle (WAB) and virtual servers

After all tests with WAB it seems that GF(4) can work only with virtual server "server" (default virtual server) and ignores all other virtual servers. 经过WAB的所有测试之后,GF(4)似乎只能与虚拟服务器“服务器”(默认虚拟服务器)一起使用,而忽略所有其他虚拟服务器。 So my question - has anyone succeeded in setting different virtual servers for wab\\eab in one domain with glassfish? 所以我的问题是-有谁成功地在一个带有glassfish的域中为wab \\ eab设置了不同的虚拟服务器?

I found the answer! 我找到了答案! As I understand the answer is only in one place in entire internet. 据我了解,答案只存在于整个互联网的一个地方。 It's here: https://java.net/jira/browse/GLASSFISH-11700 在这里: 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. 这是该修补程序的初始版本,仅在部署WAB时支持设置一个虚拟服务器。 Like Web-ContextPath, user has to supply this information in MANIFEST.MF of the WAB. 像Web-ContextPath一样,用户必须在WAB的MANIFEST.MF中提供此信息。 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. 如果用户尝试在清单标头Virtual-Servers中设置多个虚拟服务器,则此时会引发运行时异常,表明我们尚不支持多个虚拟服务器。 We will fix it when I have some more time. 等我有更多时间后,我们会修复它。

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

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