Я изучаю osgi-in-action, чтобы понять экзамен pax
, к сожалению, приведенные примеры не работают.
- Я скачал источник с osgi-in код действия на github
- изменен в каталог [osgi-in-action] / chapter07 / testing-example
- Я применил обходной путь из вопрос переполнения стека чтобы убедиться, что необходимые пакеты в моем локальном репозитории maven
- выполнено: ant test.container (используя java 1.6)
в терминале, который я вижу:
Fehler: Hauptklasse org.apache.felix.main.Main konnte nicht gefunden oder geladen werden
(translation: main class could not be found or loaded org.apache.felix.main.Main)
в лог-файле я вижу:
Testcase: testContainer took 301,728 sec
Caused an ERROR
Cannot get the remote bundle context
org.ops4j.pax.exam.spi.container.TestContainerException: Cannot get the remote bundle context
...
Caused by: java.rmi.ConnectException: Connection refused to host: 172.16.160.136; nested exception is:
java.net.ConnectException: Connection refused: connect
...
org.ops4j.pax.exam.rbc.client.RemoteBundleContextClient.getRemoteBundleContext(RemoteBundleContextClient.java:302)
Caused by: java.net.ConnectException: Connection refused: connect
Главный вопрос :
- Как мне сделать так, чтобы pax runner успешно запустил феликс фреймворк?
Я также открыл проблему в соответствующем репозитории github ссылка на выпуск