Sagara Gunathunga wrote:
Hi All ,
I'm new to Felix I got some problems with examples of the tutorials.

( 1) First I tried for "Apache Felix Application Demonstration" [1], I
downloaded source code from Felix SVN server [2] .
     All 4 projects compiled and packaged well with the Maven . Then I
installed 4 services in to Felix as follow .

           * java   – jar bin\ felix.jar  *

           *Enter Profile name : bundle
*
          *install file:D:\java\felix-
1.0.3\bundle\servicebased.host-1.0.0.jar
          install file:D:\java\felix-
1.0.3\bundle\servicebased.square-1.0.0.jar
          install file:D:\java\felix-
1.0.3\bundle\servicebased.square-1.0.0.jar
          install file:D:\java\felix-
1.0.3\bundle\servicebased.triangle-1.0.0.jar*

        then I tried  to run application using ID
      ( start 4) and got following error .

      * start 4
      org.osgi.framework.BundleException: Unresolved package in bundle 4:
package; (packa
      ge=org.apache.felix.main)    *

Try to do an "svn up" in the example application source directories (particularly for the host)....there were some changes made in the last release of Felix that impacted this example and it needed to be updated to work. I just committed some changes and it now works for me locally.

( 2) Then I tried for "Apache Felix Tutorial Example 1" [3]. I did all the
steps  correctly but again when
       I try to start d application got following error message

This worked for me. Perhaps you could show us the contents of your example1.jar bundle and the contents of its manifest.

-> richard


*start file:/media/e/test/1/example1.jar
org.osgi.framework.BundleException: Activator start error.
       at org.apache.felix.framework.Felix._startBundle(Felix.java:1629)
       at org.apache.felix.framework.Felix.startBundle(Felix.java:1519)
       at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:354)
       at org.apache.felix.shell.impl.StartCommandImpl.execute(
StartCommandImpl.java:82)
       at
org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(
Activator.java:265)
       at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(
Activator.java:167)
       at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.ClassCastException: tutorial.example1.Activator
       at org.apache.felix.framework.Felix.createBundleActivator(Felix.java
:3486)
       at org.apache.felix.framework.Felix._startBundle(Felix.java:1580)
       ... 6 more
java.lang.ClassCastException: tutorial.example1.Activator*



please help me to solve these problems ,

[1] -
http://felix.apache.org/site/apache-felix-application-demonstration.html
[2] - http://svn.apache.org/repos/asf/felix/trunk/examples
[3] - http://felix.apache.org/site/apache-felix-tutorial-example-1.html




Thanks ,

Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to