我爲Domino開發了一個osgi插件。它包含一個需要檢查ACL設置的servlet。爲Domino導出osgi插件時的錯誤
我有一個基於... Domino/rcp /插件和... Domino /共享/插件的目標平臺。 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。
@shydownvoter - 爲什麼?你有什麼不同意見?要有建設性! – paul