Hi!
Despite looking through mailing list archives and Internet I cannot
solve very simple thing - running embedded felix example from
http://felix.apache.org/site/apache-felix-application-demonstration.html
or http://svn.apache.org/repos/asf/felix/trunk/examples/servicebased.host.
I followed exactly the steps from documentation
(http://felix.apache.org/site/apache-felix-application-demonstration.html).
I have compiled and build the project. I can even run it from the felix
shell started externally (java -jar bin/felix.jar -b
/home/gondar/workspace/java/felix-example/).
Simply I cannot run it in the embedded mode.
I get following error:
gondar@feather:~/workspace/java/felix-example$ java -jar
servicebased.host-1.0.0.jar file:/servicebased.circle-1.0.0.jar
file:/servicebased.square-1.0.0.jar file:/servicebased.triangle-1.0.0.jar
Welcome to My Launcher
======================
Exception in thread "main" java.lang.NoClassDefFoundError:
org/osgi/framework/launch/FrameworkFactory
at
org.apache.felix.example.servicebased.host.launch.Application.createFramework(Application.java:103)
at
org.apache.felix.example.servicebased.host.launch.Application.main(Application.java:79)
Caused by: java.lang.ClassNotFoundException:
org.osgi.framework.launch.FrameworkFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 2 more
gondar@feather:~/workspace/java/felix-example$
Any idea what is true reason for this error, and how can I solve it?
I see it cannot find framework class, but I have no idea how to provide
it to the program?
Best regards,
m.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]