Hi
Thanks, but with the binary don't work. I have the error:
/mnt/felix-1.0.1 # mika \
>
> -Xbootclasspath:{}/lib/mika/system/:{}/lib/mika/system/wre.jar:{}/lib/mika/system/logging.jar
> \
> -Djava.protocol.handler.pkgs=com.acunia.wonka.net \
> -jar bin/felix.jar
Welcome to Felix.
=================
Enter profile name: hello
DEBUG: WIRE: 1.0 -> org.osgi.service.packageadmin -> 0
DEBUG: WIRE: 1.0 -> org.ungoverned.osgi.service.shell -> 1.0
DEBUG: WIRE: 1.0 -> org.osgi.service.startlevel -> 0
DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 1.0 -> org.apache.felix.shell -> 1.0
DEBUG: WIRE: 2.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 2.0 -> org.apache.felix.shell -> 1.0
-> DEBUG: WIRE: 3.0 -> org.osgi.service.obr -> 3.0
DEBUG: WIRE: 3.0 -> org.osgi.framework -> 0
DEBUG: WIRE: 3.0 -> org.apache.felix.shell -> 1.0
ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (1.1.0.SNAPSHOT)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.0.0)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.0.0)
[ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.0.0)
-> ins5t
Command not found.
-> install file:/nfs/helloworld.jar
Bundle ID: 4
-> ps
START LEVEL 1
ID State Level Name
[ 0] [Active ] [ 0] System Bundle (1.1.0.SNAPSHOT)
[ 1] [Active ] [ 1] Apache Felix Shell Service (1.0.0)
[ 2] [Active ] [ 1] Apache Felix Shell TUI (1.0.0)
[ 3] [Active ] [ 1] Apache Felix Bundle Repository (1.0.0)
[ 4] [Installed ] [ 1] Helloworld (1.0.1)
-> start 4
DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
s: Hello world
org.osgi.framework.BundleException: Activator start error.
at org.apache.felix.framework.Felix._startBundle(Felix.java:1622)
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)
Caused by: java.lang.NoClassDefFoundError:
[EMAIL PROTECTED] could
not load int
at HelloWorld.start(HelloWorld.java:7)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
at org.apache.felix.framework.Felix._startBundle(Felix.java:1585)
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)
java.lang.NoClassDefFoundError:
[EMAIL PROTECTED] could
not load int
->
I will try with the svn version....
Thanks Antonio
Richard S. Hall wrote:
>
> ribeiant wrote:
>> Than k for answer
>> Can you tell me where can I find this version?
>>
>
> There hasn't been a release yet, so you either need to build from our
> svn repository. If you don't want to do that and just want the binary,
> you can download it from the snapshot repo here:
>
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/felix/org.apache.felix.main/1.1.0-SNAPSHOT/org.apache.felix.main-1.1.0-20080116.194212-10.jar
>
> This is the latest snapshot of the "main" subproject. Just rename it to
> "felix.jar" and use it to replace your existing one.
>
> -> richard
>
>> Thanks
>> Antonio
>>
>>
>> Karl Pauls wrote:
>>
>>> Could you please retry using the current Felix trunk or 1.1.0-SNAPSHOT
>>> respectively? There are some fixes for mika in trunk. We are close to
>>> releasing Felix 1.0.2 so it would be good to know whether the current
>>> trunk fixes your problem.
>>>
>>> regards,
>>>
>>> Karl
>>>
>>> On Jan 23, 2008 1:12 PM, ribeiant <[EMAIL PROTECTED]> wrote:
>>>
>>>> Gooodmorning
>>>> I have a big problem with the new Felix 1.0.1.
>>>> We have istalled it in a embedded linux (UNC90). We use the VM Mika
>>>> (http://k-embedded-java.com/).
>>>> Our Problem is that with some bundles, that in the java-code initialize
>>>> an
>>>> array with null (int arr = new int[0]), we become some error:
>>>>
>>>> "Caused by: java.lang.NoClassDefFoundError:
>>>> [EMAIL PROTECTED]
>>>> could
>>>> not load int"
>>>> the source that cause this error is:
>>>>
>>>> import org.osgi.framework.BundleActivator;
>>>> import org.osgi.framework.BundleContext;
>>>> public class HelloWorld implements BundleActivator {
>>>> public void start(BundleContext context) {
>>>> String s = "Hello world";
>>>> String s2 = "";
>>>> System.out.println("s: "+s);
>>>> int[][][] prova3 = new int[1][5][0];
>>>> System.out.println("After prova");
>>>> int[][][] prova2 = new int[1][5][4];
>>>> System.out.println("After prova2");
>>>> int[][][] prova = new int[1][s.length()][s2.length()];
>>>> System.out.println("After prova3");
>>>> }
>>>> public void stop(BundleContext context) {
>>>> System.out.println("Armageddon");
>>>> }
>>>> }
>>>>
>>>> this code print:
>>>> s: Hello world
>>>> org.osgi.framework.BundleException: Activator start error.
>>>> at
>>>> org.apache.felix.framework.Felix._startBundle(Felix.java:1573)
>>>> at
>>>> org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
>>>> 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)
>>>> Caused by: java.lang.NoClassDefFoundError:
>>>> [EMAIL PROTECTED]
>>>> could not load int
>>>> at HelloWorld.start(HelloWorld.java:7)
>>>> at
>>>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:589)
>>>> at
>>>> org.apache.felix.framework.Felix._startBundle(Felix.java:1536)
>>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
>>>> at
>>>> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
>>>> at
>>>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
>>>> java.lang.NoClassDefFoundError:
>>>> [EMAIL PROTECTED]
>>>> could not load int
>>>>
>>>> With Felix-0.8.0 we don't become this error, onli with Felix-1.0.1
>>>>
>>>> Have any idea what the problem is?
>>>>
>>>> Thank you very much
>>>>
>>>> Cardoso Antonio
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/org.apache.felix.framework.searchpolicy.ContentClassLoader%400x402e8c28-could-not-load-int%22-tp15040385p15040385.html
>>>> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>
>>> --
>>> Karl Pauls
>>> [EMAIL PROTECTED]
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/org.apache.felix.framework.searchpolicy.ContentClassLoader%400x402e8c28-could-not-load-int%22-tp15040385p15045452.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]