Hi,

I'm new with OSGI and Felix and tried to use one of the example bundles
painting shapes and try around with them e.g. adding logging to come
familar with OSGI and Felix.

Following problem I can't solve when I try to import the log package
from OSGI:

D:\temp\sources\felix_trunc\examples\servicebased.host>mvn clean install

[INFO] Scanning for projects...
...
[INFO] Compilation failure

D:\temp\sources\felix_trunc\examples\servicebased.host\src\main\java\org\apache\felix\example\servicebased\host\DrawingFrame.java:[29,27]
pa
ckage org.osgi.service.log does not exist
...

Import looks like:

package org.apache.felix.example.servicebased.host;

import java.awt.*;
import java.awt.event.*;
import java.util.*;

import javax.swing.*;

import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.service.log.LogService;

Later on I use the LogService to create logs which hopefully will be
output if any log listener service is started...


I already tried to adapt the POM file following:

<Import-Package>org.osgi.service.log,...

Nevertheless the package is not found.

Is the idea completely wrong or what do I wrong ?

I'm using Felix from trunc to compile the example.

Without changes - the example compiled and worked in felix as expected
(like described in tutorial)

Thx for help

regards

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to