0

我为 Domino 开发了一个 osgi 插件。它包含一个需要检查 ACL 设置的 servlet。

我有一个基于 ...Domino/rcp/plugins 和 ...Domino/shared/plugins 的目标平台。jre 是已安装的 Domino jre。

servlet 导入 lotus.domino 并使用 lotus.domino.ACL。插件清单包含对 lotus.domino 的依赖。

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: MyServletPlugin
Bundle-SymbolicName: MyServletPlugin;singleton:=true
Bundle-Version: 1.0.1.20121026
Bundle-Activator: de.xyz.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: lotus.domino,
 org.osgi.framework;version="1.3.0"
Require-Bundle: org.eclipse.equinox.http.registry,
 org.eclipse.equinox.http.servlet,
 org.eclipse.osgi,
 org.eclipse.osgi.services,
 org.eclipse.osgi.util,
 com.ibm.pvc.servlet;bundle-version="2.5.0"
Bundle-ClassPath: lib/gson-1.6.jar,
 .

当我使用导出向导导出插件时,出现错误。

Errors occured during the export operation.

日志文件包含以下内容:

# 26.10.12 12:33:32 MESZ
# Eclipse Compiler for Java(TM) 0.B83_R37x, 3.7.2, Copyright IBM Corp 2000, 2011. All  rights reserved.
----------
1. ERROR in D:\workspace\osgiservlet\WireitServletPlugin\src\de\xyz\AclServlet.java (at line 14)
    import lotus.domino.ACL;
           ^^^^^
The import lotus cannot be resolved
----------
2. ERROR in D:\workspace\osgiservlet\WireitServletPlugin\src\de\xyz\AclServlet.java (at line 15)
    import lotus.domino.ACLEntry;
           ^^^^^
The import lotus cannot be resolved

......还有更多这样的。

Domino 版本是 8.5.3,eclipse 是 Indigo SR2。

4

2 回答 2

2

添加“com.ibm.notes.java.api”作为必需插件,并从导入的包中删除lotus.domino。那应该可以解决问题。

于 2012-11-14T15:06:50.657 回答
0

我想我找到了原因。

When I set up the project I added a sepate project which just contained the Notes.jar. I assume this was recommended on blog or something.

It had worked ok so I'm not sure what went wrong. In any case, I removed the project and the export is now successful.

于 2012-11-21T06:11:06.567 回答