felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sahoo <sanjeeb.sa...@oracle.com>
Subject Re: Fwd: [jitsi-dev] Felix trouble----HELP VERY URGENT
Date Thu, 09 Jun 2011 08:30:30 GMT
Various auto properties like felix.auto.start or felix.auto.install are 
not understood by Felix itself. Felix class is the implementation of 
framework, so it does not have to understand user's provisioning 
options. Those options are used by Felix launcher class 
(org.apache.felix.main.Main) to configure the framework. You can launch 
using that launcher class if you want to use those properties or you can 
look at the Main class to see how to do it yourself.

Thanks,
Sahoo

On Thursday 09 June 2011 01:48 PM, Gaetan Abessolo wrote:
>
> Début du message réexpédié :
>
>> De : Gaetan Abessolo<g.abessolo@netvisio.com>
>> Date : 8 juin 2011 19:15:17 HAEC
>> À : dev@jitsi.java.net
>> Objet : [jitsi-dev] Felix trouble----HELP VERY URGENT
>> Répondre à : dev@jitsi.java.net
>>
>> 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
>>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Mime
View raw message