You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Ben Cuthbert <be...@me.com> on 2009/04/15 18:46:30 UTC

Bundle not activating

All

I have the following setup

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.6.0_07-b06-57 (Apple Inc.)
Built-By: user

Name: test
Bundle-Version: 1.0-SNAPSHOT
Bundle-Name: test
Bundle-Activator: test.Module
Export-Package: test
Private-Package: test
Import-Package: org.osgi.framework;version=1.3.0

BUt when I deploy the bundle in felix that is running inside eclipse

I get

-> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar

And when i do a ps i get

[  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
->

But the bundle is not activating I don't see any system console  
messages about it starting
The code is simple

public class Module implements BundleActivator{


	public Module() {
		System.out.println("Starting");
	}
	
	public void start(BundleContext context) throws Exception {
		logger.info("Starting module");
		System.out.println("Testing updates.");
	}

	public void stop(BundleContext context) throws Exception {
		// TODO Auto-generated method stub
		
	}
	
}

IS there something else I need to do ?




Re: Bundle not activating

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Did you resolve this issue?

If not, please send me your bundle privately.

-> richard

On 4/15/09 2:17 PM, Ben Cuthbert wrote:
> Class:
>
> package test;
>
> import org.osgi.framework.BundleActivator;
> import org.osgi.framework.BundleContext;
>
>
> public class Module implements BundleActivator{
>
>     public Module() {
>         System.out.println("Starting");
>     }
>
>     public void start(BundleContext context) throws Exception {
>         System.out.println("starting bundle.");
>     }
>
>     public void stop(BundleContext context) throws Exception {
>         System.out.println("Stopping bundle .");
>     }
>
> }
>
> Manifest that gets generated by ANT
>
> cuthbes-macbook:dist cuthbe$ jar -xvf test.jar
>   created: META-INF/
>  inflated: META-INF/MANIFEST.MF
>   created: test/Module.class
>  inflated: log4j.properties
> cuthbes-macbook:dist cuthbe$ more META-INF/MANIFEST.MF
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.7.1
> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
> Bundle-Version: 1.0
> Bundle-Name: test
> Bundle-Activator: test.Module
> Export-Package: test
> Private-Package: test
> Import-Package: org.osgi.framework;version=1.3.0
>
> cuthbes-macbook:dist cuthbe$
>
>
> On 15 Apr 2009, at 19:03, Richard S. Hall wrote:
>
>> Show us your complete class and your manifest file.
>>
>> -> richard
>>
>> On 4/15/09 1:58 PM, Ben Cuthbert wrote:
>>> Just all that has been done
>>>
>>> config.properties
>>>
>>> # Logger
>>> felix.log.level=4
>>>
>>> And the bundle has
>>>
>>>    public Module() {
>>>        System.out.println("Starting");
>>>    }
>>>
>>>    public void start(BundleContext context) throws Exception {
>>>        System.out.println("starting bundle.");
>>>    }
>>>
>>>    public void stop(BundleContext context) throws Exception {
>>>        System.out.println("Stopping bundle .");
>>>    }
>>>
>>> Strange thing is, i started felix in eclipse and ran it in debug 
>>> mode. I thought that by putting
>>> a breakpoint on my Module call constructor I would get hit, but it 
>>> did not
>>>
>>>
>>>
>>> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>> DEBUG: WIRE: 11.0 -> org.osgi.framework -> 0
>>> Error while starting bundle: 
>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
>>> org.osgi.framework.BundleException: Activator start error in bundle 
>>> [11].
>>> Error while starting bundle: 
>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
>>> org.osgi.framework.BundleException: Activator start error in bundle 
>>> [11].
>>> Error while starting bundle: 
>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
>>> org.osgi.framework.BundleException: Activator start error in bundle 
>>> [11].
>>> Error while starting bundle: 
>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
>>> org.osgi.framework.BundleException: Activator start error in bundle 
>>> [11].
>>>
>>> On 15 Apr 2009, at 18:54, Richard S. Hall wrote:
>>>
>>>> Set the log level to 4 in conf/config.properties...that's the best 
>>>> you can do. Otherwise, put some print statements in your activator 
>>>> start() method and see what is going on.
>>>>
>>>> -> richard
>>>>
>>>> On 4/15/09 1:51 PM, Ben Cuthbert wrote:
>>>>> THanks that was the issue. When it deploys tho I still have 
>>>>> another issue now
>>>>>
>>>>> I seem to get this error on the console over and over
>>>>>
>>>>> Error while starting bundle: 
>>>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
>>>>> org.osgi.framework.BundleException: Activator start error in 
>>>>> bundle [11]
>>>>>
>>>>> What do I tell what the exception is, is there a better level of 
>>>>> debug that I can set felix into ?
>>>>>
>>>>>
>>>>> On 15 Apr 2009, at 18:08, Richard S. Hall wrote:
>>>>>
>>>>>> If you actually have that blank line in your manifest file, then 
>>>>>> that is probably the issue. Only attributes in the "main" 
>>>>>> attribute group are processed by OSGi. The "main" group is the 
>>>>>> first group of attributes. Each blank line separates attribute 
>>>>>> groups. Thus, your OSGi bundle metadata would be in a separate 
>>>>>> group.
>>>>>>
>>>>>> -> richard
>>>>>>
>>>>>> On 4/15/09 12:46 PM, Ben Cuthbert wrote:
>>>>>>> All
>>>>>>>
>>>>>>> I have the following setup
>>>>>>>
>>>>>>> Manifest-Version: 1.0
>>>>>>> Ant-Version: Apache Ant 1.7.1
>>>>>>> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
>>>>>>> Built-By: user
>>>>>>>
>>>>>>> Name: test
>>>>>>> Bundle-Version: 1.0-SNAPSHOT
>>>>>>> Bundle-Name: test
>>>>>>> Bundle-Activator: test.Module
>>>>>>> Export-Package: test
>>>>>>> Private-Package: test
>>>>>>> Import-Package: org.osgi.framework;version=1.3.0
>>>>>>>
>>>>>>> BUt when I deploy the bundle in felix that is running inside 
>>>>>>> eclipse
>>>>>>>
>>>>>>> I get
>>>>>>>
>>>>>>> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>>>>>
>>>>>>> And when i do a ps i get
>>>>>>>
>>>>>>> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>>>> [  11] [Active     ] [    1] 
>>>>>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>>>>> ->
>>>>>>>
>>>>>>> But the bundle is not activating I don't see any system console 
>>>>>>> messages about it starting
>>>>>>> The code is simple
>>>>>>>
>>>>>>> public class Module implements BundleActivator{
>>>>>>>
>>>>>>>
>>>>>>>  public Module() {
>>>>>>>      System.out.println("Starting");
>>>>>>>  }
>>>>>>>
>>>>>>>  public void start(BundleContext context) throws Exception {
>>>>>>>      logger.info("Starting module");
>>>>>>>      System.out.println("Testing updates.");
>>>>>>>  }
>>>>>>>
>>>>>>>  public void stop(BundleContext context) throws Exception {
>>>>>>>      // TODO Auto-generated method stub
>>>>>>>
>>>>>>>  }
>>>>>>>
>>>>>>> }
>>>>>>>
>>>>>>> IS there something else I need to do ?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> --------------------------------------------------------------------- 
>>>>>>
>>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

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


Re: Bundle not activating

Posted by Ben Cuthbert <be...@me.com>.
Class:

package test;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;


public class Module implements BundleActivator{

	public Module() {
		System.out.println("Starting");
	}
	
	public void start(BundleContext context) throws Exception {
		System.out.println("starting bundle.");
	}

	public void stop(BundleContext context) throws Exception {
		System.out.println("Stopping bundle .");
	}
	
}

Manifest that gets generated by ANT

cuthbes-macbook:dist cuthbe$ jar -xvf test.jar
   created: META-INF/
  inflated: META-INF/MANIFEST.MF
   created: test/Module.class
  inflated: log4j.properties
cuthbes-macbook:dist cuthbe$ more META-INF/MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.6.0_07-b06-57 (Apple Inc.)
Bundle-Version: 1.0
Bundle-Name: test
Bundle-Activator: test.Module
Export-Package: test
Private-Package: test
Import-Package: org.osgi.framework;version=1.3.0

cuthbes-macbook:dist cuthbe$


On 15 Apr 2009, at 19:03, Richard S. Hall wrote:

> Show us your complete class and your manifest file.
>
> -> richard
>
> On 4/15/09 1:58 PM, Ben Cuthbert wrote:
>> Just all that has been done
>>
>> config.properties
>>
>> # Logger
>> felix.log.level=4
>>
>> And the bundle has
>>
>>    public Module() {
>>        System.out.println("Starting");
>>    }
>>
>>    public void start(BundleContext context) throws Exception {
>>        System.out.println("starting bundle.");
>>    }
>>
>>    public void stop(BundleContext context) throws Exception {
>>        System.out.println("Stopping bundle .");
>>    }
>>
>> Strange thing is, i started felix in eclipse and ran it in debug  
>> mode. I thought that by putting
>> a breakpoint on my Module call constructor I would get hit, but it  
>> did not
>>
>>
>>
>> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>> DEBUG: WIRE: 11.0 -> org.osgi.framework -> 0
>> Error while starting bundle: /felix-osgi/deploy/test-1.0- 
>> SNAPSHOT.jar: org.osgi.framework.BundleException: Activator start  
>> error in bundle [11].
>> Error while starting bundle: /felix-osgi/deploy/test-1.0- 
>> SNAPSHOT.jar: org.osgi.framework.BundleException: Activator start  
>> error in bundle [11].
>> Error while starting bundle: /felix-osgi/deploy/test-1.0- 
>> SNAPSHOT.jar: org.osgi.framework.BundleException: Activator start  
>> error in bundle [11].
>> Error while starting bundle: /felix-osgi/deploy/test-1.0- 
>> SNAPSHOT.jar: org.osgi.framework.BundleException: Activator start  
>> error in bundle [11].
>>
>> On 15 Apr 2009, at 18:54, Richard S. Hall wrote:
>>
>>> Set the log level to 4 in conf/config.properties...that's the best  
>>> you can do. Otherwise, put some print statements in your activator  
>>> start() method and see what is going on.
>>>
>>> -> richard
>>>
>>> On 4/15/09 1:51 PM, Ben Cuthbert wrote:
>>>> THanks that was the issue. When it deploys tho I still have  
>>>> another issue now
>>>>
>>>> I seem to get this error on the console over and over
>>>>
>>>> Error while starting bundle: /felix-osgi/deploy/test-1.0- 
>>>> SNAPSHOT.jar: org.osgi.framework.BundleException: Activator start  
>>>> error in bundle [11]
>>>>
>>>> What do I tell what the exception is, is there a better level of  
>>>> debug that I can set felix into ?
>>>>
>>>>
>>>> On 15 Apr 2009, at 18:08, Richard S. Hall wrote:
>>>>
>>>>> If you actually have that blank line in your manifest file, then  
>>>>> that is probably the issue. Only attributes in the "main"  
>>>>> attribute group are processed by OSGi. The "main" group is the  
>>>>> first group of attributes. Each blank line separates attribute  
>>>>> groups. Thus, your OSGi bundle metadata would be in a separate  
>>>>> group.
>>>>>
>>>>> -> richard
>>>>>
>>>>> On 4/15/09 12:46 PM, Ben Cuthbert wrote:
>>>>>> All
>>>>>>
>>>>>> I have the following setup
>>>>>>
>>>>>> Manifest-Version: 1.0
>>>>>> Ant-Version: Apache Ant 1.7.1
>>>>>> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
>>>>>> Built-By: user
>>>>>>
>>>>>> Name: test
>>>>>> Bundle-Version: 1.0-SNAPSHOT
>>>>>> Bundle-Name: test
>>>>>> Bundle-Activator: test.Module
>>>>>> Export-Package: test
>>>>>> Private-Package: test
>>>>>> Import-Package: org.osgi.framework;version=1.3.0
>>>>>>
>>>>>> BUt when I deploy the bundle in felix that is running inside  
>>>>>> eclipse
>>>>>>
>>>>>> I get
>>>>>>
>>>>>> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>>>>
>>>>>> And when i do a ps i get
>>>>>>
>>>>>> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>>> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0- 
>>>>>> SNAPSHOT.jar
>>>>>> ->
>>>>>>
>>>>>> But the bundle is not activating I don't see any system console  
>>>>>> messages about it starting
>>>>>> The code is simple
>>>>>>
>>>>>> public class Module implements BundleActivator{
>>>>>>
>>>>>>
>>>>>>  public Module() {
>>>>>>      System.out.println("Starting");
>>>>>>  }
>>>>>>
>>>>>>  public void start(BundleContext context) throws Exception {
>>>>>>      logger.info("Starting module");
>>>>>>      System.out.println("Testing updates.");
>>>>>>  }
>>>>>>
>>>>>>  public void stop(BundleContext context) throws Exception {
>>>>>>      // TODO Auto-generated method stub
>>>>>>
>>>>>>  }
>>>>>>
>>>>>> }
>>>>>>
>>>>>> IS there something else I need to do ?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>


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


Re: Bundle not activating

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Show us your complete class and your manifest file.

-> richard

On 4/15/09 1:58 PM, Ben Cuthbert wrote:
> Just all that has been done
>
> config.properties
>
> # Logger
> felix.log.level=4
>
> And the bundle has
>
>     public Module() {
>         System.out.println("Starting");
>     }
>
>     public void start(BundleContext context) throws Exception {
>         System.out.println("starting bundle.");
>     }
>
>     public void stop(BundleContext context) throws Exception {
>         System.out.println("Stopping bundle .");
>     }
>
> Strange thing is, i started felix in eclipse and ran it in debug mode. 
> I thought that by putting
> a breakpoint on my Module call constructor I would get hit, but it did 
> not
>
>
>
> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
> DEBUG: WIRE: 11.0 -> org.osgi.framework -> 0
> Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
> org.osgi.framework.BundleException: Activator start error in bundle [11].
> Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
> org.osgi.framework.BundleException: Activator start error in bundle [11].
> Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
> org.osgi.framework.BundleException: Activator start error in bundle [11].
> Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
> org.osgi.framework.BundleException: Activator start error in bundle [11].
>
> On 15 Apr 2009, at 18:54, Richard S. Hall wrote:
>
>> Set the log level to 4 in conf/config.properties...that's the best 
>> you can do. Otherwise, put some print statements in your activator 
>> start() method and see what is going on.
>>
>> -> richard
>>
>> On 4/15/09 1:51 PM, Ben Cuthbert wrote:
>>> THanks that was the issue. When it deploys tho I still have another 
>>> issue now
>>>
>>> I seem to get this error on the console over and over
>>>
>>> Error while starting bundle: 
>>> /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
>>> org.osgi.framework.BundleException: Activator start error in bundle 
>>> [11]
>>>
>>> What do I tell what the exception is, is there a better level of 
>>> debug that I can set felix into ?
>>>
>>>
>>> On 15 Apr 2009, at 18:08, Richard S. Hall wrote:
>>>
>>>> If you actually have that blank line in your manifest file, then 
>>>> that is probably the issue. Only attributes in the "main" attribute 
>>>> group are processed by OSGi. The "main" group is the first group of 
>>>> attributes. Each blank line separates attribute groups. Thus, your 
>>>> OSGi bundle metadata would be in a separate group.
>>>>
>>>> -> richard
>>>>
>>>> On 4/15/09 12:46 PM, Ben Cuthbert wrote:
>>>>> All
>>>>>
>>>>> I have the following setup
>>>>>
>>>>> Manifest-Version: 1.0
>>>>> Ant-Version: Apache Ant 1.7.1
>>>>> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
>>>>> Built-By: user
>>>>>
>>>>> Name: test
>>>>> Bundle-Version: 1.0-SNAPSHOT
>>>>> Bundle-Name: test
>>>>> Bundle-Activator: test.Module
>>>>> Export-Package: test
>>>>> Private-Package: test
>>>>> Import-Package: org.osgi.framework;version=1.3.0
>>>>>
>>>>> BUt when I deploy the bundle in felix that is running inside eclipse
>>>>>
>>>>> I get
>>>>>
>>>>> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>>>
>>>>> And when i do a ps i get
>>>>>
>>>>> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>>> ->
>>>>>
>>>>> But the bundle is not activating I don't see any system console 
>>>>> messages about it starting
>>>>> The code is simple
>>>>>
>>>>> public class Module implements BundleActivator{
>>>>>
>>>>>
>>>>>   public Module() {
>>>>>       System.out.println("Starting");
>>>>>   }
>>>>>
>>>>>   public void start(BundleContext context) throws Exception {
>>>>>       logger.info("Starting module");
>>>>>       System.out.println("Testing updates.");
>>>>>   }
>>>>>
>>>>>   public void stop(BundleContext context) throws Exception {
>>>>>       // TODO Auto-generated method stub
>>>>>
>>>>>   }
>>>>>
>>>>> }
>>>>>
>>>>> IS there something else I need to do ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
>

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


Re: Bundle not activating

Posted by Ben Cuthbert <be...@me.com>.
Just all that has been done

config.properties

# Logger
felix.log.level=4

And the bundle has

	public Module() {
		System.out.println("Starting");
	}
	
	public void start(BundleContext context) throws Exception {
		System.out.println("starting bundle.");
	}

	public void stop(BundleContext context) throws Exception {
		System.out.println("Stopping bundle .");
	}

Strange thing is, i started felix in eclipse and ran it in debug mode.  
I thought that by putting
a breakpoint on my Module call constructor I would get hit, but it did  
not



Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
DEBUG: WIRE: 11.0 -> org.osgi.framework -> 0
Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar:  
org.osgi.framework.BundleException: Activator start error in bundle  
[11].
Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar:  
org.osgi.framework.BundleException: Activator start error in bundle  
[11].
Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar:  
org.osgi.framework.BundleException: Activator start error in bundle  
[11].
Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar:  
org.osgi.framework.BundleException: Activator start error in bundle  
[11].

On 15 Apr 2009, at 18:54, Richard S. Hall wrote:

> Set the log level to 4 in conf/config.properties...that's the best  
> you can do. Otherwise, put some print statements in your activator  
> start() method and see what is going on.
>
> -> richard
>
> On 4/15/09 1:51 PM, Ben Cuthbert wrote:
>> THanks that was the issue. When it deploys tho I still have another  
>> issue now
>>
>> I seem to get this error on the console over and over
>>
>> Error while starting bundle: /felix-osgi/deploy/test-1.0- 
>> SNAPSHOT.jar: org.osgi.framework.BundleException: Activator start  
>> error in bundle [11]
>>
>> What do I tell what the exception is, is there a better level of  
>> debug that I can set felix into ?
>>
>>
>> On 15 Apr 2009, at 18:08, Richard S. Hall wrote:
>>
>>> If you actually have that blank line in your manifest file, then  
>>> that is probably the issue. Only attributes in the "main"  
>>> attribute group are processed by OSGi. The "main" group is the  
>>> first group of attributes. Each blank line separates attribute  
>>> groups. Thus, your OSGi bundle metadata would be in a separate  
>>> group.
>>>
>>> -> richard
>>>
>>> On 4/15/09 12:46 PM, Ben Cuthbert wrote:
>>>> All
>>>>
>>>> I have the following setup
>>>>
>>>> Manifest-Version: 1.0
>>>> Ant-Version: Apache Ant 1.7.1
>>>> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
>>>> Built-By: user
>>>>
>>>> Name: test
>>>> Bundle-Version: 1.0-SNAPSHOT
>>>> Bundle-Name: test
>>>> Bundle-Activator: test.Module
>>>> Export-Package: test
>>>> Private-Package: test
>>>> Import-Package: org.osgi.framework;version=1.3.0
>>>>
>>>> BUt when I deploy the bundle in felix that is running inside  
>>>> eclipse
>>>>
>>>> I get
>>>>
>>>> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>>
>>>> And when i do a ps i get
>>>>
>>>> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0- 
>>>> SNAPSHOT.jar
>>>> ->
>>>>
>>>> But the bundle is not activating I don't see any system console  
>>>> messages about it starting
>>>> The code is simple
>>>>
>>>> public class Module implements BundleActivator{
>>>>
>>>>
>>>>   public Module() {
>>>>       System.out.println("Starting");
>>>>   }
>>>>
>>>>   public void start(BundleContext context) throws Exception {
>>>>       logger.info("Starting module");
>>>>       System.out.println("Testing updates.");
>>>>   }
>>>>
>>>>   public void stop(BundleContext context) throws Exception {
>>>>       // TODO Auto-generated method stub
>>>>
>>>>   }
>>>>
>>>> }
>>>>
>>>> IS there something else I need to do ?
>>>>
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>


Re: Bundle not activating

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Set the log level to 4 in conf/config.properties...that's the best you 
can do. Otherwise, put some print statements in your activator start() 
method and see what is going on.

-> richard

On 4/15/09 1:51 PM, Ben Cuthbert wrote:
> THanks that was the issue. When it deploys tho I still have another 
> issue now
>
> I seem to get this error on the console over and over
>
> Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar: 
> org.osgi.framework.BundleException: Activator start error in bundle [11]
>
> What do I tell what the exception is, is there a better level of debug 
> that I can set felix into ?
>
>
> On 15 Apr 2009, at 18:08, Richard S. Hall wrote:
>
>> If you actually have that blank line in your manifest file, then that 
>> is probably the issue. Only attributes in the "main" attribute group 
>> are processed by OSGi. The "main" group is the first group of 
>> attributes. Each blank line separates attribute groups. Thus, your 
>> OSGi bundle metadata would be in a separate group.
>>
>> -> richard
>>
>> On 4/15/09 12:46 PM, Ben Cuthbert wrote:
>>> All
>>>
>>> I have the following setup
>>>
>>> Manifest-Version: 1.0
>>> Ant-Version: Apache Ant 1.7.1
>>> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
>>> Built-By: user
>>>
>>> Name: test
>>> Bundle-Version: 1.0-SNAPSHOT
>>> Bundle-Name: test
>>> Bundle-Activator: test.Module
>>> Export-Package: test
>>> Private-Package: test
>>> Import-Package: org.osgi.framework;version=1.3.0
>>>
>>> BUt when I deploy the bundle in felix that is running inside eclipse
>>>
>>> I get
>>>
>>> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>>
>>> And when i do a ps i get
>>>
>>> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>> ->
>>>
>>> But the bundle is not activating I don't see any system console 
>>> messages about it starting
>>> The code is simple
>>>
>>> public class Module implements BundleActivator{
>>>
>>>
>>>    public Module() {
>>>        System.out.println("Starting");
>>>    }
>>>
>>>    public void start(BundleContext context) throws Exception {
>>>        logger.info("Starting module");
>>>        System.out.println("Testing updates.");
>>>    }
>>>
>>>    public void stop(BundleContext context) throws Exception {
>>>        // TODO Auto-generated method stub
>>>
>>>    }
>>>
>>> }
>>>
>>> IS there something else I need to do ?
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
>

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


Re: Bundle not activating

Posted by Ben Cuthbert <be...@me.com>.
THanks that was the issue. When it deploys tho I still have another  
issue now

I seem to get this error on the console over and over

Error while starting bundle: /felix-osgi/deploy/test-1.0-SNAPSHOT.jar:  
org.osgi.framework.BundleException: Activator start error in bundle [11]

What do I tell what the exception is, is there a better level of debug  
that I can set felix into ?


On 15 Apr 2009, at 18:08, Richard S. Hall wrote:

> If you actually have that blank line in your manifest file, then  
> that is probably the issue. Only attributes in the "main" attribute  
> group are processed by OSGi. The "main" group is the first group of  
> attributes. Each blank line separates attribute groups. Thus, your  
> OSGi bundle metadata would be in a separate group.
>
> -> richard
>
> On 4/15/09 12:46 PM, Ben Cuthbert wrote:
>> All
>>
>> I have the following setup
>>
>> Manifest-Version: 1.0
>> Ant-Version: Apache Ant 1.7.1
>> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
>> Built-By: user
>>
>> Name: test
>> Bundle-Version: 1.0-SNAPSHOT
>> Bundle-Name: test
>> Bundle-Activator: test.Module
>> Export-Package: test
>> Private-Package: test
>> Import-Package: org.osgi.framework;version=1.3.0
>>
>> BUt when I deploy the bundle in felix that is running inside eclipse
>>
>> I get
>>
>> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>>
>> And when i do a ps i get
>>
>> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>> ->
>>
>> But the bundle is not activating I don't see any system console  
>> messages about it starting
>> The code is simple
>>
>> public class Module implements BundleActivator{
>>
>>
>>    public Module() {
>>        System.out.println("Starting");
>>    }
>>
>>    public void start(BundleContext context) throws Exception {
>>        logger.info("Starting module");
>>        System.out.println("Testing updates.");
>>    }
>>
>>    public void stop(BundleContext context) throws Exception {
>>        // TODO Auto-generated method stub
>>
>>    }
>>
>> }
>>
>> IS there something else I need to do ?
>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>


Re: Bundle not activating

Posted by "Richard S. Hall" <he...@ungoverned.org>.
If you actually have that blank line in your manifest file, then that is 
probably the issue. Only attributes in the "main" attribute group are 
processed by OSGi. The "main" group is the first group of attributes. 
Each blank line separates attribute groups. Thus, your OSGi bundle 
metadata would be in a separate group.

-> richard

On 4/15/09 12:46 PM, Ben Cuthbert wrote:
> All
>
> I have the following setup
>
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.7.1
> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
> Built-By: user
>
> Name: test
> Bundle-Version: 1.0-SNAPSHOT
> Bundle-Name: test
> Bundle-Activator: test.Module
> Export-Package: test
> Private-Package: test
> Import-Package: org.osgi.framework;version=1.3.0
>
> BUt when I deploy the bundle in felix that is running inside eclipse
>
> I get
>
> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>
> And when i do a ps i get
>
> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
> ->
>
> But the bundle is not activating I don't see any system console 
> messages about it starting
> The code is simple
>
> public class Module implements BundleActivator{
>
>
>     public Module() {
>         System.out.println("Starting");
>     }
>
>     public void start(BundleContext context) throws Exception {
>         logger.info("Starting module");
>         System.out.println("Testing updates.");
>     }
>
>     public void stop(BundleContext context) throws Exception {
>         // TODO Auto-generated method stub
>
>     }
>
> }
>
> IS there something else I need to do ?
>
>
>
>

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


Re: Bundle not activating

Posted by Ching-Yi Chan <ch...@gmail.com>.
please check /felix-osgi/deploy/test-1.0-SNAPSHOT.jar has
META-INF/MANITFEST.MF


2009/4/16 Ben Cuthbert <be...@me.com>

> All
>
> I have the following setup
>
> Manifest-Version: 1.0
> Ant-Version: Apache Ant 1.7.1
> Created-By: 1.6.0_07-b06-57 (Apple Inc.)
> Built-By: user
>
> Name: test
> Bundle-Version: 1.0-SNAPSHOT
> Bundle-Name: test
> Bundle-Activator: test.Module
> Export-Package: test
> Private-Package: test
> Import-Package: org.osgi.framework;version=1.3.0
>
> BUt when I deploy the bundle in felix that is running inside eclipse
>
> I get
>
> -> Installed /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
>
> And when i do a ps i get
>
> [  10] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
> [  11] [Active     ] [    1] /felix-osgi/deploy/test-1.0-SNAPSHOT.jar
> ->
>
> But the bundle is not activating I don't see any system console messages
> about it starting
> The code is simple
>
> public class Module implements BundleActivator{
>
>
>        public Module() {
>                System.out.println("Starting");
>        }
>
>        public void start(BundleContext context) throws Exception {
>                logger.info("Starting module");
>                System.out.println("Testing updates.");
>        }
>
>        public void stop(BundleContext context) throws Exception {
>                // TODO Auto-generated method stub
>
>        }
>
> }
>
> IS there something else I need to do ?
>
>
>
>