#sudo /run.sh Welcome to Oscar. ================= Enter profile name: b -> ps [ 0] [Active ] System Bundle [ 1] [Active ] Oscar Shell Service [ 2] [Active ] Shell TUI [ 3] [Active ] Oscar Bundle Repository
-> obr start "Log Reader" Installing dependency Log Service... Installing Log Reader... -> ps START LEVEL 1 ID State Level Name [ 0] [Active ] [ 0] System Bundle [ 1] [Active ] [ 1] Shell Service [ 2] [Active ] [ 1] Shell TUI [ 3] [Active ] [ 1] Oscar Bundle Repository [ 4] [Installed ] [ 1] Log Service [ 5] [Installed ] [ 1] Log Reader -> start 4 5 -> INFO : 5 : Logger.start : 0.1 INFO : 5 : BundleEvent.STARTED
-> obr start "OSGi Service" Installing OSGi Services... INFO : 6 : BundleEvent.INSTALLED -> start 6 -> INFO : 6 : BundleEvent.STARTED
-> obr start "Device Manager" Installing Device Manager... -> INFO : 7 : BundleEvent.INSTALLED -> start 7 INFO : 7 : DeviceManager 0.1.4 has been started INFO : 7 : BundleEvent.STARTED
-> obr start "HTTP Driver Locator" Installing HTTP Driver Locator... INFO : 8 : BundleEvent.INSTALLED -> start 8 DEBUG : 7 : DeviceManager.serviceRegistered INFO : 7 : DriverLocator : Bundle #[8] INFO : 8 : ServiceEvent.REGISTERED INFO : 8 : org.osgi.service.device.DriverLocator 0.0.2 has been started INFO : 8 : BundleEvent.STARTEDAt this step, the device manager and the driver locator are installed. You should skip to the provider section, in order to test the device manager. provider.
If you wan to serve your own drivers, on your own OSGi web site, you can also install the HTTP Driver Resource. It declares a context that serves drivers. The context is defined in the the lib/bundle.properties properties : org.osgi.service.http.port=8080 org.osgi.service.device.tools.http.context=/drivers org.osgi.service.device.tools.http.map=/opt/osgiprov/devices/ In that case, you should also modify the driverlocator property org.osgi.service.device.driverlocator.driverslocation=http://ares.insa-lyon.fr/~sfrenot/devel/osgiprov/devices/ In order to access localhost org.osgi.service.device.driverlocator.driverslocation=http://localhost:8080/drivers/ then
-> obr start "HTTP Service" Installing dependency: Servlet Installing: HTTP Service 22:57:08.621 EVENT Starting Jetty/4.2.x 22:57:08.898 WARN!! Failed to start: SocketListener@0.0.0.0:8080 Http2: org.mortbay.util.MultiException[java.net.BindException: Address already in use] -> obr start "HTTP Driver Resource" Installing dependency Servlet... INFO : 9 : BundleEvent.INSTALLED Installing HTTP Driver Resource... INFO : 10 : BundleEvent.INSTALLED -> start 9 -> INFO : 9 : BundleEvent.STARTED -> start 10 INFO : 10 : Service started 0.0.2 INFO : 10 : BundleEvent.STARTEDAt this step, the device manager, the driver locator are installed and drivers will be search on your local httpserver. You should skip to the provider section, in order to test the device manager. provider.