在编写Domino时,您需要为您的OSGi应用程序指定上下文根。这是在plugin.xml中完成的。
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="com.ibm.pvc.webcontainer.application">
<contextRoot>
/exporter
</contextRoot>
<contentLocation>
WebContent
</contentLocation>
</extension>
</plugin>发布于 2017-02-11 22:21:43
com.ibm.pvc.webcontainer.application扩展点的任何有用的文档。正如我在注释中提到的,我建议您使用org.eclipse.equinox.http.registry.servlets扩展点。这就是DAS插件实现servlet的方式(参见DAS plugin.xml)。这两个扩展点都是由从其他地方继承的OSGi插件定义的。这就是Domino文档没有涵盖它们的原因,但我认为您会在equinox扩展点上找到更多的文档。例如,请参阅Paul的Domino OSGi开发幻灯片。这包括关于创建servlet的整个部分。https://stackoverflow.com/questions/42020694
复制相似问题