- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
假设我有这个 OSGI Equinox 应用程序,并且我想知道包是否已加载以及它们的状态。为此,我考虑过运行控制台,但我不知道该怎么做。
该应用程序具有以下文件夹结构:
workspace/
config/
features/
bundles/
config/
目录包含 config.ini 文件以及错误日志文件和一些以插件符号名称命名的文件夹。
我尝试从主(主)文件夹运行
java -jar bundles/org.eclipse.osgi_3.6.0.v20100517.jar -console -consoleLog
但我得到的只是一个
osgi> !SESSION 2013-06-04 08:57:53.023 ----------------------------------------------- eclipse.buildId=unknown java.version=1.7.0_17 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US Command-line arguments: -console -consoleLog
!ENTRY org.eclipse.osgi 4 0 2013-06-04 08:57:53.512 !MESSAGE Application error !STACK 1 java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini). at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.java:150)
这就提出了一个问题:知道config.ini
文件应该在哪里。如前所述,我知道 config/中有一个,虽然我知道这个 RCP 应用程序使用该文件作为其配置文件,但我不太确定我启动的控制台是否也是如此。为什么?因为我已将以下行添加到 bundles/config.ini
无济于事:
osgi.bundles=\
org.eclipse.core.runtime@5:start \
org.bountycastle@3:start, \
org.jdom@3:start, \
org.eclipse.equinox.event@3:start, \
org.eclipse.update.configurator@2:start, \
org.eclipse.equinox.common@2:start, \
org.eclipse.equinox.ds@4:start, \
org.eclipse.equinox.util@4:start, \
org.eclipse.core.runtime@start
osgi.startLevel=10
osgi.bundles.defaultStartLevel=5
欢迎任何提示。提前致谢。
最佳答案
如果您使用普通 OSGi(而不是 Eclipse 应用程序),您应该将以下内容添加到您的 config.ini 中:
eclipse.ignoreApp=true
osgi.noShutdown=true
此外,如果您不确定使用哪个 config.ini,您可以通过提供 cmd arg 显式定义路径:
java -jar .... -configuration <location of config.ini>
关于java - 在敌对环境中运行 OSGi Equinox 控制台,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16911584/
我在我的实现中使用 Eclipse Equinox 依赖项,当我尝试在 Java 7 中编译时,我收到以下错误。对于 Java 6,它运行完美。 import org.eclipse.equinox.
尝试在 OS X Mavericks 上使用 Java jdk 1.7(64 位)启动 bundle org.eclipse.equinox.launcher.carbon.macosx_1.0.10
有哪些算法或公式可用于计算分点和至点?几年前我找到了其中一个并实现了它,但精度不是很好:一天中的时间似乎假定为 00:00、06:00、12:00 和 18:00 UTC,具体取决于哪个春分或计算至日
有什么方法可以定义春分日志文件的输出文件夹吗? 如果你检查这个Link可以定义配置文件夹。但我没有找到更改日志输出文件夹的方法。 (注意:Configuration 和 Log-Folder 是不同的
有什么方法可以定义 equinox 日志文件的输出文件夹吗? 如果你检查这个Link可以定义配置文件夹。但是我没有找到更改日志输出文件夹的方法。 (注意:Configuration 和 Log-Fol
我有一个据说是由 Eclipse Equinox Launcher 构建的可执行文件 ( https://wiki.eclipse.org/Equinox_Launcher ) 可执行文件可以包含 J
基于 Equinox 的应用程序死锁有时会出现在内部类加载器上。我找到了 issue在描述我的问题的 Equinox bug-tracker 上。但是针对 Java 6 或更低版本的修复并不完整,针对
是否有任何插件可以集成 Maven 和 Equinox 运行时?我希望我的 osgi 包能够在 Equinox 中打包、部署和运行。我正在寻找 Maven 命令来执行整个控制操作(构建 bundle
有没有办法在 Eclipse Equinox 中将目录定义为每个包的类路径?这样我就可以将每个包的所有 3rd 方 jar/配置文件放入此目录中。我知道这可以通过单独定义每个 jar 来完成,但我需要
我关注了http://www.eclipse.org/equinox/documents/quickstart-framework.php但它似乎是旧的且无效。 没有 org.eclipse.upda
我正在尝试使用声明式服务创建一个服务包,为另一个包提供功能。但是,我希望我的服务提供商包在需要时才启动。让我描述一下我的条件。 有两个包: -com.example.serviceprovider -
我有一个 OSGI 应用程序,其 Bundle 需要 2 个版本的 IBM MQSeries:6.0.2 和 7.0.1。我们安装了以下 IBM MQ 包(仅提及主要包) com.ibm.mq.osg
我希望能够轻松启动 OSGi 框架(最好是 Equinox)并从 java main 加载我的 pom 中列出的任何包。 这可能吗?如果有,怎么做? 似乎 pax 工具可以做到这一点,但我似乎找不到任
我试图通过查看其底层包来了解 Equinox 的工作原理。 有人可以笼统地解释(或指出一个很好的资源来理解)org.eclipse.osgi 之间的关系/差异吗?和 org.eclipse.equin
我正在尝试在 Windows 7 中启动 OSGi 控制台。 我在终端窗口上使用了这个语句: java -jar org.eclipse.osgi.jar -console 但它不起作用,没有发生任何
在 Equinox 3.9 (Eclipse 4.3) 中,可以在 eclipse.ini 中配置以下属性以启用授权。 osgi.signedcontent.support=all osgi.sign
假设我有这个 OSGI Equinox 应用程序,并且我想知道包是否已加载以及它们的状态。为此,我考虑过运行控制台,但我不知道该怎么做。 该应用程序具有以下文件夹结构: workspace/ conf
我们使用 JAX-WS 和 ProSyst OSGi 创建了一个 Web 服务。使用以下代码访问服务在独立 Java 应用程序中工作正常以及 ProSyst 框架中。 this.service = n
我面临的问题是“普通”Java、Equinox 以及两者之间的通信的组合。我已阅读其他相关问题( here 、 here 和 there 以及其他网站,例如 this one 和 that one )
我有一个 equinox 应用程序,我想获得一些用户可以使用的最终命令行参数。我怎样才能得到这些参数? 最佳答案 可能的参数列表在 EclipseLauncher 类中作为常量列出。如果需要,您可以通
我是一名优秀的程序员,十分优秀!