2011-03-15 96 views
1

如何在obr deploy命令失败时读取错误消息? 下面是一个例子:Apache Felix obr部署错误消息

 
-> obr deploy configuration-exporter 
Unsatisfied requirement(s): 
--------------------------- 
    (&(package=com.google.common.collect)) 
     RoutingService :: DAO 
    (&(package=com.sybase365.routingservice)) 
     ARF :: Service Bundle :: Configuration Exporter 
    (&(package=com.google.common.base)) 
     RoutingService :: DAO 
    (service=org.osgi.service.event.EventHandler) 
     Apache Felix EventAdmin 
    (&(package=com.google.common.base)) 
     ARF :: Service Bundle :: Configuration Exporter 
    (|(ee=J2SE-1.5)) 
     Guava: Google Core Libraries for Java 1.5 
    (&(package=com.google.common.collect)) 
     ARF :: Service Bundle :: Configuration Exporter 
    (service=org.osgi.service.event.EventHandler) 
     Apache Felix EventAdmin 

如何读取上述消息?什么实际上不满意?

+0

你解决了你的问题吗?我会很有兴趣知道你是如何设法解决它的 - 如果我的下面的猜测是好的? :-) – drozzy 2011-09-28 11:32:38

回答

0

我假设你的OBR丢失的包:

com.google.common.collect 
com.sybase365.routingservice 
com.google.common.base 
com.google.common.base 
com.google.common.collect 

,然后你可能没有一些服务运行:

org.osgi.service.event.EventHandler 

,你可能不具备所需的Java的运行时间:

J2SE-1.5 

我通常采取第一个丢失的软件包 - 并尝试解决它。如果它摆脱了那个错误,我继续前进。如果没有 - 那么你的osgi运行时有问题。也许你错过了部署它需要的一些捆绑包?

+0

这是不正确的。该错误消息表明OBR无法部署该捆绑软件,因为它找不到依赖关系...但至少在我的情况下,依赖关系都在那里,而OBR也在打印此错误消息......试图找出原因。 – Renato 2016-09-16 18:12:58