聲明:我是一般OSGi和Felix in partciular的完全新手。所以,對於我這次犯的一個愚蠢的錯誤表示歉意,但是如果你能指出一個,真的很感激。關於Apache Felix(v 4.2.1)Gogo shell,System.out.println來自軟件包不打印
我已經下載了Apache的菲利克斯V4.2.1,並開始運行它作爲http://felix.apache.org/documentation/subprojects/apache-felix-framework/apache-felix-framework-usage-documentation.html
在引導描述也跟着給予教程,開發示例服務聽衆捆綁,捆綁字典和詞典客戶端(REF:http://felix.apache.org/documentation/tutorials-examples-and-presentations/apache-felix-osgi-tutorial/apache-felix-tutorial-example-1.html)
我能夠使用felix:start命令成功安裝並在Felix中啓動它們。以下是菲利克斯的輸出:LB命令,
START LEVEL 1
ID|State |Level|Name
0|Active | 0|System Bundle (4.2.1)
1|Active | 1|Apache Felix Bundle Repository (1.6.6)
2|Active | 1|Apache Felix Gogo Command (0.12.0)
3|Active | 1|Apache Felix Gogo Runtime (0.10.0)
4|Active | 1|Apache Felix Gogo Shell (0.10.0)
5|Active | 1|file:/home/dev/experiments/osgi/workspace/FirstProj/dist/firstproj.jar (0.0.0)
6|Active | 1|file:/home/dev/experiments/osgi/workspace/SecondProj/dist/dictionary.jar (0.0.0)
7|Active | 1|file:/home/dev/experiments/osgi/workspace/ThirdProj/dist/dictionary_client.jar (0.0.0)
但是既不是我的控制檯和第七束(dicionary_client)束輸出任何東西的預計也將要求輸入(使用System.in),這也是不工作。
它必須是一些小的配置/執行錯誤,但真正感謝,如果你們可以指出我在正確的方向。
謝謝。