[jitsi-dev] Felix trouble----HELP VERY URGENT


#1

when i create an instance of Felix and i set some properties
like felix.auto.start.1 but felix seems to ignore them :
i don't see why

HELP HELP HELP

this a piece of my code :

···

================================

configMap.put("felix.auto.deploy.action","install,start");
configMap.put("felix.auto.deploy.dir","/Users/gabessolo/Documents/workspace/sipphone/bin/bundle");
configMap.put("felix.startlevel.bundle","1");
configMap.put(Constants.FRAMEWORK_SECURITY,"netvisio");
configMap.put(Constants.IMPORT_PACKAGE,"org.apache.felix.gogo.command-0.8.0.jar");
configMap.put("felix.log.level", "4");
configMap.put("felix.cache.rootdir", "/Users/gabessolo/Documents/workspace/sipphone/bin/bundle");
//configMap.put("osgi.shell.telnet","on");
//configMap.put("osgi.shell.telnet.ip","127.0.0.1");
//configMap.put("osgi.shell.telnet.port","2019");
//configMap.put("osgi.shell.telnet.maxconn","1");

//configMap.put("org.osgi.service.http.port","8080");

// add all the bundles we need to the config map
String server = new String("reference:file:org.apache.felix.gogo.command-0.8.0.jar");
configMap.put("felix.auto.start.1",server );
System.out.println("auto start 1");
System.out.println(server);

try
{
  // Now create an instance of the framework.
  felix = new Felix(configMap);
  // and start it!
  
  felix.start();

  //felix.installBundle("/Users/gabessolo/Documents/workspace/sipphone/bin/bundle/bin/org.apache.felix.gogo.command-0.8.0.jar", null);
  System.out.println(felix.getLocation());
  System.out.println("Se crea el framework");
  
}

catch (BundleException ex)
{
  System.err.println("Could not create framework: " + ex);
  ex.printStackTrace();
}

****************************************
THIS IS THE RESULT :

Welcome to Felix.

auto start 1
reference:file:org.apache.felix.gogo.command-0.8.0.jar
System Bundle
Se crea el framework
Entramos en start
1 : This bundle is system specific; it implements various system services.
2 : org.apache.felix.framework
3 : org.osgi.framework; version="1.3.0", org.osgi.service.packageadmin; version="1.2.0", org.osgi.service.startlevel; version="1.0.0", org.osgi.service.url; version="1.0.0", org.osgi.framework; version="0.0.0", javax.swing; version="0.0.0", javax.swing.event; version="0.0.0", javax.swing.table; version="0.0.0", javax.swing.text; version="0.0.0", javax.swing.text.html; version="0.0.0", javax.accessibility; version="0.0.0", javax.swing.plaf; version="0.0.0", javax.swing.plaf.metal; version="0.0.0", javax.swing.plaf.basic; version="0.0.0", javax.imageio; version="0.0.0", javax.swing.tree; version="0.0.0", javax.swing.undo; version="0.0.0", javax.swing.event; version="0.0.0", javax.swing.border; version="0.0.0", javax.swing.filechooser; version="0.0.0", org.w3c.dom; version="0.0.0", org.xml.sax; version="0.0.0", org.xml.sax.ext; version="0.0.0", javax.xml.parsers; version="0.0.0", org.apache.xml.serialize; version="0.0.0", javax.xml.transform; version="0.0.0", javax.xml.transform.dom; version="0.0.0", javax.xml.transform.stream; version="0.0.0", sun.security.action; version="0.0.0", sun.misc; version="0.0.0", javax.net; version="0.0.0", javax.net.ssl; version="0.0.0", javax.naming; version="0.0.0", javax.naming.directory; version="0.0.0", javax.sound; version="0.0.0", javax.sound.sampled; version="0.0.0", org.jdesktop.jdic.tray; version="0.0.0", org.jdesktop.jdic.desktop; version="0.0.0", com.apple.cocoa.application; version="0.0.0", com.apple.cocoa.foundation; version="0.0.0", com.apple.eawt; version="0.0.0", com.apple.eio; version="0.0.0", quicktime; version="0.0.0", quicktime.std.sg; version="0.0.0", quicktime.qd; version="0.0.0", quicktime.util; version="0.0.0", quicktime.std.image; version="0.0.0", org.xml.sax.helpers; version="0.0.0", javax.crypto; version="0.0.0", javax.crypto.spec; version="0.0.0", javax.crypto.interfaces; version="0.0.0", net.java.sip.communicator.util.launchutils; version="0.0.0", org.bouncycastle.jce.provider; version="0.0.0", org.bouncycastle.crypto.digests; version="0.0.0", org.bouncycastle.crypto.macs; version="0.0.0", org.bouncycastle.crypto.params; version="0.0.0", org.bouncycastle.crypto.engines; version="0.0.0", org.apache.log4j; version="0.0.0", org.apache.commons.logging; version="0.0.0", javax.xml.messaging; version="0.0.0", javax.xml.namespace; version="0.0.0", javax.xml.rpc; version="0.0.0", javax.xml.rpc.handler; version="0.0.0", javax.xml.rpc.handler.soap; version="0.0.0", javax.xml.rpc.holders; version="0.0.0", javax.xml.soap; version="0.0.0", net.java.sip.communicator.service.applet; version="0.0.0"
4 : org.osgi.service.packageadmin.PackageAdmin,org.osgi.service.startlevel.StartLevel,org.osgi.service.url.URLHandlers
5 : 1.4.0
6 : System Bundle


#2

The auto properties are processed by the Felix framework launcher, not by the framework itself, which is by design since it doesn't make sense to have the framework itself involved in launching itself...

If you want that functionality, you either have to use the Felix launcher or steal the code from it...it is very easy to steal the code, it is a single class that will process the properties...

-> richard

···

On 6/8/11 13:15, Gaetan Abessolo wrote:

when i create an instance of Felix and i set some properties
like felix.auto.start.1 but felix seems to ignore them :
i don't see why

HELP HELP HELP

this a piece of my code :

================================

configMap.put("felix.auto.deploy.action","install,start");
configMap.put("felix.auto.deploy.dir","/Users/gabessolo/Documents/workspace/sipphone/bin/bundle");
configMap.put("felix.startlevel.bundle","1");
configMap.put(Constants.FRAMEWORK_SECURITY,"netvisio");
configMap.put(Constants.IMPORT_PACKAGE,"org.apache.felix.gogo.command-0.8.0.jar");
configMap.put("felix.log.level", "4");
configMap.put("felix.cache.rootdir", "/Users/gabessolo/Documents/workspace/sipphone/bin/bundle");
//configMap.put("osgi.shell.telnet","on");
//configMap.put("osgi.shell.telnet.ip","127.0.0.1");
//configMap.put("osgi.shell.telnet.port","2019");
//configMap.put("osgi.shell.telnet.maxconn","1");

//configMap.put("org.osgi.service.http.port","8080");

// add all the bundles we need to the config map
String server = newString("reference:file:org.apache.felix.gogo.command-0.8.0.jar");
configMap.put("felix.auto.start.1",server );
System.out.println("auto start 1");
System.out.println(server);

try
{
// Now create an instance of the framework.
felix = new Felix(configMap);
// and start it!

felix.start();

//felix.installBundle("/Users/gabessolo/Documents/workspace/sipphone/bin/bundle/bin/org.apache.felix.gogo.command-0.8.0.jar", null);
System.out.println(felix.getLocation());
System.out.println("Se crea el framework");

}

catch (BundleException ex)
{
System.err.println("Could not create framework: "+ ex);
ex.printStackTrace();
}

****************************************
THIS IS THE RESULT :

Welcome to Felix.

auto start 1
reference:file:org.apache.felix.gogo.command-0.8.0.jar
System Bundle
Se crea el framework
Entramos en start
1 : This bundle is system specific; it implements various system services.
2 : org.apache.felix.framework
3 : org.osgi.framework; version="1.3.0", org.osgi.service.packageadmin; version="1.2.0", org.osgi.service.startlevel; version="1.0.0", org.osgi.service.url; version="1.0.0", org.osgi.framework; version="0.0.0", javax.swing; version="0.0.0", javax.swing.event; version="0.0.0", javax.swing.table; version="0.0.0", javax.swing.text; version="0.0.0", javax.swing.text.html; version="0.0.0", javax.accessibility; version="0.0.0", javax.swing.plaf; version="0.0.0", javax.swing.plaf.metal; version="0.0.0", javax.swing.plaf.basic; version="0.0.0", javax.imageio; version="0.0.0", javax.swing.tree; version="0.0.0", javax.swing.undo; version="0.0.0", javax.swing.event; version="0.0.0", javax.swing.border; version="0.0.0", javax.swing.filechooser; version="0.0.0", org.w3c.dom; version="0.0.0", org.xml.sax; version="0.0.0", org.xml.sax.ext; version="0.0.0", javax.xml.parsers; version="0.0.0", org.apache.xml.serialize; version="0.0.0", javax.xml.transform; version="0.0.0", javax.xml.transform.dom; version="0.0.0", javax.xml.transform.stream; version="0.0.0", sun.security.action; version="0.0.0", sun.misc; version="0.0.0", javax.net <http://javax.net>; version="0.0.0", javax.net.ssl; version="0.0.0", javax.naming; version="0.0.0", javax.naming.directory; version="0.0.0", javax.sound; version="0.0.0", javax.sound.sampled; version="0.0.0", org.jdesktop.jdic.tray; version="0.0.0", org.jdesktop.jdic.desktop; version="0.0.0", com.apple.cocoa.application; version="0.0.0", com.apple.cocoa.foundation; version="0.0.0", com.apple.eawt; version="0.0.0", com.apple.eio; version="0.0.0", quicktime; version="0.0.0", quicktime.std.sg <http://quicktime.std.sg>; version="0.0.0", quicktime.qd; version="0.0.0", quicktime.util; version="0.0.0", quicktime.std.image; version="0.0.0", org.xml.sax.helpers; version="0.0.0", javax.crypto; version="0.0.0", javax.crypto.spec; version="0.0.0", javax.crypto.interfaces; version="0.0.0", net.java.sip.communicator.util.launchutils; version="0.0.0", org.bouncycastle.jce.provider; version="0.0.0", org.bouncycastle.crypto.digests; version="0.0.0", org.bouncycastle.crypto.macs; version="0.0.0", org.bouncycastle.crypto.params; version="0.0.0", org.bouncycastle.crypto.engines; version="0.0.0", org.apache.log4j; version="0.0.0", org.apache.commons.logging; version="0.0.0", javax.xml.messaging; version="0.0.0", javax.xml.namespace; version="0.0.0", javax.xml.rpc; version="0.0.0", javax.xml.rpc.handler; version="0.0.0", javax.xml.rpc.handler.soap; version="0.0.0", javax.xml.rpc.holders; version="0.0.0", javax.xml.soap; version="0.0.0", net.java.sip.communicator.service.applet; version="0.0.0"
4 : org.osgi.service.packageadmin.PackageAdmin,org.osgi.service.startlevel.StartLevel,org.osgi.service.url.URLHandlers
5 : 1.4.0
6 : System Bundle


#3

Maybe someone on the Apache Felix mailing lists might want to help:
http://felix.apache.org/site/mailinglists.html

But shouting perhaps does not increase the likelyhood that someone wants
to help...

Cheers,
Andreas

···

Am 08.06.2011 19:15, schrieb Gaetan Abessolo:

when i create an instance of Felix and i set some properties
like felix.auto.start.1 but felix seems to ignore them :
i don't see why

HELP HELP HELP


#4

thanks a lot for help Richard i try to use the launcher...

···

Le 8 juin 2011 à 20:44, Richard S. Hall a écrit :

The auto properties are processed by the Felix framework launcher, not by the framework itself, which is by design since it doesn't make sense to have the framework itself involved in launching itself...

If you want that functionality, you either have to use the Felix launcher or steal the code from it...it is very easy to steal the code, it is a single class that will process the properties...

-> richard

On 6/8/11 13:15, Gaetan Abessolo wrote:

when i create an instance of Felix and i set some properties
like felix.auto.start.1 but felix seems to ignore them :
i don't see why

HELP HELP HELP

this a piece of my code :

================================

configMap.put("felix.auto.deploy.action","install,start");
configMap.put("felix.auto.deploy.dir","/Users/gabessolo/Documents/workspace/sipphone/bin/bundle");
configMap.put("felix.startlevel.bundle","1");
configMap.put(Constants.FRAMEWORK_SECURITY,"netvisio");
configMap.put(Constants.IMPORT_PACKAGE,"org.apache.felix.gogo.command-0.8.0.jar");
configMap.put("felix.log.level", "4");
configMap.put("felix.cache.rootdir", "/Users/gabessolo/Documents/workspace/sipphone/bin/bundle");
//configMap.put("osgi.shell.telnet","on");
//configMap.put("osgi.shell.telnet.ip","127.0.0.1");
//configMap.put("osgi.shell.telnet.port","2019");
//configMap.put("osgi.shell.telnet.maxconn","1");

//configMap.put("org.osgi.service.http.port","8080");

// add all the bundles we need to the config map
String server = newString("reference:file:org.apache.felix.gogo.command-0.8.0.jar");
configMap.put("felix.auto.start.1",server );
System.out.println("auto start 1");
System.out.println(server);

try
{
// Now create an instance of the framework.
felix = new Felix(configMap);
// and start it!

felix.start();

//felix.installBundle("/Users/gabessolo/Documents/workspace/sipphone/bin/bundle/bin/org.apache.felix.gogo.command-0.8.0.jar", null);
System.out.println(felix.getLocation());
System.out.println("Se crea el framework");

}

catch (BundleException ex)
{
System.err.println("Could not create framework: "+ ex);
ex.printStackTrace();
}

****************************************
THIS IS THE RESULT :

Welcome to Felix.

auto start 1
reference:file:org.apache.felix.gogo.command-0.8.0.jar
System Bundle
Se crea el framework
Entramos en start
1 : This bundle is system specific; it implements various system services.
2 : org.apache.felix.framework
3 : org.osgi.framework; version="1.3.0", org.osgi.service.packageadmin; version="1.2.0", org.osgi.service.startlevel; version="1.0.0", org.osgi.service.url; version="1.0.0", org.osgi.framework; version="0.0.0", javax.swing; version="0.0.0", javax.swing.event; version="0.0.0", javax.swing.table; version="0.0.0", javax.swing.text; version="0.0.0", javax.swing.text.html; version="0.0.0", javax.accessibility; version="0.0.0", javax.swing.plaf; version="0.0.0", javax.swing.plaf.metal; version="0.0.0", javax.swing.plaf.basic; version="0.0.0", javax.imageio; version="0.0.0", javax.swing.tree; version="0.0.0", javax.swing.undo; version="0.0.0", javax.swing.event; version="0.0.0", javax.swing.border; version="0.0.0", javax.swing.filechooser; version="0.0.0", org.w3c.dom; version="0.0.0", org.xml.sax; version="0.0.0", org.xml.sax.ext; version="0.0.0", javax.xml.parsers; version="0.0.0", org.apache.xml.serialize; version="0.0.0", javax.xml.transform; version="0.0.0", javax.xml.transform.dom; version="0.0.0", javax.xml.transform.stream; version="0.0.0", sun.security.action; version="0.0.0", sun.misc; version="0.0.0", javax.net <http://javax.net>; version="0.0.0", javax.net.ssl; version="0.0.0", javax.naming; version="0.0.0", javax.naming.directory; version="0.0.0", javax.sound; version="0.0.0", javax.sound.sampled; version="0.0.0", org.jdesktop.jdic.tray; version="0.0.0", org.jdesktop.jdic.desktop; version="0.0.0", com.apple.cocoa.application; version="0.0.0", com.apple.cocoa.foundation; version="0.0.0", com.apple.eawt; version="0.0.0", com.apple.eio; version="0.0.0", quicktime; version="0.0.0", quicktime.std.sg <http://quicktime.std.sg>; version="0.0.0", quicktime.qd; version="0.0.0", quicktime.util; version="0.0.0", quicktime.std.image; version="0.0.0", org.xml.sax.helpers; version="0.0.0", javax.crypto; version="0.0.0", javax.crypto.spec; version="0.0.0", javax.crypto.interfaces; version="0.0.0", net.java.sip.communicator.util.launchutils; version="0.0.0", org.bouncycastle.jce.provider; version="0.0.0", org.bouncycastle.crypto.digests; version="0.0.0", org.bouncycastle.crypto.macs; version="0.0.0", org.bouncycastle.crypto.params; version="0.0.0", org.bouncycastle.crypto.engines; version="0.0.0", org.apache.log4j; version="0.0.0", org.apache.commons.logging; version="0.0.0", javax.xml.messaging; version="0.0.0", javax.xml.namespace; version="0.0.0", javax.xml.rpc; version="0.0.0", javax.xml.rpc.handler; version="0.0.0", javax.xml.rpc.handler.soap; version="0.0.0", javax.xml.rpc.holders; version="0.0.0", javax.xml.soap; version="0.0.0", net.java.sip.communicator.service.applet; version="0.0.0"
4 : org.osgi.service.packageadmin.PackageAdmin,org.osgi.service.startlevel.StartLevel,org.osgi.service.url.URLHandlers
5 : 1.4.0
6 : System Bundle


#5

thanks a lot for your help

···

Le 8 juin 2011 à 20:08, Andreas Kuckartz a écrit :

Am 08.06.2011 19:15, schrieb Gaetan Abessolo:

when i create an instance of Felix and i set some properties
like felix.auto.start.1 but felix seems to ignore them :
i don't see why

HELP HELP HELP

Maybe someone on the Apache Felix mailing lists might want to help:
http://felix.apache.org/site/mailinglists.html

But shouting perhaps does not increase the likelyhood that someone wants
to help...

Cheers,
Andreas


#6

Hello,

Is there a cangelog for Jitsi on Linux available?

···

--
O zi buna,

Kertesz Laszlo


#7

Hi,

yes there are changelogs. For example when you use Ubuntu and it
offers you update you can check the changelog. The actual address the
Update center UI use to look for them is for example:
http://download.jitsi.org/jitsi/debian/jitsi_1.0-beta1-nightly.build.3525_i386.changelog

Cheers
damencho

···

On Thu, Jun 9, 2011 at 11:22 AM, Kertesz Laszlo <laszlo.kertesz@gmail.com> wrote:

Hello,

Is there a cangelog for Jitsi on Linux available?

--
O zi buna,

Kertesz Laszlo


#8

Thanks for the answer.
But since i dont use software center (nor ubuntu), can i access them ? (other than taking the link you provided, pasting it in a browser and change the release number every time)
Because the changelog files are not visible in the download folder directly.

···

----- Original Message -----

From: "Damian Minkov" <damencho@jitsi.org>
To: dev@jitsi.java.net
Sent: Thursday, June 9, 2011 11:59:38 AM
Subject: [jitsi-dev] Re: Changelog on Linux?

Hi,

yes there are changelogs. For example when you use Ubuntu and it
offers you update you can check the changelog. The actual address the
Update center UI use to look for them is for example:
http://download.jitsi.org/jitsi/debian/jitsi_1.0-beta1-nightly.build.3525_i386.changelog

Cheers
damencho

On Thu, Jun 9, 2011 at 11:22 AM, Kertesz Laszlo > <laszlo.kertesz@gmail.com> wrote:
> Hello,
>
> Is there a cangelog for Jitsi on Linux available?
>
>
> --
> O zi buna,
>
> Kertesz Laszlo
>


#9

You can look for example at this htmls:

http://download.jitsi.org/jitsi/windows/updates/
or
http://download.jitsi.org/jitsi/macosx/sparkle/

Cheers
damencho

···

On Thu, Jun 9, 2011 at 2:10 PM, Kertesz Laszlo <laszlo.kertesz@gmail.com> wrote:

Thanks for the answer.
But since i dont use software center (nor ubuntu), can i access them ? (other than taking the link you provided, pasting it in a browser and change the release number every time)
Because the changelog files are not visible in the download folder directly.

----- Original Message -----

From: "Damian Minkov" <damencho@jitsi.org>
To: dev@jitsi.java.net
Sent: Thursday, June 9, 2011 11:59:38 AM
Subject: [jitsi-dev] Re: Changelog on Linux?

Hi,

yes there are changelogs. For example when you use Ubuntu and it
offers you update you can check the changelog. The actual address the
Update center UI use to look for them is for example:
http://download.jitsi.org/jitsi/debian/jitsi_1.0-beta1-nightly.build.3525_i386.changelog

Cheers
damencho

On Thu, Jun 9, 2011 at 11:22 AM, Kertesz Laszlo >> <laszlo.kertesz@gmail.com> wrote:
> Hello,
>
> Is there a cangelog for Jitsi on Linux available?
>
>
> --
> O zi buna,
>
> Kertesz Laszlo
>


#10

Thanks. This is what i was looking for.

···

----- Original Message -----

From: "Damian Minkov" <damencho@jitsi.org>
To: dev@jitsi.java.net
Sent: Thursday, June 9, 2011 2:21:01 PM
Subject: [jitsi-dev] Re: Changelog on Linux?

You can look for example at this htmls:

http://download.jitsi.org/jitsi/windows/updates/
or
http://download.jitsi.org/jitsi/macosx/sparkle/

Cheers
damencho

On Thu, Jun 9, 2011 at 2:10 PM, Kertesz Laszlo > <laszlo.kertesz@gmail.com> wrote:
> Thanks for the answer.
> But since i dont use software center (nor ubuntu), can i access
> them ? (other than taking the link you provided, pasting it in a
> browser and change the release number every time)
> Because the changelog files are not visible in the download folder
> directly.
>
>
> ----- Original Message -----
>> From: "Damian Minkov" <damencho@jitsi.org>
>> To: dev@jitsi.java.net
>> Sent: Thursday, June 9, 2011 11:59:38 AM
>> Subject: [jitsi-dev] Re: Changelog on Linux?
>>
>> Hi,
>>
>> yes there are changelogs. For example when you use Ubuntu and it
>> offers you update you can check the changelog. The actual address
>> the
>> Update center UI use to look for them is for example:
>> http://download.jitsi.org/jitsi/debian/jitsi_1.0-beta1-nightly.build.3525_i386.changelog
>>
>> Cheers
>> damencho
>>
>> On Thu, Jun 9, 2011 at 11:22 AM, Kertesz Laszlo > >> <laszlo.kertesz@gmail.com> wrote:
>> > Hello,
>> >
>> > Is there a cangelog for Jitsi on Linux available?
>> >
>> >
>> > --
>> > O zi buna,
>> >
>> > Kertesz Laszlo
>> >
>>
>

--
O zi buna,

Kertesz Laszlo