java - Glassfish、OSGi Web 应用程序包 (WAB) 和虚拟服务器

标签 java jakarta-ee glassfish osgi glassfish-4

在使用 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/

相关文章:

java - 无法编译jsp

java - 如何从数组对象中删除一个 £ 符号并保存它?

java - java的UTF-8字符串类

java - Getting WARN : SQL Error: 1205, SQLState : 41000 ERROR: Lock wait timeout exceeded; try restarting transaction. 使用hibernate保存记录

java - 如何创建一个在 Borderlayout 北位置自动调整大小的组件

java - 为什么 Java EE 版本与 Java SE 版本不匹配?

java - Glassfish 2 服务器日志

java - 为什么解释/解析/编译任何代码都需要 Java EE 运行时环境?

java - 从 Netbeans 将 Java 应用程序部署到远程 glassfish 服务器时超时

java - 如何使用jpa从数据库中获取特定的id?