EasyBeans on Felix

View: New views
13 Messages — Rating Filter:   Alert me  

EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am new to both OSGi and the EasyBeans implementation and have been considering moving a few of our applications from that are currently running EJB and JPA on Glassfish v2 to an OSGi.

I have apache felix running and have easybeans deployed and when I list the services All of the EasyBeans Bundles are Active. However, I am unable to resolve any of the beans that I am trying to deploy. This is most likely do to my now knowing how to configure this properly. I tried downloading the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1, but when I deploy these bundles and run the example I get the following errors:

-> ezb list
Unable to execute command: java.lang.NullPointerException: Specified service reference cannot be null.
java.lang.NullPointerException: Specified service reference cannot be null.
at org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
at net.luminis.ezb.example2.cmd.EzbCommand.execute(EzbCommand.java:46)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activatorjava:167)
at java.lang.Thread.run(Thread.java:613)

This error is very similar to the error I get when I try to lookup my beans.

One thing I have notices is that when I attempt to list the Declarative Services I get the following:

-> scr list
   Id   State          Name
[  17] [active       ] hsqldb-component-factory
[  15] [unsatisifed  ] jotm-component-factory
[  19] [unsatisifed  ] joram-component-factory
[  16] [unsatisifed  ] quartz-component-factory
[  18] [unsatisifed  ] core-component
[  20] [unsatisifed  ] jdbcpool-component-factory
[  14] [active       ] carol-component-factory

If I get information on the core-component it lists the following:

-> scr info 18
ID: 18
Name: core-component
Bundle: org.ow2.easybeans.core (10)
State: unsatisifed
Default State: enabled
Activation: immediate
Services: org.ow2.easybeans.osgi.core.EZBCoreService
Service Type: service
Reference: carolComponent
    Satisfied: unsatisfied
    Service Name: org.ow2.easybeans.component.carol.CarolComponent
    Multiple: single
    Optional: mandatory
    Policy: static
Reference: ezbComponents
    Satisfied: satisfied
    Service Name: org.ow2.easybeans.component.api.EZBComponent
    Multiple: multiple
    Optional: optional
    Policy: dynamic
Reference: ezbContainers
    Satisfied: satisfied
    Service Name: org.ow2.easybeans.api.EZBContainer
    Multiple: multiple
    Optional: optional
    Policy: dynamic
Properties:
    component.id = 18
    component.name = core-component
    service.pid = org.ow2.easybeans.core





THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: EasyBeans on Felix

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Could you show us the result of a 'scr info 14' ?
I want to know why the carol-component-factory is active (should
provides the missing CarolComponent required by the core for example)
but core still have unsatisfied dependencies...

Can you also show me the list of services on your instance  (command:
'services') ?

Thanks
--Guillaume

Skinner Chad a écrit :

> I am new to both OSGi and the EasyBeans implementation and have been
> considering moving a few of our applications from that are currently
> running EJB and JPA on Glassfish v2 to an OSGi.
>
> I have apache felix running and have easybeans deployed and when I
> list the services All of the EasyBeans Bundles are Active. However, I
> am unable to resolve any of the beans that I am trying to deploy. This
> is most likely do to my now knowing how to configure this properly. I
> tried downloading the example
> from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1,
> but when I deploy these bundles and run the example I get the
> following errors:
>
> -> ezb list
> Unable to execute command: java.lang.NullPointerException: Specified
> service reference cannot be null.
> java.lang.NullPointerException: Specified service reference cannot be
> null.
> at
> org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
> at net.luminis.ezb.example2.cmd.EzbCommand.execute(EzbCommand.java:46)
> at
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
> at
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activatorjava:167)
> at java.lang.Thread.run(Thread.java:613)
>
> This error is very similar to the error I get when I try to lookup my
> beans.
>
> One thing I have notices is that when I attempt to list the
> Declarative Services I get the following:
>
> -> scr list
>    Id   State          Name
> [  17] [active       ] hsqldb-component-factory
> [  15] [unsatisifed  ] jotm-component-factory
> [  19] [unsatisifed  ] joram-component-factory
> [  16] [unsatisifed  ] quartz-component-factory
> [  18] [unsatisifed  ] core-component
> [  20] [unsatisifed  ] jdbcpool-component-factory
> [  14] [active       ] carol-component-factory
>
> If I get information on the core-component it lists the following:
>
> -> scr info 18
> ID: 18
> Name: core-component
> Bundle: org.ow2.easybeans.core (10)
> State: unsatisifed
> Default State: enabled
> Activation: immediate
> Services: org.ow2.easybeans.osgi.core.EZBCoreService
> Service Type: service
> Reference: carolComponent
>     Satisfied: unsatisfied
>     Service Name: org.ow2.easybeans.component.carol.CarolComponent
>     Multiple: single
>     Optional: mandatory
>     Policy: static
> Reference: ezbComponents
>     Satisfied: satisfied
>     Service Name: org.ow2.easybeans.component.api.EZBComponent
>     Multiple: multiple
>     Optional: optional
>     Policy: dynamic
> Reference: ezbContainers
>     Satisfied: satisfied
>     Service Name: org.ow2.easybeans.api.EZBContainer
>     Multiple: multiple
>     Optional: optional
>     Policy: dynamic
> Properties:
>     component.id = 18
>     component.name = core-component
>     service.pid = org.ow2.easybeans.core
>
>
>
>
> ------------------------------------------------------------------------
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
> ------------------------------------------------------------------------
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

[Guillaume_Sauthier.vcf]

begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard



Re: Re: EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is the requested information:

-> scr info 14
ID: 14
Name: carol-component-factory
Bundle: org.ow2.easybeans.component.carol (4)
State: active
Default State: enabled
Activation: delayed
Services: org.osgi.service.cm.ManagedServiceFactory
Service Type: service
Properties:
    component.id = 14
    component.name = carol-component-factory
    service.pid = org.ow2.easybeans.component.carol.carolcomponent

The services:

-> services

System Bundle (0) provides:
---------------------------
org.osgi.service.startlevel.StartLevel
org.osgi.service.packageadmin.PackageAdmin

EasyBeans/OSGi :: Components :: Carol (4) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
-------------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JORAM (7) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JOTM (8) provides:
--------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: Quartz (9) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Core (10) provides:
-------------------------------------
org.osgi.service.cm.ManagedService

Apache Felix Shell Service (16) provides:
-----------------------------------------
org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService

Apache Felix Bundle Repository (18) provides:
---------------------------------------------
org.osgi.service.obr.RepositoryAdmin

Apache Felix Declarative Services (19) provides:
------------------------------------------------
org.apache.felix.scr.ScrService

Apache Felix Configuration Admin Service (20) provides:
-------------------------------------------------------
org.apache.felix.cm.PersistenceManager
orgosgi.service.cm.ConfigurationAdmin

Apache Felix iPOJO (22) provides:
---------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.architecture.Architecture
org.apache.felix.ipojo.architecture.Architecture

Apache Felix iPOJO Composite (24) provides:
-------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Event Admin Handler (25) provides:
-----------------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Extender Pattern Handler (26) provides:
----------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO JMX Handler (27) provides:
---------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
---------------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO White Board Pattern Handler (29) provides:
-------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix File Install (30) provides:
----------------------------------------
org.osgi.service.cm.ManagedServiceFactory

Apache Felix Log Service (31) provides:
---------------------------------------
org.osgi.service.log.LogService
org.osgi.service.log.LogReaderService

Blog - EJB (453) provides:
--------------------------
nettopekapublicschools.profile.service.ProfileMenuProviderService

Felix Shell Commands (474) provides:
------------------------------------
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory

Employee Service - EJB (475) provides:
--------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

News System - EJB (478) provides:
---------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Wiki - EJB (481) provides:
--------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Student Service - EJB (483) provides:
-------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Anything service with  net.topekapublicschools is from our applications.

-- Chad




On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:

Hi

Could you show us the result of a 'scr info 14' ?
I want to know why the carol-component-factory is active (should provides the missing CarolComponent required by the core for example) but core still have unsatisfied dependencies...

Can you also show me the list of services on your instance  (command: 'services') ?

Thanks
--Guillaume

Skinner Chad a écrit :
I am new to both OSGi and the EasyBeans implementation and have been considering moving a few of our applications from that are currently running EJB and JPA on Glassfish v2 to an OSGi.

I have apache felix running and have easybeans deployed and when I list the services All of the EasyBeans Bundles are Active. However, I am unable to resolve any of the beans that I am trying to deploy. This is most likely do to my now knowing how to configure this properly. I tried downloading the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1, but when I deploy these bundles and run the example I get the following errors:

-> ezb list
Unable to execute command: java.lang.NullPointerException: Specified service reference cannot be null.
javalang.NullPointerException: Specified service reference cannot be null.
at org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
at net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activatorjava:167)
at java.lang.Thread.run(Thread.java:613)

This error is very similar to the error I get when I try to lookup my beans.

One thing I have notices is that when I attempt to list the Declarative Services I get the following:

-> scr list
  Id   State          Name
[  17] [active       ] hsqldb-component-factory
[  15] [unsatisifed  ] jotm-component-factory
[  19] [unsatisifed  ] joram-component-factory
[  16] [unsatisifed  ] quartz-component-factory
[  18] [unsatisifed  ] core-component
[  20] [unsatisifed  ] jdbcpool-component-factory
[  14] [active       ] carol-component-factory

If I get information on the core-component it lists the following:

-> scr info 18
ID: 18
Name: core-component
Bundle: org.ow2.easybeans.core (10)
State: unsatisifed
Default State: enabled
Activation: immediate
Services: org.ow2.easybeans.osgi.core.EZBCoreService
Service Type: service
Reference: carolComponent
   Satisfied: unsatisfied
   Service Name: org.ow2.easybeans.component.carol.CarolComponent
   Multiple: single
   Optional: mandatory
   Policy: static
Reference: ezbComponents
   Satisfied: satisfied
   Service Name: org.ow2.easybeans.component.api.EZBComponent
   Multiple: multiple
   Optional: optional
   Policy: dynamic
Reference: ezbContainers
   Satisfied: satisfied
   Service Name: org.ow2.easybeans.api.EZBContainer
   Multiple: multiple
   Optional: optional
   Policy: dynamic
Properties:
   component.id = 18
   component.name = core-component
   service.pid = org.ow2.easybeans.core




------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthier.vcf>


THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: Re: EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using the following configuration for felix:

# =================================================================== #
#          Felix Configuration file                                   #
# =================================================================== #


org.osgi.framework.bootdelegation= \
  sun.*,\
  com.sun.*,\
  javax.management.*,\
  javax.management.openmbean.*

org.osgi.framework.startlevel=3

felix.auto.start.1= \
  file:bundle/osgi/org.osgi.compendium-1.2.0.jar \
  file:bundle/osgi/org.osgi.core-1.2.0.jar \
  file:bundle/osgi/org.osgi.foundation-1.2.0.jar \
  file:bundle/osgi/org.osgi.service.obr-1.0.2.jar \
  file:bundle/org.apache.felix.shell-1.0.2.jar \
  file:bundle/org.apache.felix.shell.tui-1.0.2.jar \
  file:bundle/org.apache.felix.bundlerepository-1.2.1.jar \
  file:bundle/org.apache.felix.scr-1.0.6jar \
  file:bundle/org.apache.felix.configadmin-1.010.jar \
  file:bundle/org.apache.felix.dependencymanager-1.1.0-2008.07.10.jar \
  file:bundle/org.apachefelix.ipojo-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.arch-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.composite-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.handler.eventadmin-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.handler.extender-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.handler.jmx-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.handler.temporal-1.2.0.jar \
  file:bundle/org.apache.felix.ipojo.handler.whiteboard-1.2.0.jar \
  file:bundle/org.apache.felix.fileinstall-0.9.0.jar \
  file:bundle/org.apache.felix.log-0.9.0-incubator-2007.12.14.jar

felix.auto.start.2= \
  file:bundle/springsource/com.springsource.org.apache.commons.logging-1.1.1.jar \
  file:bundle/springsource/com.springsource.com.mysql.jdbc-5.1.6.jar \
  file:bundle/easybeans/easybeans-agent-1.0.2.jar \
  file:bundle/easybeans/easybeans-component-carol-1.0.2.jar \
  file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar \
  file:bundle/easybeans/easybeans-component-jdbcpool-10.2.jar \
  file:bundle/easybeans/easybeans-component-joram-1.0.2.jar \
  file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar \
  file:bundle/easybeans/easybeans-component-quartz-1.0.2.jar \
  file:bundle/easybeans/easybeans-core-1.0.2.jar \
  file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar


#  file:bundle/easybeans/easybeans-agent-1.0.2.jar \
#  file:bundle/easybeans/easybeans-core-1.0.2.jar \
#  file:bundle/easybeans/easybeans-component-carol-1.0.2.jar \
#  file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar \
#  file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar \
#  file:bundle/easybeans/easybeans-component-joram-1.0.2.jar \
#  file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar \
#  file:bundle/easybeans/easybeans-component-quartz-1.0.2.jar \
#  file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar  \
#  file:bundle/eclipselink/javax.persistence_1.99.0.jar \
#  file:bundle/eclipselink/javax.xml.bind_2.0.0.jar \
#  file:bundle/eclipselink/javax.xml.soap_1.3.0.jar \
#  file:bundle/eclipselink/javax.xml.stream_1.0.0.jar \
#  file:bundle/eclipselink/org.eclipse.persistence.antlr_1.0.2.jar \
#  file:bundle/eclipselink/org.eclipse.persistence.asm_1.0.2jar \
#  file:bundle/eclipselink/org.eclipse.persistence.core_1.0.2.jar \
#  file:bundle/eclipselink/org.eclipsepersistence.jpa_1.0.2.jar \
#  file:bundle/eclipselink/org.eclipse.persistence.moxy_1.0.2.jar \
#  file:bundle/eclipselink/org.eclipse.persistence.sdo_1.0.2.jar
  
felix.startlevel.bundle=3

felix.log.level=3

#
# Bundle config properties.
#
org.osgi.service.http.port=8080
obr.shell.telnet=on
obr.repository.url= \

felix.fileinstall.poll = 2000
felix.fileinstall.dir = ./autoload
felix.fileinstall.debug = 1

felixfragment.validation=warning


#############################################################################
# Thirdparty Configuration directives                                       #
#############################################################################
org.ow2.easybeans.osgi.conf.dir=./conf





#############################################################################
#############################################################################
##
## The following was copied from the default.properties from within the
## felix.jar file. The primary changes have been to remove all of the references
## to the activation, transaction and transaction.xa jar files as this seems to
## conflict with the EasyBean OSGi bundles.
##
#############################################################################

<<system exports admitted>>


-- Chad




On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:

Hi

Could you show us the result of a 'scr info 14' ?
I want to know why the carol-component-factory is active (should provides the missing CarolComponent required by the core for example) but core still have unsatisfied dependencies...

Can you also show me the list of services on your instance  (command: 'services') ?

Thanks
--Guillaume

Skinner Chad a écrit :
I am new to both OSGi and the EasyBeans implementation and have been considering moving a few of our applications from that are currently running EJB and JPA on Glassfish v2 to an OSGi.

I have apache felix running and have easybeans deployed and when I list the services All of the EasyBeans Bundles are Active. However, I am unable to resolve any of the beans that I am trying to deploy. This is most likely do to my now knowing how to configure this properly. I tried downloading the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1, but when I deploy these bundles and run the example I get the following errors:

-> ezb list
Unable to execute command: java.lang.NullPointerException: Specified service reference cannot be null.
java.lang.NullPointerException: Specified service reference cannot be null.
at org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
at net.luminis.ezb.example2.cmd.EzbCommand.execute(EzbCommand.java:46)
at org.apachefelix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activatorjava:167)
at java.lang.Thread.run(Thread.java:613)

This error is very similar to the error I get when I try to lookup my beans.

One thing I have notices is that when I attempt to list the Declarative Services I get the following:

-> scr list
  Id   State          Name
[  17] [active       ] hsqldb-component-factory
[  15] [unsatisifed  ] jotm-component-factory
[  19] [unsatisifed  ] joram-component-factory
[  16] [unsatisifed  ] quartz-component-factory
[  18] [unsatisifed  ] core-component
[  20] [unsatisifed  ] jdbcpool-component-factory
[  14] [active       ] carol-component-factory

If I get information on the core-component it lists the following:

-> scr info 18
ID: 18
Name: core-component
Bundle: org.ow2.easybeans.core (10)
State: unsatisifed
Default State: enabled
Activation: immediate
Services: org.ow2.easybeans.osgi.core.EZBCoreService
Service Type: service
Reference: carolComponent
   Satisfied: unsatisfied
   Service Name: org.ow2.easybeans.component.carol.CarolComponent
   Multiple: single
   Optional: mandatory
   Policy: static
Reference: ezbComponents
   Satisfied: satisfied
   Service Name: org.ow2.easybeans.component.api.EZBComponent
   Multiple: multiple
   Optional: optional
   Policy: dynamic
Reference: ezbContainers
   Satisfied: satisfied
   Service Name: orgow2.easybeans.api.EZBContainer
   Multiple: multiple
   Optional: optional
   Policy: dynamic
Properties:
   component.id = 18
   component.name = core-component
   service.pid = org.ow2.easybeans.core




------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthier.vcf>


THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: Re: Re: EasyBeans on Felix

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmmm, do you use the easybeans-agent bundle ?
--G

Skinner Chad a écrit :

> Here is the requested information:
>
> -> scr info 14
> ID: 14
> Name: carol-component-factory
> Bundle: org.ow2.easybeans.component.carol (4)
> State: active
> Default State: enabled
> Activation: delayed
> Services: org.osgi.service.cm.ManagedServiceFactory
> Service Type: service
> Properties:
>     component.id = 14
>     component.name = carol-component-factory
>     service.pid = org.ow2.easybeans.component.carol.carolcomponent
>
> The services:
>
> -> services
>
> System Bundle (0) provides:
> ---------------------------
> org.osgi.service.startlevel.StartLevel
> org.osgi.service.packageadmin.PackageAdmin
>
> EasyBeans/OSGi :: Components :: Carol (4) provides:
> ---------------------------------------------------
> org.osgi.service.cm.ManagedService
> org.osgi.service.cm.ManagedServiceFactory
>
> EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
> ----------------------------------------------------
> org.osgi.service.cm.ManagedService
> org.osgi.service.cm.ManagedServiceFactory
>
> EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
> -------------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Components :: JORAM (7) provides:
> ---------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Components :: JOTM (8) provides:
> --------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Components :: Quartz (9) provides:
> ----------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Core (10) provides:
> -------------------------------------
> org.osgi.service.cm.ManagedService
>
> Apache Felix Shell Service (16) provides:
> -----------------------------------------
> org.apache.felix.shell.ShellService,
> org.ungoverned.osgi.service.shell.ShellService
>
> Apache Felix Bundle Repository (18) provides:
> ---------------------------------------------
> org.osgi.service.obr.RepositoryAdmin
>
> Apache Felix Declarative Services (19) provides:
> ------------------------------------------------
> org.apache.felix.scr.ScrService
>
> Apache Felix Configuration Admin Service (20) provides:
> -------------------------------------------------------
> org.apache.felix.cm.PersistenceManager
> orgosgi.service.cm.ConfigurationAdmin
>
> Apache Felix iPOJO (22) provides:
> ---------------------------------
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.architecture.Architecture
> org.apache.felix.ipojo.architecture.Architecture
>
> Apache Felix iPOJO Composite (24) provides:
> -------------------------------------------
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
>
> Apache Felix iPOJO Event Admin Handler (25) provides:
> -----------------------------------------------------
> org.apache.felix.ipojo.HandlerFactory
> org.apache.felix.ipojo.HandlerFactory
>
> Apache Felix iPOJO Extender Pattern Handler (26) provides:
> ----------------------------------------------------------
> org.apache.felix.ipojo.HandlerFactory
>
> Apache Felix iPOJO JMX Handler (27) provides:
> ---------------------------------------------
> org.apache.felix.ipojo.HandlerFactory
>
> Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
> ---------------------------------------------------------------------
> org.apache.felix.ipojo.HandlerFactory
>
> Apache Felix iPOJO White Board Pattern Handler (29) provides:
> -------------------------------------------------------------
> org.apache.felix.ipojo.HandlerFactory
>
> Apache Felix File Install (30) provides:
> ----------------------------------------
> org.osgi.service.cm.ManagedServiceFactory
>
> Apache Felix Log Service (31) provides:
> ---------------------------------------
> org.osgi.service.log.LogService
> org.osgi.service.log.LogReaderService
>
> Blog - EJB (453) provides:
> --------------------------
> nettopekapublicschools.profile.service.ProfileMenuProviderService
>
> Felix Shell Commands (474) provides:
> ------------------------------------
> org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory
> org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory
>
> Employee Service - EJB (475) provides:
> --------------------------------------
> net.topekapublicschools.profile.service.ProfileMenuProviderService
>
> News System - EJB (478) provides:
> ---------------------------------
> net.topekapublicschools.profile.service.ProfileMenuProviderService
>
> Wiki - EJB (481) provides:
> --------------------------
> net.topekapublicschools.profile.service.ProfileMenuProviderService
>
> Student Service - EJB (483) provides:
> -------------------------------------
> net.topekapublicschools.profile.service.ProfileMenuProviderService
>
> Anything service with  net.topekapublicschools is from our applications.
>
> -- Chad
>
>
>
>
> On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:
>
>> Hi
>>
>> Could you show us the result of a 'scr info 14' ?
>> I want to know why the carol-component-factory is active (should
>> provides the missing CarolComponent required by the core for example)
>> but core still have unsatisfied dependencies...
>>
>> Can you also show me the list of services on your instance  (command:
>> 'services') ?
>>
>> Thanks
>> --Guillaume
>>
>> Skinner Chad a écrit :
>>> I am new to both OSGi and the EasyBeans implementation and have been
>>> considering moving a few of our applications from that are currently
>>> running EJB and JPA on Glassfish v2 to an OSGi.
>>>
>>> I have apache felix running and have easybeans deployed and when I
>>> list the services All of the EasyBeans Bundles are Active. However,
>>> I am unable to resolve any of the beans that I am trying to deploy.
>>> This is most likely do to my now knowing how to configure this
>>> properly. I tried downloading the example from
>>> http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1,
>>> but when I deploy these bundles and run the example I get the
>>> following errors:
>>>
>>> -> ezb list
>>> Unable to execute command: java.lang.NullPointerException: Specified
>>> service reference cannot be null.
>>> javalang.NullPointerException: Specified service reference cannot be
>>> null.
>>> at
>>> org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
>>> at net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
>>> at
>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
>>> at
>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activatorjava:167)
>>> at java.lang.Thread.run(Thread.java:613)
>>>
>>> This error is very similar to the error I get when I try to lookup
>>> my beans.
>>>
>>> One thing I have notices is that when I attempt to list the
>>> Declarative Services I get the following:
>>>
>>> -> scr list
>>>   Id   State          Name
>>> [  17] [active       ] hsqldb-component-factory
>>> [  15] [unsatisifed  ] jotm-component-factory
>>> [  19] [unsatisifed  ] joram-component-factory
>>> [  16] [unsatisifed  ] quartz-component-factory
>>> [  18] [unsatisifed  ] core-component
>>> [  20] [unsatisifed  ] jdbcpool-component-factory
>>> [  14] [active       ] carol-component-factory
>>>
>>> If I get information on the core-component it lists the following:
>>>
>>> -> scr info 18
>>> ID: 18
>>> Name: core-component
>>> Bundle: org.ow2.easybeans.core (10)
>>> State: unsatisifed
>>> Default State: enabled
>>> Activation: immediate
>>> Services: org.ow2.easybeans.osgi.core.EZBCoreService
>>> Service Type: service
>>> Reference: carolComponent
>>>    Satisfied: unsatisfied
>>>    Service Name: org.ow2.easybeans.component.carol.CarolComponent
>>>    Multiple: single
>>>    Optional: mandatory
>>>    Policy: static
>>> Reference: ezbComponents
>>>    Satisfied: satisfied
>>>    Service Name: org.ow2.easybeans.component.api.EZBComponent
>>>    Multiple: multiple
>>>    Optional: optional
>>>    Policy: dynamic
>>> Reference: ezbContainers
>>>    Satisfied: satisfied
>>>    Service Name: org.ow2.easybeans.api.EZBContainer
>>>    Multiple: multiple
>>>    Optional: optional
>>>    Policy: dynamic
>>> Properties:
>>>    component.id = 18
>>>    component.name = core-component
>>>    service.pid = org.ow2.easybeans.core
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION
>>> IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>> ------------------------------------------------------------------------
>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION
>>> IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>
>> <Guillaume_Sauthier.vcf>
>
> ------------------------------------------------------------------------
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

[Guillaume_Sauthier.vcf]

begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard



Re: Re: Re: Re: EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am trying to :-)

I blew away my configuration and manually installed the EasyBeans bundles and then I started the Agent. The following is the console output:

chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar ./bin/felix.jar 

Welcome to Felix
=================

-> ps
START LEVEL 3
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
[   3] [Active     ] [    1] file:bundle/osgi/org.osgi.foundation-1.2.0.jar
[   4] [Active     ] [    1] OSGi OBR Service API (1)
[   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
[   9] [Active     ] [    1] Apache Felix Configuration Admin Service (1.0.10)
[  10] [Active     ] [    1] Apache Felix Dependency Manager (11.0.10)

-> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
Bundle ID: 14
-> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
Bundle ID: 15
-> install file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
Bundle ID: 16
-> install file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
Bundle ID: 17
-> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
Bundle ID: 18
-> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
Bundle ID: 19
-> install file:bundle/easybeans/easybeans-component-quartz-1.0.2.jar
Bundle ID: 20
-> install file:bundle/easybeans/easybeans-core-1.0.2.jar
Bundle ID: 21
-> install file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
Bundle ID: 22
-> ps
START LEVEL 3
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
[   3] [Active     ] [    1] file:bundle/osgi/org.osgi.foundation-1.2.0.jar
[   4] [Active     ] [    1] OSGi OBR Service API (1)
[   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
[   9] [Active     ] [    1] Apache Felix Configuration Admin Service (1.0.10)
[  10] [Active     ] [    1] Apache Felix Dependency Manager (1.1.0.10)
[  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (1.0.2)
[  15] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Carol (1.0.2)
[  16] [Installed  ] [    3] EasyBeans/OSGi :: Components :: HSQLDB (1.0.2)
[  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC Pool (1.0.2)
[  18] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JORAM (1.0.2)
[  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM (1.0.2)
[  20] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Quartz (1.0.2)
[  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
[  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons Logging (1.0.5)
-> start 14
3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans Configuration file './conf/easybeans.xml'
WARNING: org.ow2.easybeans.component.jdbcpool.I18n (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties (org.apachefelix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n.properties)
WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n_en)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties (org.apache.felix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n_en_US)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties (org.apache.felix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.carol [15]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.jotm [19]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.quartz [20]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.hsqldb [16]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.core [21]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeanscomponent.joram [18]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.jdbcpool [17]



On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:

Hmmm, do you use the easybeans-agent bundle ?
--G

Skinner Chad a écrit :
Here is the requested information:

-> scr info 14
ID: 14
Name: carol-component-factory
Bundle: orgow2.easybeans.component.carol (4)
State: active
Default State: enabled
Activation: delayed
Services: org.osgi.service.cm.ManagedServiceFactory
Service Type: service
Properties:
   component.id = 14
   component.name = carol-component-factory
   service.pid = org.ow2.easybeans.component.carol.carolcomponent

The services:

-> services

System Bundle (0) provides:
---------------------------
org.osgi.servicestartlevel.StartLevel
org.osgi.service.packageadmin.PackageAdmin

EasyBeans/OSGi :: Components :: Carol (4) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
-------------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JORAM (7) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JOTM (8) provides:
--------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: Quartz (9) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Core (10) provides:
-------------------------------------
org.osgi.service.cm.ManagedService

Apache Felix Shell Service (16) provides:
-----------------------------------------
org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService

Apache Felix Bundle Repository (18) provides:
---------------------------------------------
org.osgi.service.obr.RepositoryAdmin

Apache Felix Declarative Services (19) provides:
------------------------------------------------
org.apache.felix.scr.ScrService

Apache Felix Configuration Admin Service (20) provides:
-------------------------------------------------------
org.apache.felix.cm.PersistenceManager
orgosgi.service.cm.ConfigurationAdmin

Apache Felix iPOJO (22) provides:
---------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.architecture.Architecture
org.apache.felix.ipojo.architecture.Architecture

Apache Felix iPOJO Composite (24) provides:
-------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Event Admin Handler (25) provides:
-----------------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Extender Pattern Handler (26) provides:
----------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO JMX Handler (27) provides:
---------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
---------------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO White Board Pattern Handler (29) provides:
-------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix File Install (30) provides:
----------------------------------------
org.osgi.service.cm.ManagedServiceFactory

Apache Felix Log Service (31) provides:
---------------------------------------
org.osgi.service.log.LogService
org.osgi.service.log.LogReaderService

Blog - EJB (453) provides:
--------------------------
nettopekapublicschools.profile.service.ProfileMenuProviderService

Felix Shell Commands (474) provides:
------------------------------------
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory

Employee Service - EJB (475) provides:
--------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

News System - EJB (478) provides:
---------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Wiki - EJB (481) provides:
--------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Student Service - EJB (483) provides:
-------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Anything service with  net.topekapublicschools is from our applications.

-- Chad




On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:

Hi

Could you show us the result of a 'scr info 14' ?
I want to know why the carol-component-factory is active (should provides the missing CarolComponent required by the core for example) but core still have unsatisfied dependencies...

Can you also show me the list of services on your instance  (command: 'services') ?

Thanks
--Guillaume

Skinner Chad a écrit :
I am new to both OSGi and the EasyBeans implementation and have been considering moving a few of our applications from that are currently running EJB and JPA on Glassfish v2 to an OSGi.

I have apache felix running and have easybeans deployed and when I list the services All of the EasyBeans Bundles are Active. However, I am unable to resolve any of the beans that I am trying to deploy. This is most likely do to my now knowing how to configure this properly. I tried downloading the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1, but when I deploy these bundles and run the example I get the following errors:

-> ezb list
Unable to execute command: java.lang.NullPointerException: Specified service reference cannot be null.
javalang.NullPointerException: Specified service reference cannot be null.
at org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
at net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
at java.lang.Thread.run(Thread.java:613)

This error is very similar to the error I get when I try to lookup my beans.

One thing I have notices is that when I attempt to list the Declarative Services I get the following:

-> scr list
 Id   State          Name
[  17] [active       ] hsqldb-component-factory
[  15] [unsatisifed  ] jotm-component-factory
[  19] [unsatisifed  ] joram-component-factory
[  16] [unsatisifed  ] quartz-component-factory
[  18] [unsatisifed  ] core-component
[  20] [unsatisifed  ] jdbcpool-component-factory
[  14] [active       ] carol-component-factory

If I get information on the core-component it lists the following:

-> scr info 18
ID: 18
Name: core-component
Bundle: org.ow2.easybeans.core (10)
State: unsatisifed
Default State: enabled
Activation: immediate
Services: org.ow2.easybeans.osgi.core.EZBCoreService
Service Type: service
Reference: carolComponent
  Satisfied: unsatisfied
  Service Name: org.ow2.easybeans.component.carol.CarolComponent
  Multiple: single
  Optional: mandatory
  Policy: static
Reference: ezbComponents
  Satisfied: satisfied
  Service Name: org.ow2.easybeans.component.api.EZBComponent
  Multiple: multiple
  Optional: optional
  Policy: dynamic
Reference: ezbContainers
  Satisfied: satisfied
  Service Name: org.ow2.easybeans.api.EZBContainer
  Multiple: multiple
  Optional: optional
  Policy: dynamic
Properties:
  component.id = 18
  component.name = core-component
  service.pid = org.ow2.easybeans.core




------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthiervcf>

------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthier.vcf>


THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: Re: Re: Re: Re: EasyBeans on Felix

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

And now, list the services and your components ...
I think it's in a better shape now.
--G

Skinner Chad a écrit :

> I am trying to :-)
>
> I blew away my configuration and manually installed the EasyBeans
> bundles and then I started the Agent. The following is the console output:
>
> chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar ./bin/felix.jar
>
> Welcome to Felix
> =================
>
> -> ps
> START LEVEL 3
>    ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (1.4.1)
> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
> [   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
> [   3] [Active     ] [    1]
> file:bundle/osgi/org.osgi.foundation-1.2.0.jar
> [   4] [Active     ] [    1] OSGi OBR Service API (1)
> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
> [   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
> [   9] [Active     ] [    1] Apache Felix Configuration Admin Service
> (1.0.10)
> [  10] [Active     ] [    1] Apache Felix Dependency Manager (11.0.10)
>
> -> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
> Bundle ID: 14
> -> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
> Bundle ID: 15
> -> install file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
> Bundle ID: 16
> -> install file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
> Bundle ID: 17
> -> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
> Bundle ID: 18
> -> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
> Bundle ID: 19
> -> install file:bundle/easybeans/easybeans-component-quartz-1.0.2.jar
> Bundle ID: 20
> -> install file:bundle/easybeans/easybeans-core-1.0.2.jar
> Bundle ID: 21
> -> install
> file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
> Bundle ID: 22
> -> ps
> START LEVEL 3
>    ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (1.4.1)
> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
> [   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
> [   3] [Active     ] [    1]
> file:bundle/osgi/org.osgi.foundation-1.2.0.jar
> [   4] [Active     ] [    1] OSGi OBR Service API (1)
> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
> [   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
> [   9] [Active     ] [    1] Apache Felix Configuration Admin Service
> (1.0.10)
> [  10] [Active     ] [    1] Apache Felix Dependency Manager (1.1.0.10)
> [  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (1.0.2)
> [  15] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Carol (1.0.2)
> [  16] [Installed  ] [    3] EasyBeans/OSGi :: Components :: HSQLDB
> (1.0.2)
> [  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC Pool
> (1.0.2)
> [  18] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JORAM (1.0.2)
> [  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM (1.0.2)
> [  20] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Quartz
> (1.0.2)
> [  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
> [  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons
> Logging (1.0.5)
> -> start 14
> 3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans
> Configuration file './conf/easybeans.xml'
> WARNING: org.ow2.easybeans.component.jdbcpool.I18n
> (java.lang.ClassNotFoundException:
> org.ow2.easybeans.component.jdbcpool.I18n)
> WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties
> (org.apachefelix.moduleloader.ResourceNotFoundException:
> org/ow2/easybeans/component/jdbcpool/I18n.properties)
> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en
> (java.lang.ClassNotFoundException:
> org.ow2.easybeans.component.jdbcpool.I18n_en)
> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties
> (org.apache.felix.moduleloader.ResourceNotFoundException:
> org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US
> (java.lang.ClassNotFoundException:
> org.ow2.easybeans.component.jdbcpool.I18n_en_US)
> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties
> (org.apache.felix.moduleloader.ResourceNotFoundException:
> org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeans.component.carol [15]
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeans.component.jotm [19]
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeans.component.quartz [20]
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeans.component.hsqldb [16]
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeans.core [21]
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeanscomponent.joram [18]
> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
> org.ow2.easybeans.component.jdbcpool [17]
>
>
>
> On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:
>
>> Hmmm, do you use the easybeans-agent bundle ?
>> --G
>>
>> Skinner Chad a écrit :
>>> Here is the requested information:
>>>
>>> -> scr info 14
>>> ID: 14
>>> Name: carol-component-factory
>>> Bundle: orgow2.easybeans.component.carol (4)
>>> State: active
>>> Default State: enabled
>>> Activation: delayed
>>> Services: org.osgi.service.cm.ManagedServiceFactory
>>> Service Type: service
>>> Properties:
>>>    component.id = 14
>>>    component.name = carol-component-factory
>>>    service.pid = org.ow2.easybeans.component.carol.carolcomponent
>>>
>>> The services:
>>>
>>> -> services
>>>
>>> System Bundle (0) provides:
>>> ---------------------------
>>> org.osgi.servicestartlevel.StartLevel
>>> org.osgi.service.packageadmin.PackageAdmin
>>>
>>> EasyBeans/OSGi :: Components :: Carol (4) provides:
>>> ---------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>> org.osgi.service.cm.ManagedServiceFactory
>>>
>>> EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
>>> ----------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>> org.osgi.service.cm.ManagedServiceFactory
>>>
>>> EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
>>> -------------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Components :: JORAM (7) provides:
>>> ---------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Components :: JOTM (8) provides:
>>> --------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Components :: Quartz (9) provides:
>>> ----------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Core (10) provides:
>>> -------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> Apache Felix Shell Service (16) provides:
>>> -----------------------------------------
>>> org.apache.felix.shell.ShellService,
>>> org.ungoverned.osgi.service.shell.ShellService
>>>
>>> Apache Felix Bundle Repository (18) provides:
>>> ---------------------------------------------
>>> org.osgi.service.obr.RepositoryAdmin
>>>
>>> Apache Felix Declarative Services (19) provides:
>>> ------------------------------------------------
>>> org.apache.felix.scr.ScrService
>>>
>>> Apache Felix Configuration Admin Service (20) provides:
>>> -------------------------------------------------------
>>> org.apache.felix.cm.PersistenceManager
>>> orgosgi.service.cm.ConfigurationAdmin
>>>
>>> Apache Felix iPOJO (22) provides:
>>> ---------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.architecture.Architecture
>>> org.apache.felix.ipojo.architecture.Architecture
>>>
>>> Apache Felix iPOJO Composite (24) provides:
>>> -------------------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>>
>>> Apache Felix iPOJO Event Admin Handler (25) provides:
>>> -----------------------------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>> org.apache.felix.ipojo.HandlerFactory
>>>
>>> Apache Felix iPOJO Extender Pattern Handler (26) provides:
>>> ----------------------------------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>>
>>> Apache Felix iPOJO JMX Handler (27) provides:
>>> ---------------------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>>
>>> Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
>>> ---------------------------------------------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>>
>>> Apache Felix iPOJO White Board Pattern Handler (29) provides:
>>> -------------------------------------------------------------
>>> org.apache.felix.ipojo.HandlerFactory
>>>
>>> Apache Felix File Install (30) provides:
>>> ----------------------------------------
>>> org.osgi.service.cm.ManagedServiceFactory
>>>
>>> Apache Felix Log Service (31) provides:
>>> ---------------------------------------
>>> org.osgi.service.log.LogService
>>> org.osgi.service.log.LogReaderService
>>>
>>> Blog - EJB (453) provides:
>>> --------------------------
>>> nettopekapublicschools.profile.service.ProfileMenuProviderService
>>>
>>> Felix Shell Commands (474) provides:
>>> ------------------------------------
>>> org.apache.felix.ipojo.Factory,
>>> org.osgi.service.cm.ManagedServiceFactory
>>> org.apache.felix.ipojo.Factory,
>>> org.osgi.service.cm.ManagedServiceFactory
>>>
>>> Employee Service - EJB (475) provides:
>>> --------------------------------------
>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>
>>> News System - EJB (478) provides:
>>> ---------------------------------
>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>
>>> Wiki - EJB (481) provides:
>>> --------------------------
>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>
>>> Student Service - EJB (483) provides:
>>> -------------------------------------
>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>
>>> Anything service with  net.topekapublicschools is from our applications.
>>>
>>> -- Chad
>>>
>>>
>>>
>>>
>>> On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:
>>>
>>>> Hi
>>>>
>>>> Could you show us the result of a 'scr info 14' ?
>>>> I want to know why the carol-component-factory is active (should
>>>> provides the missing CarolComponent required by the core for
>>>> example) but core still have unsatisfied dependencies...
>>>>
>>>> Can you also show me the list of services on your instance
>>>>  (command: 'services') ?
>>>>
>>>> Thanks
>>>> --Guillaume
>>>>
>>>> Skinner Chad a écrit :
>>>>> I am new to both OSGi and the EasyBeans implementation and have
>>>>> been considering moving a few of our applications from that are
>>>>> currently running EJB and JPA on Glassfish v2 to an OSGi.
>>>>>
>>>>> I have apache felix running and have easybeans deployed and when I
>>>>> list the services All of the EasyBeans Bundles are Active.
>>>>> However, I am unable to resolve any of the beans that I am trying
>>>>> to deploy. This is most likely do to my now knowing how to
>>>>> configure this properly. I tried downloading the example from
>>>>> http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1,
>>>>> but when I deploy these bundles and run the example I get the
>>>>> following errors:
>>>>>
>>>>> -> ezb list
>>>>> Unable to execute command: java.lang.NullPointerException:
>>>>> Specified service reference cannot be null.
>>>>> javalang.NullPointerException: Specified service reference cannot
>>>>> be null.
>>>>> at
>>>>> org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
>>>>> at net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
>>>>> at
>>>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
>>>>> at
>>>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>>
>>>>> This error is very similar to the error I get when I try to lookup
>>>>> my beans.
>>>>>
>>>>> One thing I have notices is that when I attempt to list the
>>>>> Declarative Services I get the following:
>>>>>
>>>>> -> scr list
>>>>>  Id   State          Name
>>>>> [  17] [active       ] hsqldb-component-factory
>>>>> [  15] [unsatisifed  ] jotm-component-factory
>>>>> [  19] [unsatisifed  ] joram-component-factory
>>>>> [  16] [unsatisifed  ] quartz-component-factory
>>>>> [  18] [unsatisifed  ] core-component
>>>>> [  20] [unsatisifed  ] jdbcpool-component-factory
>>>>> [  14] [active       ] carol-component-factory
>>>>>
>>>>> If I get information on the core-component it lists the following:
>>>>>
>>>>> -> scr info 18
>>>>> ID: 18
>>>>> Name: core-component
>>>>> Bundle: org.ow2.easybeans.core (10)
>>>>> State: unsatisifed
>>>>> Default State: enabled
>>>>> Activation: immediate
>>>>> Services: org.ow2.easybeans.osgi.core.EZBCoreService
>>>>> Service Type: service
>>>>> Reference: carolComponent
>>>>>   Satisfied: unsatisfied
>>>>>   Service Name: org.ow2.easybeans.component.carol.CarolComponent
>>>>>   Multiple: single
>>>>>   Optional: mandatory
>>>>>   Policy: static
>>>>> Reference: ezbComponents
>>>>>   Satisfied: satisfied
>>>>>   Service Name: org.ow2.easybeans.component.api.EZBComponent
>>>>>   Multiple: multiple
>>>>>   Optional: optional
>>>>>   Policy: dynamic
>>>>> Reference: ezbContainers
>>>>>   Satisfied: satisfied
>>>>>   Service Name: org.ow2.easybeans.api.EZBContainer
>>>>>   Multiple: multiple
>>>>>   Optional: optional
>>>>>   Policy: dynamic
>>>>> Properties:
>>>>>   component.id = 18
>>>>>   component.name = core-component
>>>>>   service.pid = org.ow2.easybeans.core
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING
>>>>> US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.
>>>>> UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING
>>>>> THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND
>>>>> MAY BE UNLAWFUL.
>>>>> ------------------------------------------------------------------------
>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING
>>>>> US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.
>>>>> UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING
>>>>> THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND
>>>>> MAY BE UNLAWFUL.
>>>>
>>>> <Guillaume_Sauthiervcf>
>>>
>>> ------------------------------------------------------------------------
>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION
>>> IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>
>> <Guillaume_Sauthier.vcf>
>
> ------------------------------------------------------------------------
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

[Guillaume_Sauthier.vcf]

begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard



Re: Re: Re: Re: Re: Re: EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Are the Class not found exceptions going to cause problems ? If I remove my JDBCPool they go away.

Ok the new services and Dynamic Services

-> services

System Bundle (0) provides:
---------------------------
org.osgi.service.startlevelStartLevel
org.osgi.service.packageadmin.PackageAdmin

Apache Felix Shell Service (5) provides:
----------------------------------------
org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService

Apache Felix Bundle Repository (7) provides:
--------------------------------------------
org.osgi.service.obr.RepositoryAdmin

Apache Felix Declarative Services (8) provides:
-----------------------------------------------
org.apache.felix.scr.ScrService

Apache Felix Configuration Admin Service (9) provides:
------------------------------------------------------
org.apache.felix.cm.PersistenceManager
org.osgi.service.cmConfigurationAdmin

EasyBeans/OSGi :: Components :: Carol (15) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: HSQLDB (16) provides:
-----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: JDBC Pool (17) provides:
--------------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JORAM (18) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JOTM (19) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: Quartz (20) provides:
-----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Core (21) provides:
-------------------------------------
org.osgi.service.cm.ManagedService
-> scr list
   Id   State          Name
[   2] [unsatisifed  ] quartz-component-factory
[   4] [unsatisifed  ] core-component
[   6] [unsatisifed  ] jdbcpool-component-factory
[   1] [unsatisifed  ] jotm-component-factory
[   3] [active       ] hsqldb-component-factory
[   5] [unsatisifed  ] joram-component-factory
[   0] [active       ] carol-component-factory
-> 




On Mar 24, 2009, at 11:11 AM, Guillaume Sauthier wrote:

And now, list the services and your components ...
I think it's in a better shape now.
--G

Skinner Chad a écrit :
I am trying to :-)

I blew away my configuration and manually installed the EasyBeans bundles and then I started the Agent. The following is the console output:

chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar ./bin/felix.jar
Welcome to Felix
=================

-> ps
START LEVEL 3
  ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
[   3] [Active     ] [    1] file:bundle/osgi/orgosgi.foundation-1.2.0.jar
[   4] [Active     ] [    1] OSGi OBR Service API (1)
[   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
[   9] [Active     ] [    1] Apache Felix Configuration Admin Service (1.0.10)
[  10] [Active     ] [    1] Apache Felix Dependency Manager (11.0.10)

-> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
Bundle ID: 14
-> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
Bundle ID: 15
-> install file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
Bundle ID: 16
-> install file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
Bundle ID: 17
-> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
Bundle ID: 18
-> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
Bundle ID: 19
-> install file:bundle/easybeans/easybeans-component-quartz-1.0.2jar
Bundle ID: 20
-> install file:bundle/easybeans/easybeans-core-1.0.2.jar
Bundle ID: 21
-> install file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
Bundle ID: 22
-> ps
START LEVEL 3
  ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
[   3] [Active     ] [    1] file:bundle/osgi/org.osgi.foundation-1.2.0.jar
[   4] [Active     ] [    1] OSGi OBR Service API (1)
[   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
[   9] [Active     ] [    1] Apache Felix Configuration Admin Service (1.010)
[  10] [Active     ] [    1] Apache Felix Dependency Manager (1.1.0.10)
[  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (1.0.2)
[  15] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Carol (1.0.2)
[  16] [Installed  ] [    3] EasyBeans/OSGi :: Components :: HSQLDB (1.0.2)
[  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC Pool (1.0.2)
[  18] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JORAM (1.0.2)
[  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM (1.0.2)
[  20] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Quartz (1.0.2)
[  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
[  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons Logging (1.0.5)
-> start 14
3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans Configuration file './conf/easybeans.xml'
WARNING: org.ow2.easybeans.component.jdbcpool.I18n (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties (org.apachefelix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n.properties)
WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n_en)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties (org.apache.felix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n_en_US)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties (org.apache.felix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.carol [15]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.jotm [19]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.quartz [20]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.hsqldb [16]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.core [21]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeanscomponent.joram [18]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.jdbcpool [17]



On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:

Hmmm, do you use the easybeans-agent bundle ?
--G

Skinner Chad a écrit :
Here is the requested information:

-> scr info 14
ID: 14
Name: carol-component-factory
Bundle: orgow2.easybeans.component.carol (4)
State: active
Default State: enabled
Activation: delayed
Services: org.osgi.service.cm.ManagedServiceFactory
Service Type: service
Properties:
  component.id = 14
  component.name = carol-component-factory
  service.pid = org.ow2.easybeans.component.carol.carolcomponent

The services:

-> services

System Bundle (0) provides:
---------------------------
org.osgi.servicestartlevel.StartLevel
org.osgi.service.packageadmin.PackageAdmin

EasyBeans/OSGi :: Components :: Carol (4) provides:
---------------------------------------------------
org.osgi.service.cmManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
-------------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JORAM (7) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JOTM (8) provides:
--------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: Quartz (9) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Core (10) provides:
-------------------------------------
org.osgi.service.cm.ManagedService

Apache Felix Shell Service (16) provides:
-----------------------------------------
org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService

Apache Felix Bundle Repository (18) provides:
---------------------------------------------
org.osgi.service.obr.RepositoryAdmin

Apache Felix Declarative Services (19) provides:
------------------------------------------------
org.apache.felix.scr.ScrService

Apache Felix Configuration Admin Service (20) provides:
-------------------------------------------------------
org.apache.felixcm.PersistenceManager
orgosgi.service.cm.ConfigurationAdmin

Apache Felix iPOJO (22) provides:
---------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.architecture.Architecture
org.apache.felix.ipojo.architecture.Architecture

Apache Felix iPOJO Composite (24) provides:
-------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Event Admin Handler (25) provides:
-----------------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Extender Pattern Handler (26) provides:
----------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO JMX Handler (27) provides:
---------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
---------------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO White Board Pattern Handler (29) provides:
-------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix File Install (30) provides:
----------------------------------------
org.osgi.service.cm.ManagedServiceFactory

Apache Felix Log Service (31) provides:
---------------------------------------
org.osgi.service.log.LogService
org.osgi.service.log.LogReaderService

Blog - EJB (453) provides:
--------------------------
nettopekapublicschools.profile.service.ProfileMenuProviderService

Felix Shell Commands (474) provides:
------------------------------------
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory

Employee Service - EJB (475) provides:
--------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

News System - EJB (478) provides:
---------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Wiki - EJB (481) provides:
--------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Student Service - EJB (483) provides:
-------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Anything service with  net.topekapublicschools is from our applications.

-- Chad




On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:

Hi

Could you show us the result of a 'scr info 14' ?
I want to know why the carol-component-factory is active (should provides the missing CarolComponent required by the core for example) but core still have unsatisfied dependencies...

Can you also show me the list of services on your instance  (command: 'services') ?

Thanks
--Guillaume

Skinner Chad a écrit :
I am new to both OSGi and the EasyBeans implementation and have been considering moving a few of our applications from that are currently running EJB and JPA on Glassfish v2 to an OSGi.

I have apache felix running and have easybeans deployed and when I list the services All of the EasyBeans Bundles are Active. However, I am unable to resolve any of the beans that I am trying to deploy. This is most likely do to my now knowing how to configure this properly. I tried downloading the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1, but when I deploy these bundles and run the example I get the following errors:

-> ezb list
Unable to execute command: java.lang.NullPointerException: Specified service reference cannot be null.
javalang.NullPointerException: Specified service reference cannot be null.
at org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
at net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
at java.lang.Thread.run(Thread.java:613)

This error is very similar to the error I get when I try to lookup my beans.

One thing I have notices is that when I attempt to list the Declarative Services I get the following:

-> scr list
Id   State          Name
[  17] [active       ] hsqldb-component-factory
[  15] [unsatisifed  ] jotm-component-factory
[  19] [unsatisifed  ] joram-component-factory
[  16] [unsatisifed  ] quartz-component-factory
[  18] [unsatisifed  ] core-component
[  20] [unsatisifed  ] jdbcpool-component-factory
[  14] [active       ] carol-component-factory

If I get information on the core-component it lists the following:

-> scr info 18
ID: 18
Name: core-component
Bundle: org.ow2.easybeans.core (10)
State: unsatisifed
Default State: enabled
Activation: immediate
Services: org.ow2.easybeans.osgi.core.EZBCoreService
Service Type: service
Reference: carolComponent
 Satisfied: unsatisfied
 Service Name: org.ow2.easybeans.component.carol.CarolComponent
 Multiple: single
 Optional: mandatory
 Policy: static
Reference: ezbComponents
 Satisfied: satisfied
 Service Name: org.ow2.easybeanscomponent.api.EZBComponent
 Multiple: multiple
 Optional: optional
 Policy: dynamic
Reference: ezbContainers
 Satisfied: satisfied
 Service Name: org.ow2.easybeans.api.EZBContainer
 Multiple: multiple
 Optional: optional
 Policy: dynamic
Properties:
 component.id = 18
 component.name = core-component
 service.pid = org.ow2.easybeans.core




------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthiervcf>

------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL

<Guillaume_Sauthier.vcf>

------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthier.vcf>


THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: Re: Re: Re: Re: Re: Re: EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem appears to be with my easybeans.xml file. Does anyone know what the appropriate settings are for deploying EasyBeans on Felix or any OSGi container are? (Are there more detailed instructions or documentation available for the options in the configuration files?


On Mar 24, 2009, at 11:23 AM, Skinner Chad wrote:

Are the Class not found exceptions going to cause problems ? If I remove my JDBCPool they go away.

Ok the new services and Dynamic Services

-> services

System Bundle (0) provides:
---------------------------
org.osgi.service.startlevelStartLevel
org.osgi.service.packageadmin.PackageAdmin

Apache Felix Shell Service (5) provides:
----------------------------------------
org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService

Apache Felix Bundle Repository (7) provides:
--------------------------------------------
org.osgi.service.obr.RepositoryAdmin

Apache Felix Declarative Services (8) provides:
-----------------------------------------------
org.apache.felix.scr.ScrService

Apache Felix Configuration Admin Service (9) provides:
------------------------------------------------------
org.apache.felix.cm.PersistenceManager
org.osgi.service.cmConfigurationAdmin

EasyBeans/OSGi :: Components :: Carol (15) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: HSQLDB (16) provides:
-----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: JDBC Pool (17) provides:
--------------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JORAM (18) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JOTM (19) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: Quartz (20) provides:
-----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Core (21) provides:
-------------------------------------
org.osgi.service.cm.ManagedService
-> scr list
   Id   State          Name
[   2] [unsatisifed  ] quartz-component-factory
[   4] [unsatisifed  ] core-component
[   6] [unsatisifed  ] jdbcpool-component-factory
[   1] [unsatisifed  ] jotm-component-factory
[   3] [active       ] hsqldb-component-factory
[   5] [unsatisifed  ] joram-component-factory
[   0] [active       ] carol-component-factory
-> 




On Mar 24, 2009, at 11:11 AM, Guillaume Sauthier wrote:

And now, list the services and your components ...
I think it's in a better shape now.
--G

Skinner Chad a écrit :
I am trying to :-)

I blew away my configuration and manually installed the EasyBeans bundles and then I started the Agent. The following is the console output:

chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar ./bin/felix.jar
Welcome to Felix
=================

-> ps
START LEVEL 3
  ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
[   3] [Active     ] [    1] file:bundle/osgi/orgosgi.foundation-1.2.0.jar
[   4] [Active     ] [    1] OSGi OBR Service API (1)
[   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
[   9] [Active     ] [    1] Apache Felix Configuration Admin Service (1.0.10)
[  10] [Active     ] [    1] Apache Felix Dependency Manager (110.10)

-> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
Bundle ID: 14
-> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
Bundle ID: 15
-> install file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
Bundle ID: 16
-> install file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
Bundle ID: 17
-> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
Bundle ID: 18
-> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
Bundle ID: 19
-> install file:bundle/easybeans/easybeans-component-quartz-1.0.2jar
Bundle ID: 20
-> install file:bundle/easybeans/easybeans-core-1.0.2.jar
Bundle ID: 21
-> install file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
Bundle ID: 22
-> ps
START LEVEL 3
  ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (1.4.1)
[   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
[   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
[   3] [Active     ] [    1] file:bundle/osgi/org.osgi.foundation-1.2.0.jar
[   4] [Active     ] [    1] OSGi OBR Service API (1)
[   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
[   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
[   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
[   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
[   9] [Active     ] [    1] Apache Felix Configuration Admin Service (1.010)
[  10] [Active     ] [    1] Apache Felix Dependency Manager (1.1.0.10)
[  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (1.0.2)
[  15] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Carol (1.0.2)
[  16] [Installed  ] [    3] EasyBeans/OSGi :: Components :: HSQLDB (1.0.2)
[  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC Pool (1.0.2)
[  18] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JORAM (1.0.2)
[  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM (1.0.2)
[  20] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Quartz (1.0.2)
[  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
[  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons Logging (1.0.5)
-> start 14
3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans Configuration file './conf/easybeans.xml'
WARNING: org.ow2.easybeans.component.jdbcpool.I18n (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties (org.apachefelix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n.properties)
WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n_en)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties (org.apache.felix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US (java.lang.ClassNotFoundException: org.ow2.easybeans.component.jdbcpool.I18n_en_US)
WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties (org.apache.felix.moduleloader.ResourceNotFoundException: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.carol [15]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.jotm [19]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.quartz [20]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.hsqldb [16]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.core [21]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeanscomponent.joram [18]
3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle org.ow2.easybeans.component.jdbcpool [17]



On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:

Hmmm, do you use the easybeans-agent bundle ?
--G

Skinner Chad a écrit :
Here is the requested information:

-> scr info 14
ID: 14
Name: carol-component-factory
Bundle: orgow2.easybeans.component.carol (4)
State: active
Default State: enabled
Activation: delayed
Services: org.osgi.service.cm.ManagedServiceFactory
Service Type: service
Properties:
  component.id = 14
  component.name = carol-component-factory
  service.pid = org.ow2.easybeans.component.carol.carolcomponent

The services:

-> services

System Bundle (0) provides:
---------------------------
org.osgi.servicestartlevel.StartLevel
org.osgi.service.packageadmin.PackageAdmin

EasyBeans/OSGi :: Components :: Carol (4) provides:
---------------------------------------------------
org.osgi.service.cmManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService
org.osgi.service.cm.ManagedServiceFactory

EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
-------------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JORAM (7) provides:
---------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: JOTM (8) provides:
--------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Components :: Quartz (9) provides:
----------------------------------------------------
org.osgi.service.cm.ManagedService

EasyBeans/OSGi :: Core (10) provides:
-------------------------------------
org.osgi.service.cm.ManagedService

Apache Felix Shell Service (16) provides:
-----------------------------------------
org.apache.felix.shell.ShellService, org.ungoverned.osgi.service.shell.ShellService

Apache Felix Bundle Repository (18) provides:
---------------------------------------------
org.osgi.service.obr.RepositoryAdmin

Apache Felix Declarative Services (19) provides:
------------------------------------------------
org.apache.felix.scr.ScrService

Apache Felix Configuration Admin Service (20) provides:
-------------------------------------------------------
org.apache.felixcm.PersistenceManager
orgosgi.service.cm.ConfigurationAdmin

Apache Felix iPOJO (22) provides:
---------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.architecture.Architecture
org.apache.felix.ipojo.architecture.Architecture

Apache Felix iPOJO Composite (24) provides:
-------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Event Admin Handler (25) provides:
-----------------------------------------------------
org.apache.felix.ipojo.HandlerFactory
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Extender Pattern Handler (26) provides:
----------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO JMX Handler (27) provides:
---------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
---------------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix iPOJO White Board Pattern Handler (29) provides:
-------------------------------------------------------------
org.apache.felix.ipojo.HandlerFactory

Apache Felix File Install (30) provides:
----------------------------------------
org.osgi.service.cm.ManagedServiceFactory

Apache Felix Log Service (31) provides:
---------------------------------------
org.osgi.service.log.LogService
org.osgi.service.log.LogReaderService

Blog - EJB (453) provides:
--------------------------
nettopekapublicschools.profile.service.ProfileMenuProviderService

Felix Shell Commands (474) provides:
------------------------------------
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory
org.apache.felix.ipojo.Factory, org.osgi.service.cm.ManagedServiceFactory

Employee Service - EJB (475) provides:
--------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

News System - EJB (478) provides:
---------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Wiki - EJB (481) provides:
--------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Student Service - EJB (483) provides:
-------------------------------------
net.topekapublicschools.profile.service.ProfileMenuProviderService

Anything service with  net.topekapublicschools is from our applications.

-- Chad




On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:

Hi

Could you show us the result of a 'scr info 14' ?
I want to know why the carol-component-factory is active (should provides the missing CarolComponent required by the core for example) but core still have unsatisfied dependencies...

Can you also show me the list of services on your instance  (command: 'services') ?

Thanks
--Guillaume

Skinner Chad a écrit :
I am new to both OSGi and the EasyBeans implementation and have been considering moving a few of our applications from that are currently running EJB and JPA on Glassfish v2 to an OSGi.

I have apache felix running and have easybeans deployed and when I list the services All of the EasyBeans Bundles are Active. However, I am unable to resolve any of the beans that I am trying to deploy. This is most likely do to my now knowing how to configure this properly. I tried downloading the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1, but when I deploy these bundles and run the example I get the following errors:

-> ezb list
Unable to execute command: java.lang.NullPointerException: Specified service reference cannot be null.
javalang.NullPointerException: Specified service reference cannot be null.
at org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
at net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
at java.lang.Thread.run(Thread.java:613)

This error is very similar to the error I get when I try to lookup my beans.

One thing I have notices is that when I attempt to list the Declarative Services I get the following:

-> scr list
Id   State          Name
[  17] [active       ] hsqldb-component-factory
[  15] [unsatisifed  ] jotm-component-factory
[  19] [unsatisifed  ] joram-component-factory
[  16] [unsatisifed  ] quartz-component-factory
[  18] [unsatisifed  ] core-component
[  20] [unsatisifed  ] jdbcpool-component-factory
[  14] [active       ] carol-component-factory

If I get information on the core-component it lists the following:

-> scr info 18
ID: 18
Name: core-component
Bundle: org.ow2.easybeans.core (10)
State: unsatisifed
Default State: enabled
Activation: immediate
Services: org.ow2.easybeans.osgi.core.EZBCoreService
Service Type: service
Reference: carolComponent
 Satisfied: unsatisfied
 Service Name: org.ow2.easybeans.component.carol.CarolComponent
 Multiple: single
 Optional: mandatory
 Policy: static
Reference: ezbComponents
 Satisfied: satisfied
 Service Name: org.ow2.easybeanscomponent.api.EZBComponent
 Multiple: multiple
 Optional: optional
 Policy: dynamic
Reference: ezbContainers
 Satisfied: satisfied
 Service Name: org.ow2.easybeans.api.EZBContainer
 Multiple: multiple
 Optional: optional
 Policy: dynamic
Properties:
 component.id = 18
 component.name = core-component
 service.pid = org.ow2.easybeans.core




------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthiervcf>

------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL

<Guillaume_Sauthier.vcf>

------------------------------------------------------------------------
THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

<Guillaume_Sauthier.vcf>


THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.


THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: Re: Re: Re: Re: Re: Re: Re: EasyBeans on Felix

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

For a first try, try to use the default easybeans.xml as-is, with no
changes...
--G

Skinner Chad a écrit :

> The problem appears to be with my easybeans.xml file. Does anyone know
> what the appropriate settings are for deploying EasyBeans on Felix or
> any OSGi container are? (Are there more detailed instructions or
> documentation available for the options in the configuration files?
>
>
> On Mar 24, 2009, at 11:23 AM, Skinner Chad wrote:
>
>> Are the Class not found exceptions going to cause problems ? If I
>> remove my JDBCPool they go away.
>>
>> Ok the new services and Dynamic Services
>>
>> -> services
>>
>> System Bundle (0) provides:
>> ---------------------------
>> org.osgi.service.startlevelStartLevel
>> org.osgi.service.packageadmin.PackageAdmin
>>
>> Apache Felix Shell Service (5) provides:
>> ----------------------------------------
>> org.apache.felix.shell.ShellService,
>> org.ungoverned.osgi.service.shell.ShellService
>>
>> Apache Felix Bundle Repository (7) provides:
>> --------------------------------------------
>> org.osgi.service.obr.RepositoryAdmin
>>
>> Apache Felix Declarative Services (8) provides:
>> -----------------------------------------------
>> org.apache.felix.scr.ScrService
>>
>> Apache Felix Configuration Admin Service (9) provides:
>> ------------------------------------------------------
>> org.apache.felix.cm.PersistenceManager
>> org.osgi.service.cmConfigurationAdmin
>>
>> EasyBeans/OSGi :: Components :: Carol (15) provides:
>> ----------------------------------------------------
>> org.osgi.service.cm.ManagedService
>> org.osgi.service.cm.ManagedServiceFactory
>>
>> EasyBeans/OSGi :: Components :: HSQLDB (16) provides:
>> -----------------------------------------------------
>> org.osgi.service.cm.ManagedService
>> org.osgi.service.cm.ManagedServiceFactory
>>
>> EasyBeans/OSGi :: Components :: JDBC Pool (17) provides:
>> --------------------------------------------------------
>> org.osgi.service.cm.ManagedService
>>
>> EasyBeans/OSGi :: Components :: JORAM (18) provides:
>> ----------------------------------------------------
>> org.osgi.service.cm.ManagedService
>>
>> EasyBeans/OSGi :: Components :: JOTM (19) provides:
>> ---------------------------------------------------
>> org.osgi.service.cm.ManagedService
>>
>> EasyBeans/OSGi :: Components :: Quartz (20) provides:
>> -----------------------------------------------------
>> org.osgi.service.cm.ManagedService
>>
>> EasyBeans/OSGi :: Core (21) provides:
>> -------------------------------------
>> org.osgi.service.cm.ManagedService
>> -> scr list
>>    Id   State          Name
>> [   2] [unsatisifed  ] quartz-component-factory
>> [   4] [unsatisifed  ] core-component
>> [   6] [unsatisifed  ] jdbcpool-component-factory
>> [   1] [unsatisifed  ] jotm-component-factory
>> [   3] [active       ] hsqldb-component-factory
>> [   5] [unsatisifed  ] joram-component-factory
>> [   0] [active       ] carol-component-factory
>> ->
>>
>>
>>
>>
>> On Mar 24, 2009, at 11:11 AM, Guillaume Sauthier wrote:
>>
>>> And now, list the services and your components ...
>>> I think it's in a better shape now.
>>> --G
>>>
>>> Skinner Chad a écrit :
>>>> I am trying to :-)
>>>>
>>>> I blew away my configuration and manually installed the EasyBeans
>>>> bundles and then I started the Agent. The following is the console
>>>> output:
>>>>
>>>> chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar
>>>> ./bin/felix.jar
>>>> Welcome to Felix
>>>> =================
>>>>
>>>> -> ps
>>>> START LEVEL 3
>>>>   ID   State         Level  Name
>>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
>>>> [   3] [Active     ] [    1]
>>>> file:bundle/osgi/orgosgi.foundation-1.2.0.jar
>>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>>> [   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
>>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin
>>>> Service (1.0.10)
>>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager (110.10)
>>>>
>>>> -> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
>>>> Bundle ID: 14
>>>> -> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
>>>> Bundle ID: 15
>>>> -> install file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
>>>> Bundle ID: 16
>>>> -> install file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
>>>> Bundle ID: 17
>>>> -> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
>>>> Bundle ID: 18
>>>> -> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
>>>> Bundle ID: 19
>>>> -> install file:bundle/easybeans/easybeans-component-quartz-1.0.2jar
>>>> Bundle ID: 20
>>>> -> install file:bundle/easybeans/easybeans-core-1.0.2.jar
>>>> Bundle ID: 21
>>>> -> install
>>>> file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
>>>> Bundle ID: 22
>>>> -> ps
>>>> START LEVEL 3
>>>>   ID   State         Level  Name
>>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
>>>> [   3] [Active     ] [    1]
>>>> file:bundle/osgi/org.osgi.foundation-1.2.0.jar
>>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>>> [   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
>>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin
>>>> Service (1.010)
>>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager (1.1.0.10)
>>>> [  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (1.0.2)
>>>> [  15] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Carol
>>>> (1.0.2)
>>>> [  16] [Installed  ] [    3] EasyBeans/OSGi :: Components :: HSQLDB
>>>> (1.0.2)
>>>> [  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC
>>>> Pool (1.0.2)
>>>> [  18] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JORAM
>>>> (1.0.2)
>>>> [  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM
>>>> (1.0.2)
>>>> [  20] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Quartz
>>>> (1.0.2)
>>>> [  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
>>>> [  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons
>>>> Logging (1.0.5)
>>>> -> start 14
>>>> 3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans
>>>> Configuration file './conf/easybeans.xml'
>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n
>>>> (java.lang.ClassNotFoundException:
>>>> org.ow2.easybeans.component.jdbcpool.I18n)
>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties
>>>> (org.apachefelix.moduleloader.ResourceNotFoundException:
>>>> org/ow2/easybeans/component/jdbcpool/I18n.properties)
>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en
>>>> (java.lang.ClassNotFoundException:
>>>> org.ow2.easybeans.component.jdbcpool.I18n_en)
>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties
>>>> (org.apache.felix.moduleloader.ResourceNotFoundException:
>>>> org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US
>>>> (java.lang.ClassNotFoundException:
>>>> org.ow2.easybeans.component.jdbcpool.I18n_en_US)
>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties
>>>> (org.apache.felix.moduleloader.ResourceNotFoundException:
>>>> org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeans.component.carol [15]
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeans.component.jotm [19]
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeans.component.quartz [20]
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeans.component.hsqldb [16]
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeans.core [21]
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeanscomponent.joram [18]
>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>> org.ow2.easybeans.component.jdbcpool [17]
>>>>
>>>>
>>>>
>>>> On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:
>>>>
>>>>> Hmmm, do you use the easybeans-agent bundle ?
>>>>> --G
>>>>>
>>>>> Skinner Chad a écrit :
>>>>>> Here is the requested information:
>>>>>>
>>>>>> -> scr info 14
>>>>>> ID: 14
>>>>>> Name: carol-component-factory
>>>>>> Bundle: orgow2.easybeans.component.carol (4)
>>>>>> State: active
>>>>>> Default State: enabled
>>>>>> Activation: delayed
>>>>>> Services: org.osgi.service.cm.ManagedServiceFactory
>>>>>> Service Type: service
>>>>>> Properties:
>>>>>>   component.id = 14
>>>>>>   component.name = carol-component-factory
>>>>>>   service.pid = org.ow2.easybeans.component.carol.carolcomponent
>>>>>>
>>>>>> The services:
>>>>>>
>>>>>> -> services
>>>>>>
>>>>>> System Bundle (0) provides:
>>>>>> ---------------------------
>>>>>> org.osgi.servicestartlevel.StartLevel
>>>>>> org.osgi.service.packageadmin.PackageAdmin
>>>>>>
>>>>>> EasyBeans/OSGi :: Components :: Carol (4) provides:
>>>>>> ---------------------------------------------------
>>>>>> org.osgi.service.cmManagedService
>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>
>>>>>> EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
>>>>>> ----------------------------------------------------
>>>>>> org.osgi.service.cm.ManagedService
>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>
>>>>>> EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
>>>>>> -------------------------------------------------------
>>>>>> org.osgi.service.cm.ManagedService
>>>>>>
>>>>>> EasyBeans/OSGi :: Components :: JORAM (7) provides:
>>>>>> ---------------------------------------------------
>>>>>> org.osgi.service.cm.ManagedService
>>>>>>
>>>>>> EasyBeans/OSGi :: Components :: JOTM (8) provides:
>>>>>> --------------------------------------------------
>>>>>> org.osgi.service.cm.ManagedService
>>>>>>
>>>>>> EasyBeans/OSGi :: Components :: Quartz (9) provides:
>>>>>> ----------------------------------------------------
>>>>>> org.osgi.service.cm.ManagedService
>>>>>>
>>>>>> EasyBeans/OSGi :: Core (10) provides:
>>>>>> -------------------------------------
>>>>>> org.osgi.service.cm.ManagedService
>>>>>>
>>>>>> Apache Felix Shell Service (16) provides:
>>>>>> -----------------------------------------
>>>>>> org.apache.felix.shell.ShellService,
>>>>>> org.ungoverned.osgi.service.shell.ShellService
>>>>>>
>>>>>> Apache Felix Bundle Repository (18) provides:
>>>>>> ---------------------------------------------
>>>>>> org.osgi.service.obr.RepositoryAdmin
>>>>>>
>>>>>> Apache Felix Declarative Services (19) provides:
>>>>>> ------------------------------------------------
>>>>>> org.apache.felix.scr.ScrService
>>>>>>
>>>>>> Apache Felix Configuration Admin Service (20) provides:
>>>>>> -------------------------------------------------------
>>>>>> org.apache.felixcm.PersistenceManager
>>>>>> orgosgi.service.cm.ConfigurationAdmin
>>>>>>
>>>>>> Apache Felix iPOJO (22) provides:
>>>>>> ---------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>>
>>>>>> Apache Felix iPOJO Composite (24) provides:
>>>>>> -------------------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>
>>>>>> Apache Felix iPOJO Event Admin Handler (25) provides:
>>>>>> -----------------------------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>
>>>>>> Apache Felix iPOJO Extender Pattern Handler (26) provides:
>>>>>> ----------------------------------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>
>>>>>> Apache Felix iPOJO JMX Handler (27) provides:
>>>>>> ---------------------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>
>>>>>> Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
>>>>>> ---------------------------------------------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>
>>>>>> Apache Felix iPOJO White Board Pattern Handler (29) provides:
>>>>>> -------------------------------------------------------------
>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>
>>>>>> Apache Felix File Install (30) provides:
>>>>>> ----------------------------------------
>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>
>>>>>> Apache Felix Log Service (31) provides:
>>>>>> ---------------------------------------
>>>>>> org.osgi.service.log.LogService
>>>>>> org.osgi.service.log.LogReaderService
>>>>>>
>>>>>> Blog - EJB (453) provides:
>>>>>> --------------------------
>>>>>> nettopekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>
>>>>>> Felix Shell Commands (474) provides:
>>>>>> ------------------------------------
>>>>>> org.apache.felix.ipojo.Factory,
>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>> org.apache.felix.ipojo.Factory,
>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>
>>>>>> Employee Service - EJB (475) provides:
>>>>>> --------------------------------------
>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>
>>>>>> News System - EJB (478) provides:
>>>>>> ---------------------------------
>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>
>>>>>> Wiki - EJB (481) provides:
>>>>>> --------------------------
>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>
>>>>>> Student Service - EJB (483) provides:
>>>>>> -------------------------------------
>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>
>>>>>> Anything service with  net.topekapublicschools is from our
>>>>>> applications.
>>>>>>
>>>>>> -- Chad
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:
>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> Could you show us the result of a 'scr info 14' ?
>>>>>>> I want to know why the carol-component-factory is active (should
>>>>>>> provides the missing CarolComponent required by the core for
>>>>>>> example) but core still have unsatisfied dependencies...
>>>>>>>
>>>>>>> Can you also show me the list of services on your instance
>>>>>>>  (command: 'services') ?
>>>>>>>
>>>>>>> Thanks
>>>>>>> --Guillaume
>>>>>>>
>>>>>>> Skinner Chad a écrit :
>>>>>>>> I am new to both OSGi and the EasyBeans implementation and have
>>>>>>>> been considering moving a few of our applications from that are
>>>>>>>> currently running EJB and JPA on Glassfish v2 to an OSGi.
>>>>>>>>
>>>>>>>> I have apache felix running and have easybeans deployed and
>>>>>>>> when I list the services All of the EasyBeans Bundles are
>>>>>>>> Active. However, I am unable to resolve any of the beans that I
>>>>>>>> am trying to deploy. This is most likely do to my now knowing
>>>>>>>> how to configure this properly. I tried downloading the example
>>>>>>>> from
>>>>>>>> http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1,
>>>>>>>> but when I deploy these bundles and run the example I get the
>>>>>>>> following errors:
>>>>>>>>
>>>>>>>> -> ezb list
>>>>>>>> Unable to execute command: java.lang.NullPointerException:
>>>>>>>> Specified service reference cannot be null.
>>>>>>>> javalang.NullPointerException: Specified service reference
>>>>>>>> cannot be null.
>>>>>>>> at
>>>>>>>> org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
>>>>>>>> at
>>>>>>>> net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
>>>>>>>> at
>>>>>>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
>>>>>>>> at
>>>>>>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
>>>>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>>>>>
>>>>>>>> This error is very similar to the error I get when I try to
>>>>>>>> lookup my beans.
>>>>>>>>
>>>>>>>> One thing I have notices is that when I attempt to list the
>>>>>>>> Declarative Services I get the following:
>>>>>>>>
>>>>>>>> -> scr list
>>>>>>>> Id   State          Name
>>>>>>>> [  17] [active       ] hsqldb-component-factory
>>>>>>>> [  15] [unsatisifed  ] jotm-component-factory
>>>>>>>> [  19] [unsatisifed  ] joram-component-factory
>>>>>>>> [  16] [unsatisifed  ] quartz-component-factory
>>>>>>>> [  18] [unsatisifed  ] core-component
>>>>>>>> [  20] [unsatisifed  ] jdbcpool-component-factory
>>>>>>>> [  14] [active       ] carol-component-factory
>>>>>>>>
>>>>>>>> If I get information on the core-component it lists the following:
>>>>>>>>
>>>>>>>> -> scr info 18
>>>>>>>> ID: 18
>>>>>>>> Name: core-component
>>>>>>>> Bundle: org.ow2.easybeans.core (10)
>>>>>>>> State: unsatisifed
>>>>>>>> Default State: enabled
>>>>>>>> Activation: immediate
>>>>>>>> Services: org.ow2.easybeans.osgi.core.EZBCoreService
>>>>>>>> Service Type: service
>>>>>>>> Reference: carolComponent
>>>>>>>>  Satisfied: unsatisfied
>>>>>>>>  Service Name: org.ow2.easybeans.component.carol.CarolComponent
>>>>>>>>  Multiple: single
>>>>>>>>  Optional: mandatory
>>>>>>>>  Policy: static
>>>>>>>> Reference: ezbComponents
>>>>>>>>  Satisfied: satisfied
>>>>>>>>  Service Name: org.ow2.easybeanscomponent.api.EZBComponent
>>>>>>>>  Multiple: multiple
>>>>>>>>  Optional: optional
>>>>>>>>  Policy: dynamic
>>>>>>>> Reference: ezbContainers
>>>>>>>>  Satisfied: satisfied
>>>>>>>>  Service Name: org.ow2.easybeans.api.EZBContainer
>>>>>>>>  Multiple: multiple
>>>>>>>>  Optional: optional
>>>>>>>>  Policy: dynamic
>>>>>>>> Properties:
>>>>>>>>  component.id = 18
>>>>>>>>  component.name = core-component
>>>>>>>>  service.pid = org.ow2.easybeans.core
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS
>>>>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS
>>>>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>>
>>>>>>> <Guillaume_Sauthiervcf>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING
>>>>>> US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.
>>>>>> UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING
>>>>>> THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND
>>>>>> MAY BE UNLAWFUL
>>>>>
>>>>> <Guillaume_Sauthier.vcf>
>>>>
>>>> ------------------------------------------------------------------------
>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE
>>>> INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE
>>>> UNLAWFUL.
>>>
>>> <Guillaume_Sauthier.vcf>
>>
>> ------------------------------------------------------------------------
>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION
>> IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>
> ------------------------------------------------------------------------
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

[Guillaume_Sauthier.vcf]

begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard



Re: Re: Re: Re: Re: Re: Re: EasyBeans on Felix

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In fact the CNFE are not really class not foudn exception.
This is the internationalisation system that tries to see if some I18n
properties files are available.
When the resource is not found, Felix issue is warning logged as CNFE,
but that's not a problem.

--G

Skinner Chad a écrit :

> Are the Class not found exceptions going to cause problems ? If I
> remove my JDBCPool they go away.
>
> Ok the new services and Dynamic Services
>
> -> services
>
> System Bundle (0) provides:
> ---------------------------
> org.osgi.service.startlevelStartLevel
> org.osgi.service.packageadmin.PackageAdmin
>
> Apache Felix Shell Service (5) provides:
> ----------------------------------------
> org.apache.felix.shell.ShellService,
> org.ungoverned.osgi.service.shell.ShellService
>
> Apache Felix Bundle Repository (7) provides:
> --------------------------------------------
> org.osgi.service.obr.RepositoryAdmin
>
> Apache Felix Declarative Services (8) provides:
> -----------------------------------------------
> org.apache.felix.scr.ScrService
>
> Apache Felix Configuration Admin Service (9) provides:
> ------------------------------------------------------
> org.apache.felix.cm.PersistenceManager
> org.osgi.service.cmConfigurationAdmin
>
> EasyBeans/OSGi :: Components :: Carol (15) provides:
> ----------------------------------------------------
> org.osgi.service.cm.ManagedService
> org.osgi.service.cm.ManagedServiceFactory
>
> EasyBeans/OSGi :: Components :: HSQLDB (16) provides:
> -----------------------------------------------------
> org.osgi.service.cm.ManagedService
> org.osgi.service.cm.ManagedServiceFactory
>
> EasyBeans/OSGi :: Components :: JDBC Pool (17) provides:
> --------------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Components :: JORAM (18) provides:
> ----------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Components :: JOTM (19) provides:
> ---------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Components :: Quartz (20) provides:
> -----------------------------------------------------
> org.osgi.service.cm.ManagedService
>
> EasyBeans/OSGi :: Core (21) provides:
> -------------------------------------
> org.osgi.service.cm.ManagedService
> -> scr list
>    Id   State          Name
> [   2] [unsatisifed  ] quartz-component-factory
> [   4] [unsatisifed  ] core-component
> [   6] [unsatisifed  ] jdbcpool-component-factory
> [   1] [unsatisifed  ] jotm-component-factory
> [   3] [active       ] hsqldb-component-factory
> [   5] [unsatisifed  ] joram-component-factory
> [   0] [active       ] carol-component-factory
> ->
>
>
>
>
> On Mar 24, 2009, at 11:11 AM, Guillaume Sauthier wrote:
>
>> And now, list the services and your components ...
>> I think it's in a better shape now.
>> --G
>>
>> Skinner Chad a écrit :
>>> I am trying to :-)
>>>
>>> I blew away my configuration and manually installed the EasyBeans
>>> bundles and then I started the Agent. The following is the console
>>> output:
>>>
>>> chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar
>>> ./bin/felix.jar
>>> Welcome to Felix
>>> =================
>>>
>>> -> ps
>>> START LEVEL 3
>>>   ID   State         Level  Name
>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
>>> [   3] [Active     ] [    1]
>>> file:bundle/osgi/orgosgi.foundation-1.2.0.jar
>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>> [   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin
>>> Service (1.0.10)
>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager (11.0.10)
>>>
>>> -> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
>>> Bundle ID: 14
>>> -> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
>>> Bundle ID: 15
>>> -> install file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
>>> Bundle ID: 16
>>> -> install file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
>>> Bundle ID: 17
>>> -> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
>>> Bundle ID: 18
>>> -> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
>>> Bundle ID: 19
>>> -> install file:bundle/easybeans/easybeans-component-quartz-1.0.2jar
>>> Bundle ID: 20
>>> -> install file:bundle/easybeans/easybeans-core-1.0.2.jar
>>> Bundle ID: 21
>>> -> install
>>> file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
>>> Bundle ID: 22
>>> -> ps
>>> START LEVEL 3
>>>   ID   State         Level  Name
>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
>>> [   3] [Active     ] [    1]
>>> file:bundle/osgi/org.osgi.foundation-1.2.0.jar
>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>> [   8] [Active     ] [    1] Apache Felix Declarative Services (1.0.6)
>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin
>>> Service (1.010)
>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager (1.1.0.10)
>>> [  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (1.0.2)
>>> [  15] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Carol
>>> (1.0.2)
>>> [  16] [Installed  ] [    3] EasyBeans/OSGi :: Components :: HSQLDB
>>> (1.0.2)
>>> [  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC
>>> Pool (1.0.2)
>>> [  18] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JORAM
>>> (1.0.2)
>>> [  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM
>>> (1.0.2)
>>> [  20] [Installed  ] [    3] EasyBeans/OSGi :: Components :: Quartz
>>> (1.0.2)
>>> [  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
>>> [  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons
>>> Logging (1.0.5)
>>> -> start 14
>>> 3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans
>>> Configuration file './conf/easybeans.xml'
>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n
>>> (java.lang.ClassNotFoundException:
>>> org.ow2.easybeans.component.jdbcpool.I18n)
>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties
>>> (org.apachefelix.moduleloader.ResourceNotFoundException:
>>> org/ow2/easybeans/component/jdbcpool/I18n.properties)
>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en
>>> (java.lang.ClassNotFoundException:
>>> org.ow2.easybeans.component.jdbcpool.I18n_en)
>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties
>>> (org.apache.felix.moduleloader.ResourceNotFoundException:
>>> org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US
>>> (java.lang.ClassNotFoundException:
>>> org.ow2.easybeans.component.jdbcpool.I18n_en_US)
>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties
>>> (org.apache.felix.moduleloader.ResourceNotFoundException:
>>> org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeans.component.carol [15]
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeans.component.jotm [19]
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeans.component.quartz [20]
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeans.component.hsqldb [16]
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeans.core [21]
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeanscomponent.joram [18]
>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>> org.ow2.easybeans.component.jdbcpool [17]
>>>
>>>
>>>
>>> On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:
>>>
>>>> Hmmm, do you use the easybeans-agent bundle ?
>>>> --G
>>>>
>>>> Skinner Chad a écrit :
>>>>> Here is the requested information:
>>>>>
>>>>> -> scr info 14
>>>>> ID: 14
>>>>> Name: carol-component-factory
>>>>> Bundle: orgow2.easybeans.component.carol (4)
>>>>> State: active
>>>>> Default State: enabled
>>>>> Activation: delayed
>>>>> Services: org.osgi.service.cm.ManagedServiceFactory
>>>>> Service Type: service
>>>>> Properties:
>>>>>   component.id = 14
>>>>>   component.name = carol-component-factory
>>>>>   service.pid = org.ow2.easybeans.component.carol.carolcomponent
>>>>>
>>>>> The services:
>>>>>
>>>>> -> services
>>>>>
>>>>> System Bundle (0) provides:
>>>>> ---------------------------
>>>>> org.osgi.servicestartlevel.StartLevel
>>>>> org.osgi.service.packageadmin.PackageAdmin
>>>>>
>>>>> EasyBeans/OSGi :: Components :: Carol (4) provides:
>>>>> ---------------------------------------------------
>>>>> org.osgi.service.cmManagedService
>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>
>>>>> EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
>>>>> ----------------------------------------------------
>>>>> org.osgi.service.cm.ManagedService
>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>
>>>>> EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
>>>>> -------------------------------------------------------
>>>>> org.osgi.service.cm.ManagedService
>>>>>
>>>>> EasyBeans/OSGi :: Components :: JORAM (7) provides:
>>>>> ---------------------------------------------------
>>>>> org.osgi.service.cm.ManagedService
>>>>>
>>>>> EasyBeans/OSGi :: Components :: JOTM (8) provides:
>>>>> --------------------------------------------------
>>>>> org.osgi.service.cm.ManagedService
>>>>>
>>>>> EasyBeans/OSGi :: Components :: Quartz (9) provides:
>>>>> ----------------------------------------------------
>>>>> org.osgi.service.cm.ManagedService
>>>>>
>>>>> EasyBeans/OSGi :: Core (10) provides:
>>>>> -------------------------------------
>>>>> org.osgi.service.cm.ManagedService
>>>>>
>>>>> Apache Felix Shell Service (16) provides:
>>>>> -----------------------------------------
>>>>> org.apache.felix.shell.ShellService,
>>>>> org.ungoverned.osgi.service.shell.ShellService
>>>>>
>>>>> Apache Felix Bundle Repository (18) provides:
>>>>> ---------------------------------------------
>>>>> org.osgi.service.obr.RepositoryAdmin
>>>>>
>>>>> Apache Felix Declarative Services (19) provides:
>>>>> ------------------------------------------------
>>>>> org.apache.felix.scr.ScrService
>>>>>
>>>>> Apache Felix Configuration Admin Service (20) provides:
>>>>> -------------------------------------------------------
>>>>> org.apache.felixcm.PersistenceManager
>>>>> orgosgi.service.cm.ConfigurationAdmin
>>>>>
>>>>> Apache Felix iPOJO (22) provides:
>>>>> ---------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>
>>>>> Apache Felix iPOJO Composite (24) provides:
>>>>> -------------------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>
>>>>> Apache Felix iPOJO Event Admin Handler (25) provides:
>>>>> -----------------------------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>
>>>>> Apache Felix iPOJO Extender Pattern Handler (26) provides:
>>>>> ----------------------------------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>
>>>>> Apache Felix iPOJO JMX Handler (27) provides:
>>>>> ---------------------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>
>>>>> Apache Felix iPOJO Temporal Service Dependency Handler (28) provides:
>>>>> ---------------------------------------------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>
>>>>> Apache Felix iPOJO White Board Pattern Handler (29) provides:
>>>>> -------------------------------------------------------------
>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>
>>>>> Apache Felix File Install (30) provides:
>>>>> ----------------------------------------
>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>
>>>>> Apache Felix Log Service (31) provides:
>>>>> ---------------------------------------
>>>>> org.osgi.service.log.LogService
>>>>> org.osgi.service.log.LogReaderService
>>>>>
>>>>> Blog - EJB (453) provides:
>>>>> --------------------------
>>>>> nettopekapublicschools.profile.service.ProfileMenuProviderService
>>>>>
>>>>> Felix Shell Commands (474) provides:
>>>>> ------------------------------------
>>>>> org.apache.felix.ipojo.Factory,
>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>> org.apache.felix.ipojo.Factory,
>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>
>>>>> Employee Service - EJB (475) provides:
>>>>> --------------------------------------
>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>
>>>>> News System - EJB (478) provides:
>>>>> ---------------------------------
>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>
>>>>> Wiki - EJB (481) provides:
>>>>> --------------------------
>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>
>>>>> Student Service - EJB (483) provides:
>>>>> -------------------------------------
>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>
>>>>> Anything service with  net.topekapublicschools is from our
>>>>> applications.
>>>>>
>>>>> -- Chad
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:
>>>>>
>>>>>> Hi
>>>>>>
>>>>>> Could you show us the result of a 'scr info 14' ?
>>>>>> I want to know why the carol-component-factory is active (should
>>>>>> provides the missing CarolComponent required by the core for
>>>>>> example) but core still have unsatisfied dependencies...
>>>>>>
>>>>>> Can you also show me the list of services on your instance
>>>>>>  (command: 'services') ?
>>>>>>
>>>>>> Thanks
>>>>>> --Guillaume
>>>>>>
>>>>>> Skinner Chad a écrit :
>>>>>>> I am new to both OSGi and the EasyBeans implementation and have
>>>>>>> been considering moving a few of our applications from that are
>>>>>>> currently running EJB and JPA on Glassfish v2 to an OSGi.
>>>>>>>
>>>>>>> I have apache felix running and have easybeans deployed and when
>>>>>>> I list the services All of the EasyBeans Bundles are Active.
>>>>>>> However, I am unable to resolve any of the beans that I am
>>>>>>> trying to deploy. This is most likely do to my now knowing how
>>>>>>> to configure this properly. I tried downloading the example from
>>>>>>> http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1,
>>>>>>> but when I deploy these bundles and run the example I get the
>>>>>>> following errors:
>>>>>>>
>>>>>>> -> ezb list
>>>>>>> Unable to execute command: java.lang.NullPointerException:
>>>>>>> Specified service reference cannot be null.
>>>>>>> javalang.NullPointerException: Specified service reference
>>>>>>> cannot be null.
>>>>>>> at
>>>>>>> org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
>>>>>>> at
>>>>>>> net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
>>>>>>> at
>>>>>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
>>>>>>> at
>>>>>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
>>>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>>>>
>>>>>>> This error is very similar to the error I get when I try to
>>>>>>> lookup my beans.
>>>>>>>
>>>>>>> One thing I have notices is that when I attempt to list the
>>>>>>> Declarative Services I get the following:
>>>>>>>
>>>>>>> -> scr list
>>>>>>> Id   State          Name
>>>>>>> [  17] [active       ] hsqldb-component-factory
>>>>>>> [  15] [unsatisifed  ] jotm-component-factory
>>>>>>> [  19] [unsatisifed  ] joram-component-factory
>>>>>>> [  16] [unsatisifed  ] quartz-component-factory
>>>>>>> [  18] [unsatisifed  ] core-component
>>>>>>> [  20] [unsatisifed  ] jdbcpool-component-factory
>>>>>>> [  14] [active       ] carol-component-factory
>>>>>>>
>>>>>>> If I get information on the core-component it lists the following:
>>>>>>>
>>>>>>> -> scr info 18
>>>>>>> ID: 18
>>>>>>> Name: core-component
>>>>>>> Bundle: org.ow2.easybeans.core (10)
>>>>>>> State: unsatisifed
>>>>>>> Default State: enabled
>>>>>>> Activation: immediate
>>>>>>> Services: org.ow2.easybeans.osgi.core.EZBCoreService
>>>>>>> Service Type: service
>>>>>>> Reference: carolComponent
>>>>>>>  Satisfied: unsatisfied
>>>>>>>  Service Name: org.ow2.easybeans.component.carol.CarolComponent
>>>>>>>  Multiple: single
>>>>>>>  Optional: mandatory
>>>>>>>  Policy: static
>>>>>>> Reference: ezbComponents
>>>>>>>  Satisfied: satisfied
>>>>>>>  Service Name: org.ow2.easybeanscomponent.api.EZBComponent
>>>>>>>  Multiple: multiple
>>>>>>>  Optional: optional
>>>>>>>  Policy: dynamic
>>>>>>> Reference: ezbContainers
>>>>>>>  Satisfied: satisfied
>>>>>>>  Service Name: org.ow2.easybeans.api.EZBContainer
>>>>>>>  Multiple: multiple
>>>>>>>  Optional: optional
>>>>>>>  Policy: dynamic
>>>>>>> Properties:
>>>>>>>  component.id = 18
>>>>>>>  component.name = core-component
>>>>>>>  service.pid = org.ow2.easybeans.core
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------
>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS
>>>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>> ------------------------------------------------------------------------
>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS
>>>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>
>>>>>> <Guillaume_Sauthiervcf>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING
>>>>> US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.
>>>>> UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING
>>>>> THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND
>>>>> MAY BE UNLAWFUL
>>>>
>>>> <Guillaume_Sauthier.vcf>
>>>
>>> ------------------------------------------------------------------------
>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION
>>> IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>
>> <Guillaume_Sauthier.vcf>
>
> ------------------------------------------------------------------------
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

[Guillaume_Sauthier.vcf]

begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard



Re: Re: Re: Re: Re: Re: Re: Re: Re: EasyBeans on Felix

by chadws :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The OSGi distribution does not appear to contain one, are they all the  
same independent of deployment platform? should I get it from one of  
the other distributions?

-- Chad


On Mar 25, 2009, at 2:53 AM, Guillaume Sauthier wrote:

> For a first try, try to use the default easybeans.xml as-is, with no  
> changes...
> --G
>
> Skinner Chad a écrit :
>> The problem appears to be with my easybeans.xml file. Does anyone  
>> know what the appropriate settings are for deploying EasyBeans on  
>> Felix or any OSGi container are? (Are there more detailed  
>> instructions or documentation available for the options in the  
>> configuration files?
>>
>>
>> On Mar 24, 2009, at 11:23 AM, Skinner Chad wrote:
>>
>>> Are the Class not found exceptions going to cause problems ? If I  
>>> remove my JDBCPool they go away.
>>>
>>> Ok the new services and Dynamic Services
>>>
>>> -> services
>>>
>>> System Bundle (0) provides:
>>> ---------------------------
>>> org.osgi.service.startlevelStartLevel
>>> org.osgi.service.packageadmin.PackageAdmin
>>>
>>> Apache Felix Shell Service (5) provides:
>>> ----------------------------------------
>>> org.apache.felix.shell.ShellService,  
>>> org.ungoverned.osgi.service.shell.ShellService
>>>
>>> Apache Felix Bundle Repository (7) provides:
>>> --------------------------------------------
>>> org.osgi.service.obr.RepositoryAdmin
>>>
>>> Apache Felix Declarative Services (8) provides:
>>> -----------------------------------------------
>>> org.apache.felix.scr.ScrService
>>>
>>> Apache Felix Configuration Admin Service (9) provides:
>>> ------------------------------------------------------
>>> org.apache.felix.cm.PersistenceManager
>>> org.osgi.service.cmConfigurationAdmin
>>>
>>> EasyBeans/OSGi :: Components :: Carol (15) provides:
>>> ----------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>> org.osgi.service.cm.ManagedServiceFactory
>>>
>>> EasyBeans/OSGi :: Components :: HSQLDB (16) provides:
>>> -----------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>> org.osgi.service.cm.ManagedServiceFactory
>>>
>>> EasyBeans/OSGi :: Components :: JDBC Pool (17) provides:
>>> --------------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Components :: JORAM (18) provides:
>>> ----------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Components :: JOTM (19) provides:
>>> ---------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Components :: Quartz (20) provides:
>>> -----------------------------------------------------
>>> org.osgi.service.cm.ManagedService
>>>
>>> EasyBeans/OSGi :: Core (21) provides:
>>> -------------------------------------
>>> org.osgi.service.cm.ManagedService
>>> -> scr list
>>>   Id   State          Name
>>> [   2] [unsatisifed  ] quartz-component-factory
>>> [   4] [unsatisifed  ] core-component
>>> [   6] [unsatisifed  ] jdbcpool-component-factory
>>> [   1] [unsatisifed  ] jotm-component-factory
>>> [   3] [active       ] hsqldb-component-factory
>>> [   5] [unsatisifed  ] joram-component-factory
>>> [   0] [active       ] carol-component-factory
>>> ->
>>>
>>>
>>>
>>> On Mar 24, 2009, at 11:11 AM, Guillaume Sauthier wrote:
>>>
>>>> And now, list the services and your components ...
>>>> I think it's in a better shape now.
>>>> --G
>>>>
>>>> Skinner Chad a écrit :
>>>>> I am trying to :-)
>>>>>
>>>>> I blew away my configuration and manually installed the  
>>>>> EasyBeans bundles and then I started the Agent. The following is  
>>>>> the console output:
>>>>>
>>>>> chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar ./bin/  
>>>>> felix.jar
>>>>> Welcome to Felix
>>>>> =================
>>>>>
>>>>> -> ps
>>>>> START LEVEL 3
>>>>>  ID   State         Level  Name
>>>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
>>>>> [   3] [Active     ] [    1] file:bundle/osgi/
>>>>> orgosgi.foundation-1.2.0.jar
>>>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository  
>>>>> (1.2.1)
>>>>> [   8] [Active     ] [    1] Apache Felix Declarative Services  
>>>>> (1.0.6)
>>>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin  
>>>>> Service (1.0.10)
>>>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager  
>>>>> (110.10)
>>>>>
>>>>> -> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
>>>>> Bundle ID: 14
>>>>> -> install file:bundle/easybeans/easybeans-component-
>>>>> carol-1.0.2.jar
>>>>> Bundle ID: 15
>>>>> -> install file:bundle/easybeans/easybeans-component-
>>>>> hsqldb-1.0.2.jar
>>>>> Bundle ID: 16
>>>>> -> install file:bundle/easybeans/easybeans-component-
>>>>> jdbcpool-1.0.2.jar
>>>>> Bundle ID: 17
>>>>> -> install file:bundle/easybeans/easybeans-component-
>>>>> joram-1.0.2.jar
>>>>> Bundle ID: 18
>>>>> -> install file:bundle/easybeans/easybeans-component-
>>>>> jotm-1.0.2.jar
>>>>> Bundle ID: 19
>>>>> -> install file:bundle/easybeans/easybeans-component-
>>>>> quartz-1.0.2jar
>>>>> Bundle ID: 20
>>>>> -> install file:bundle/easybeans/easybeans-core-1.0.2.jar
>>>>> Bundle ID: 21
>>>>> -> install file:bundle/easybeans/ow2-bundles-externals-commons-
>>>>> logging-1.0.5.jar
>>>>> Bundle ID: 22
>>>>> -> ps
>>>>> START LEVEL 3
>>>>>  ID   State         Level  Name
>>>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
>>>>> [   3] [Active     ] [    1] file:bundle/osgi/
>>>>> org.osgi.foundation-1.2.0.jar
>>>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository  
>>>>> (1.2.1)
>>>>> [   8] [Active     ] [    1] Apache Felix Declarative Services  
>>>>> (1.0.6)
>>>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin  
>>>>> Service (1.010)
>>>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager  
>>>>> (1.1.0.10)
>>>>> [  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (10.2)
>>>>> [  15] [Installed  ] [    3] EasyBeans/OSGi :: Components ::  
>>>>> Carol (1.0.2)
>>>>> [  16] [Installed  ] [    3] EasyBeans/OSGi :: Components ::  
>>>>> HSQLDB (1.0.2)
>>>>> [  17] [Installed  ] [    3] EasyBeans/OSGi :: Components ::  
>>>>> JDBC Pool (1.0.2)
>>>>> [  18] [Installed  ] [    3] EasyBeans/OSGi :: Components ::  
>>>>> JORAM (1.0.2)
>>>>> [  19] [Installed  ] [    3] EasyBeans/OSGi :: Components ::  
>>>>> JOTM (1.0.2)
>>>>> [  20] [Installed  ] [    3] EasyBeans/OSGi :: Components ::  
>>>>> Quartz (1.0.2)
>>>>> [  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
>>>>> [  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons  
>>>>> Logging (1.0.5)
>>>>> -> start 14
>>>>> 3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans  
>>>>> Configuration file './conf/easybeans.xml'
>>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n  
>>>>> (java.lang.ClassNotFoundException:  
>>>>> org.ow2.easybeans.component.jdbcpool.I18n)
>>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties  
>>>>> (org.apachefelix.moduleloader.ResourceNotFoundException: org/ow2/
>>>>> easybeans/component/jdbcpool/I18n.properties)
>>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en  
>>>>> (java.lang.ClassNotFoundException:  
>>>>> org.ow2.easybeans.component.jdbcpool.I18n_en)
>>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties  
>>>>> (org.apache.felix.moduleloader.ResourceNotFoundException: org/
>>>>> ow2/easybeans/component/jdbcpool/I18n_en.properties)
>>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US  
>>>>> (java.lang.ClassNotFoundException:  
>>>>> org.ow2.easybeans.component.jdbcpool.I18n_en_US)
>>>>> WARNING: org/ow2/easybeans/component/jdbcpool/
>>>>> I18n_en_US.properties  
>>>>> (org.apache.felix.moduleloader.ResourceNotFoundException: org/
>>>>> ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeans.component.carol [15]
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeans.component.jotm [19]
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeans.component.quartz [20]
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeans.component.hsqldb [16]
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeans.core [21]
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeanscomponent.joram [18]
>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle  
>>>>> org.ow2.easybeans.component.jdbcpool [17]
>>>>>
>>>>>
>>>>>
>>>>> On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:
>>>>>
>>>>>> Hmmm, do you use the easybeans-agent bundle ?
>>>>>> --G
>>>>>>
>>>>>> Skinner Chad a écrit :
>>>>>>> Here is the requested information:
>>>>>>>
>>>>>>> -> scr info 14
>>>>>>> ID: 14
>>>>>>> Name: carol-component-factory
>>>>>>> Bundle: orgow2.easybeans.component.carol (4)
>>>>>>> State: active
>>>>>>> Default State: enabled
>>>>>>> Activation: delayed
>>>>>>> Services: org.osgi.service.cm.ManagedServiceFactory
>>>>>>> Service Type: service
>>>>>>> Properties:
>>>>>>>  component.id = 14
>>>>>>>  component.name = carol-component-factory
>>>>>>>  service.pid = org.ow2.easybeans.component.carol.carolcomponent
>>>>>>>
>>>>>>> The services:
>>>>>>>
>>>>>>> -> services
>>>>>>>
>>>>>>> System Bundle (0) provides:
>>>>>>> ---------------------------
>>>>>>> org.osgi.servicestartlevel.StartLevel
>>>>>>> org.osgi.service.packageadmin.PackageAdmin
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Components :: Carol (4) provides:
>>>>>>> ---------------------------------------------------
>>>>>>> org.osgi.service.cmManagedService
>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
>>>>>>> ----------------------------------------------------
>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
>>>>>>> -------------------------------------------------------
>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Components :: JORAM (7) provides:
>>>>>>> ---------------------------------------------------
>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Components :: JOTM (8) provides:
>>>>>>> --------------------------------------------------
>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Components :: Quartz (9) provides:
>>>>>>> ----------------------------------------------------
>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>
>>>>>>> EasyBeans/OSGi :: Core (10) provides:
>>>>>>> -------------------------------------
>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>
>>>>>>> Apache Felix Shell Service (16) provides:
>>>>>>> -----------------------------------------
>>>>>>> org.apache.felix.shell.ShellService,  
>>>>>>> org.ungoverned.osgi.service.shell.ShellService
>>>>>>>
>>>>>>> Apache Felix Bundle Repository (18) provides:
>>>>>>> ---------------------------------------------
>>>>>>> org.osgi.service.obr.RepositoryAdmin
>>>>>>>
>>>>>>> Apache Felix Declarative Services (19) provides:
>>>>>>> ------------------------------------------------
>>>>>>> org.apache.felix.scr.ScrService
>>>>>>>
>>>>>>> Apache Felix Configuration Admin Service (20) provides:
>>>>>>> -------------------------------------------------------
>>>>>>> org.apache.felixcm.PersistenceManager
>>>>>>> orgosgi.service.cm.ConfigurationAdmin
>>>>>>>
>>>>>>> Apache Felix iPOJO (22) provides:
>>>>>>> ---------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>>>
>>>>>>> Apache Felix iPOJO Composite (24) provides:
>>>>>>> -------------------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>
>>>>>>> Apache Felix iPOJO Event Admin Handler (25) provides:
>>>>>>> -----------------------------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>
>>>>>>> Apache Felix iPOJO Extender Pattern Handler (26) provides:
>>>>>>> ----------------------------------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>
>>>>>>> Apache Felix iPOJO JMX Handler (27) provides:
>>>>>>> ---------------------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>
>>>>>>> Apache Felix iPOJO Temporal Service Dependency Handler (28)  
>>>>>>> provides:
>>>>>>> ---------------------------------------------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>
>>>>>>> Apache Felix iPOJO White Board Pattern Handler (29) provides:
>>>>>>> -------------------------------------------------------------
>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>
>>>>>>> Apache Felix File Install (30) provides:
>>>>>>> ----------------------------------------
>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>
>>>>>>> Apache Felix Log Service (31) provides:
>>>>>>> ---------------------------------------
>>>>>>> org.osgi.service.log.LogService
>>>>>>> org.osgi.service.log.LogReaderService
>>>>>>>
>>>>>>> Blog - EJB (453) provides:
>>>>>>> --------------------------
>>>>>>> nettopekapublicschools
>>>>>>> .profile.service.ProfileMenuProviderService
>>>>>>>
>>>>>>> Felix Shell Commands (474) provides:
>>>>>>> ------------------------------------
>>>>>>> org.apache.felix.ipojo.Factory,  
>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>> org.apache.felix.ipojo.Factory,  
>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>
>>>>>>> Employee Service - EJB (475) provides:
>>>>>>> --------------------------------------
>>>>>>> net
>>>>>>> .topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>
>>>>>>> News System - EJB (478) provides:
>>>>>>> ---------------------------------
>>>>>>> net
>>>>>>> .topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>
>>>>>>> Wiki - EJB (481) provides:
>>>>>>> --------------------------
>>>>>>> net
>>>>>>> .topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>
>>>>>>> Student Service - EJB (483) provides:
>>>>>>> -------------------------------------
>>>>>>> net
>>>>>>> .topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>
>>>>>>> Anything service with  net.topekapublicschools is from our  
>>>>>>> applications.
>>>>>>>
>>>>>>> -- Chad
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:
>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> Could you show us the result of a 'scr info 14' ?
>>>>>>>> I want to know why the carol-component-factory is active  
>>>>>>>> (should provides the missing CarolComponent required by the  
>>>>>>>> core for example) but core still have unsatisfied  
>>>>>>>> dependencies...
>>>>>>>>
>>>>>>>> Can you also show me the list of services on your instance  
>>>>>>>> (command: 'services') ?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> --Guillaume
>>>>>>>>
>>>>>>>> Skinner Chad a écrit :
>>>>>>>>> I am new to both OSGi and the EasyBeans implementation and  
>>>>>>>>> have been considering moving a few of our applications from  
>>>>>>>>> that are currently running EJB and JPA on Glassfish v2 to an  
>>>>>>>>> OSGi.
>>>>>>>>>
>>>>>>>>> I have apache felix running and have easybeans deployed and  
>>>>>>>>> when I list the services All of the EasyBeans Bundles are  
>>>>>>>>> Active. However, I am unable to resolve any of the beans  
>>>>>>>>> that I am trying to deploy. This is most likely do to my now  
>>>>>>>>> knowing how to configure this properly. I tried downloading  
>>>>>>>>> the example from http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1 
>>>>>>>>> , but when I deploy these bundles and run the example I get  
>>>>>>>>> the following errors:
>>>>>>>>>
>>>>>>>>> -> ezb list
>>>>>>>>> Unable to execute command: java.lang.NullPointerException:  
>>>>>>>>> Specified service reference cannot be null.
>>>>>>>>> javalang.NullPointerException: Specified service reference  
>>>>>>>>> cannot be null.
>>>>>>>>> at  
>>>>>>>>> org
>>>>>>>>> .apache
>>>>>>>>> .felix
>>>>>>>>> .framework
>>>>>>>>> .BundleContextImplgetService(BundleContextImpl.java:320)
>>>>>>>>> at  
>>>>>>>>> net
>>>>>>>>> .luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:
>>>>>>>>> 46)
>>>>>>>>> at org.apache.felix.shell.impl.Activator
>>>>>>>>> $ShellServiceImpl.executeCommand(Activator.java:276)
>>>>>>>>> at org.apache.felix.shell.tui.Activator
>>>>>>>>> $ShellTuiRunnablerun(Activatorjava:167)
>>>>>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>>>>>>
>>>>>>>>> This error is very similar to the error I get when I try to  
>>>>>>>>> lookup my beans.
>>>>>>>>>
>>>>>>>>> One thing I have notices is that when I attempt to list the  
>>>>>>>>> Declarative Services I get the following:
>>>>>>>>>
>>>>>>>>> -> scr list
>>>>>>>>> Id   State          Name
>>>>>>>>> [  17] [active       ] hsqldb-component-factory
>>>>>>>>> [  15] [unsatisifed  ] jotm-component-factory
>>>>>>>>> [  19] [unsatisifed  ] joram-component-factory
>>>>>>>>> [  16] [unsatisifed  ] quartz-component-factory
>>>>>>>>> [  18] [unsatisifed  ] core-component
>>>>>>>>> [  20] [unsatisifed  ] jdbcpool-component-factory
>>>>>>>>> [  14] [active       ] carol-component-factory
>>>>>>>>>
>>>>>>>>> If I get information on the core-component it lists the  
>>>>>>>>> following:
>>>>>>>>>
>>>>>>>>> -> scr info 18
>>>>>>>>> ID: 18
>>>>>>>>> Name: core-component
>>>>>>>>> Bundle: org.ow2.easybeans.core (10)
>>>>>>>>> State: unsatisifed
>>>>>>>>> Default State: enabled
>>>>>>>>> Activation: immediate
>>>>>>>>> Services: org.ow2.easybeans.osgi.core.EZBCoreService
>>>>>>>>> Service Type: service
>>>>>>>>> Reference: carolComponent
>>>>>>>>> Satisfied: unsatisfied
>>>>>>>>> Service Name: org.ow2.easybeans.component.carol.CarolComponent
>>>>>>>>> Multiple: single
>>>>>>>>> Optional: mandatory
>>>>>>>>> Policy: static
>>>>>>>>> Reference: ezbComponents
>>>>>>>>> Satisfied: satisfied
>>>>>>>>> Service Name: org.ow2.easybeanscomponent.api.EZBComponent
>>>>>>>>> Multiple: multiple
>>>>>>>>> Optional: optional
>>>>>>>>> Policy: dynamic
>>>>>>>>> Reference: ezbContainers
>>>>>>>>> Satisfied: satisfied
>>>>>>>>> Service Name: org.ow2.easybeans.api.EZBContainer
>>>>>>>>> Multiple: multiple
>>>>>>>>> Optional: optional
>>>>>>>>> Policy: dynamic
>>>>>>>>> Properties:
>>>>>>>>> component.id = 18
>>>>>>>>> component.name = core-component
>>>>>>>>> service.pid = org.ow2.easybeans.core
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501  
>>>>>>>>> IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE.  
>>>>>>>>> THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF  
>>>>>>>>> THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT  
>>>>>>>>> AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING  
>>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,  
>>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE  
>>>>>>>>> IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501  
>>>>>>>>> IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE.  
>>>>>>>>> THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF  
>>>>>>>>> THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT  
>>>>>>>>> AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING  
>>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,  
>>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE  
>>>>>>>>> IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>>>
>>>>>>>> <Guillaume_Sauthiervcf>
>>>>>>>
>>>>>>> ------------------------------------------------------------------------
>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN  
>>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE  
>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS  
>>>>>>> EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER  
>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING  
>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,  
>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS  
>>>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL
>>>>>>
>>>>>> <Guillaume_Sauthier.vcf>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN  
>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE  
>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL  
>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER  
>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING  
>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,  
>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS  
>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>
>>>> <Guillaume_Sauthier.vcf>
>>>
>>> ------------------------------------------------------------------------
>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN  
>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE  
>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL  
>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING  
>>> US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.  
>>> UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING  
>>> THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND  
>>> MAY BE UNLAWFUL.
>>
>> ------------------------------------------------------------------------
>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN  
>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE  
>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS  
>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF  
>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED  
>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE  
>> INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE  
>> UNLAWFUL.
>
> <Guillaume_Sauthier.vcf>

THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE.  THE INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL.  IF THIS EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.  UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: EasyBeans on Felix

by Guillaume Sauthier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There is a default easybaes.xml in the easybeans-core bundle, take a
look in the org.ow2.easybeans.server package.
What you can also do, is not specifying an easybeans.xml configuratio,n
file, by default, the core will use the the one packaged inside the bundle.
--G

Skinner Chad a écrit :

> The OSGi distribution does not appear to contain one, are they all the
> same independent of deployment platform? should I get it from one of
> the other distributions?
>
> -- Chad
>
>
> On Mar 25, 2009, at 2:53 AM, Guillaume Sauthier wrote:
>
>> For a first try, try to use the default easybeans.xml as-is, with no
>> changes...
>> --G
>>
>> Skinner Chad a écrit :
>>> The problem appears to be with my easybeans.xml file. Does anyone
>>> know what the appropriate settings are for deploying EasyBeans on
>>> Felix or any OSGi container are? (Are there more detailed
>>> instructions or documentation available for the options in the
>>> configuration files?
>>>
>>>
>>> On Mar 24, 2009, at 11:23 AM, Skinner Chad wrote:
>>>
>>>> Are the Class not found exceptions going to cause problems ? If I
>>>> remove my JDBCPool they go away.
>>>>
>>>> Ok the new services and Dynamic Services
>>>>
>>>> -> services
>>>>
>>>> System Bundle (0) provides:
>>>> ---------------------------
>>>> org.osgi.service.startlevelStartLevel
>>>> org.osgi.service.packageadmin.PackageAdmin
>>>>
>>>> Apache Felix Shell Service (5) provides:
>>>> ----------------------------------------
>>>> org.apache.felix.shell.ShellService,
>>>> org.ungoverned.osgi.service.shell.ShellService
>>>>
>>>> Apache Felix Bundle Repository (7) provides:
>>>> --------------------------------------------
>>>> org.osgi.service.obr.RepositoryAdmin
>>>>
>>>> Apache Felix Declarative Services (8) provides:
>>>> -----------------------------------------------
>>>> org.apache.felix.scr.ScrService
>>>>
>>>> Apache Felix Configuration Admin Service (9) provides:
>>>> ------------------------------------------------------
>>>> org.apache.felix.cm.PersistenceManager
>>>> org.osgi.service.cmConfigurationAdmin
>>>>
>>>> EasyBeans/OSGi :: Components :: Carol (15) provides:
>>>> ----------------------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>
>>>> EasyBeans/OSGi :: Components :: HSQLDB (16) provides:
>>>> -----------------------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>
>>>> EasyBeans/OSGi :: Components :: JDBC Pool (17) provides:
>>>> --------------------------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>>
>>>> EasyBeans/OSGi :: Components :: JORAM (18) provides:
>>>> ----------------------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>>
>>>> EasyBeans/OSGi :: Components :: JOTM (19) provides:
>>>> ---------------------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>>
>>>> EasyBeans/OSGi :: Components :: Quartz (20) provides:
>>>> -----------------------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>>
>>>> EasyBeans/OSGi :: Core (21) provides:
>>>> -------------------------------------
>>>> org.osgi.service.cm.ManagedService
>>>> -> scr list
>>>>   Id   State          Name
>>>> [   2] [unsatisifed  ] quartz-component-factory
>>>> [   4] [unsatisifed  ] core-component
>>>> [   6] [unsatisifed  ] jdbcpool-component-factory
>>>> [   1] [unsatisifed  ] jotm-component-factory
>>>> [   3] [active       ] hsqldb-component-factory
>>>> [   5] [unsatisifed  ] joram-component-factory
>>>> [   0] [active       ] carol-component-factory
>>>> ->
>>>>
>>>>
>>>>
>>>> On Mar 24, 2009, at 11:11 AM, Guillaume Sauthier wrote:
>>>>
>>>>> And now, list the services and your components ...
>>>>> I think it's in a better shape now.
>>>>> --G
>>>>>
>>>>> Skinner Chad a écrit :
>>>>>> I am trying to :-)
>>>>>>
>>>>>> I blew away my configuration and manually installed the EasyBeans
>>>>>> bundles and then I started the Agent. The following is the
>>>>>> console output:
>>>>>>
>>>>>> chad-skinners-macbook-pro:felix-1.4.1 cskinne1$ java -jar ./bin/
>>>>>> ==20
>>>>>> felix.jar
>>>>>> Welcome to Felix
>>>>>> =================
>>>>>>
>>>>>> -> ps
>>>>>> START LEVEL 3
>>>>>>  ID   State         Level  Name
>>>>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>>>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (4.1)
>>>>>> [   3] [Active     ] [    1]
>>>>>> file:bundle/osgi/orgosgi.foundation-1.2.0.jar
>>>>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>>>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>>>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>>>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>>>>> [   8] [Active     ] [    1] Apache Felix Declarative Services
>>>>>> (1.0.6)
>>>>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin
>>>>>> Service (1.0.10)
>>>>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager
>>>>>> (110.10)
>>>>>>
>>>>>> -> install file:bundle/easybeans/easybeans-agent-1.0.2.jar
>>>>>> Bundle ID: 14
>>>>>> -> install file:bundle/easybeans/easybeans-component-carol-1.0.2.jar
>>>>>> Bundle ID: 15
>>>>>> -> install
>>>>>> file:bundle/easybeans/easybeans-component-hsqldb-1.0.2.jar
>>>>>> Bundle ID: 16
>>>>>> -> install
>>>>>> file:bundle/easybeans/easybeans-component-jdbcpool-1.0.2.jar
>>>>>> Bundle ID: 17
>>>>>> -> install file:bundle/easybeans/easybeans-component-joram-1.0.2.jar
>>>>>> Bundle ID: 18
>>>>>> -> install file:bundle/easybeans/easybeans-component-jotm-1.0.2.jar
>>>>>> Bundle ID: 19
>>>>>> -> install file:bundle/easybeans/easybeans-component-quartz-1.0.2jar
>>>>>> Bundle ID: 20
>>>>>> -> install file:bundle/easybeans/easybeans-core-1.0.2.jar
>>>>>> Bundle ID: 21
>>>>>> -> install
>>>>>> file:bundle/easybeans/ow2-bundles-externals-commons-logging-1.0.5.jar
>>>>>>
>>>>>> Bundle ID: 22
>>>>>> -> ps
>>>>>> START LEVEL 3
>>>>>>  ID   State         Level  Name
>>>>>> [   0] [Active     ] [    0] System Bundle (1.4.1)
>>>>>> [   1] [Active     ] [    1] OSGi R4 Compendium Bundle (4.1.0)
>>>>>> [   2] [Active     ] [    1] OSGi R4 Core Bundle (41)
>>>>>> [   3] [Active     ] [    1]
>>>>>> file:bundle/osgi/org.osgi.foundation-1.2.0.jar
>>>>>> [   4] [Active     ] [    1] OSGi OBR Service API (1)
>>>>>> [   5] [Active     ] [    1] Apache Felix Shell Service (1.0.2)
>>>>>> [   6] [Active     ] [    1] Apache Felix Shell TUI (1.0.2)
>>>>>> [   7] [Active     ] [    1] Apache Felix Bundle Repository (1.2.1)
>>>>>> [   8] [Active     ] [    1] Apache Felix Declarative Services
>>>>>> (1.0.6)
>>>>>> [   9] [Active     ] [    1] Apache Felix Configuration Admin
>>>>>> Service (1.010)
>>>>>> [  10] [Active     ] [    1] Apache Felix Dependency Manager
>>>>>> (1.1.0.10)
>>>>>> [  14] [Installed  ] [    3] EasyBeans/OSGi :: Agent (10.2)
>>>>>> [  15] [Installed  ] [    3] EasyBeans/OSGi :: Components ::
>>>>>> Carol (1.0.2)
>>>>>> [  16] [Installed  ] [    3] EasyBeans/OSGi :: Components ::
>>>>>> HSQLDB (1.0.2)
>>>>>> [  17] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JDBC
>>>>>> Pool (1.0.2)
>>>>>> [  18] [Installed  ] [    3] EasyBeans/OSGi :: Components ::
>>>>>> JORAM (1.0.2)
>>>>>> [  19] [Installed  ] [    3] EasyBeans/OSGi :: Components :: JOTM
>>>>>> (1.0.2)
>>>>>> [  20] [Installed  ] [    3] EasyBeans/OSGi :: Components ::
>>>>>> Quartz (1.0.2)
>>>>>> [  21] [Installed  ] [    3] EasyBeans/OSGi :: Core (1.0.2)
>>>>>> [  22] [Installed  ] [    3] OW2 Bundles :: Externals :: Commons
>>>>>> Logging (1.0.5)
>>>>>> -> start 14
>>>>>> 3/24/09 11:02:21 AM (I) Activator.start : Using Easybeans
>>>>>> Configuration file './conf/easybeans.xml'
>>>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n
>>>>>> (java.lang.ClassNotFoundException:
>>>>>> org.ow2.easybeans.component.jdbcpool.I18n)
>>>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n.properties
>>>>>> (org.apachefelix.moduleloader.ResourceNotFoundException:
>>>>>> org/ow2/easybeans/component/jdbcpool/I18n.properties)
>>>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en
>>>>>> (java.lang.ClassNotFoundException:
>>>>>> org.ow2.easybeans.component.jdbcpool.I18n_en)
>>>>>> WARNING: org/ow2/easybeans/component/jdbcpool/I18n_en.properties
>>>>>> (org.apache.felix.moduleloader.ResourceNotFoundException:
>>>>>> org/ow2/easybeans/component/jdbcpool/I18n_en.properties)
>>>>>> WARNING: org.ow2.easybeans.component.jdbcpool.I18n_en_US
>>>>>> (java.lang.ClassNotFoundException:
>>>>>> org.ow2.easybeans.component.jdbcpool.I18n_en_US)
>>>>>> WARNING:
>>>>>> org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties
>>>>>> (org.apache.felix.moduleloader.ResourceNotFoundException:
>>>>>> org/ow2/easybeans/component/jdbcpool/I18n_en_US.properties)
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeans.component.carol [15]
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeans.component.jotm [19]
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeans.component.quartz [20]
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeans.component.hsqldb [16]
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeans.core [21]
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeanscomponent.joram [18]
>>>>>> 3/24/09 11:02:22 AM (I) Activator.start : Starting Bundle
>>>>>> org.ow2.easybeans.component.jdbcpool [17]
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mar 24, 2009, at 10:34 AM, Guillaume Sauthier wrote:
>>>>>>
>>>>>>> Hmmm, do you use the easybeans-agent bundle ?
>>>>>>> --G
>>>>>>>
>>>>>>> Skinner Chad a écrit :
>>>>>>>> Here is the requested information:
>>>>>>>>
>>>>>>>> -> scr info 14
>>>>>>>> ID: 14
>>>>>>>> Name: carol-component-factory
>>>>>>>> Bundle: orgow2.easybeans.component.carol (4)
>>>>>>>> State: active
>>>>>>>> Default State: enabled
>>>>>>>> Activation: delayed
>>>>>>>> Services: org.osgi.service.cm.ManagedServiceFactory
>>>>>>>> Service Type: service
>>>>>>>> Properties:
>>>>>>>>  component.id = 14
>>>>>>>>  component.name = carol-component-factory
>>>>>>>>  service.pid = org.ow2.easybeans.component.carol.carolcomponent
>>>>>>>>
>>>>>>>> The services:
>>>>>>>>
>>>>>>>> -> services
>>>>>>>>
>>>>>>>> System Bundle (0) provides:
>>>>>>>> ---------------------------
>>>>>>>> org.osgi.servicestartlevel.StartLevel
>>>>>>>> org.osgi.service.packageadmin.PackageAdmin
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Components :: Carol (4) provides:
>>>>>>>> ---------------------------------------------------
>>>>>>>> org.osgi.service.cmManagedService
>>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Components :: HSQLDB (5) provides:
>>>>>>>> ----------------------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Components :: JDBC Pool (6) provides:
>>>>>>>> -------------------------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Components :: JORAM (7) provides:
>>>>>>>> ---------------------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Components :: JOTM (8) provides:
>>>>>>>> --------------------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Components :: Quartz (9) provides:
>>>>>>>> ----------------------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>>
>>>>>>>> EasyBeans/OSGi :: Core (10) provides:
>>>>>>>> -------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedService
>>>>>>>>
>>>>>>>> Apache Felix Shell Service (16) provides:
>>>>>>>> -----------------------------------------
>>>>>>>> org.apache.felix.shell.ShellService,
>>>>>>>> org.ungoverned.osgi.service.shell.ShellService
>>>>>>>>
>>>>>>>> Apache Felix Bundle Repository (18) provides:
>>>>>>>> ---------------------------------------------
>>>>>>>> org.osgi.service.obr.RepositoryAdmin
>>>>>>>>
>>>>>>>> Apache Felix Declarative Services (19) provides:
>>>>>>>> ------------------------------------------------
>>>>>>>> org.apache.felix.scr.ScrService
>>>>>>>>
>>>>>>>> Apache Felix Configuration Admin Service (20) provides:
>>>>>>>> -------------------------------------------------------
>>>>>>>> org.apache.felixcm.PersistenceManager
>>>>>>>> orgosgi.service.cm.ConfigurationAdmin
>>>>>>>>
>>>>>>>> Apache Felix iPOJO (22) provides:
>>>>>>>> ---------------------------------
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>>>> org.apache.felix.ipojo.architecture.Architecture
>>>>>>>>
>>>>>>>> Apache Felix iPOJO Composite (24) provides:
>>>>>>>> -------------------------------------------
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>>
>>>>>>>> Apache Felix iPOJO Event Admin Handler (25) provides:
>>>>>>>> -----------------------------------------------------
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>>
>>>>>>>> Apache Felix iPOJO Extender Pattern Handler (26) provides:
>>>>>>>> ----------------------------------------------------------
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>>
>>>>>>>> Apache Felix iPOJO JMX Handler (27) provides:
>>>>>>>> ---------------------------------------------
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>>
>>>>>>>> Apache Felix iPOJO Temporal Service Dependency Handler (28)
>>>>>>>> provides:
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>>
>>>>>>>> Apache Felix iPOJO White Board Pattern Handler (29) provides:
>>>>>>>> -------------------------------------------------------------
>>>>>>>> org.apache.felix.ipojo.HandlerFactory
>>>>>>>>
>>>>>>>> Apache Felix File Install (30) provides:
>>>>>>>> ----------------------------------------
>>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>>
>>>>>>>> Apache Felix Log Service (31) provides:
>>>>>>>> ---------------------------------------
>>>>>>>> org.osgi.service.log.LogService
>>>>>>>> org.osgi.service.log.LogReaderService
>>>>>>>>
>>>>>>>> Blog - EJB (453) provides:
>>>>>>>> --------------------------
>>>>>>>> nettopekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>>
>>>>>>>> Felix Shell Commands (474) provides:
>>>>>>>> ------------------------------------
>>>>>>>> org.apache.felix.ipojo.Factory,
>>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>> org.apache.felix.ipojo.Factory,
>>>>>>>> org.osgi.service.cm.ManagedServiceFactory
>>>>>>>>
>>>>>>>> Employee Service - EJB (475) provides:
>>>>>>>> --------------------------------------
>>>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>>
>>>>>>>> News System - EJB (478) provides:
>>>>>>>> ---------------------------------
>>>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>>
>>>>>>>> Wiki - EJB (481) provides:
>>>>>>>> --------------------------
>>>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>>
>>>>>>>> Student Service - EJB (483) provides:
>>>>>>>> -------------------------------------
>>>>>>>> net.topekapublicschools.profile.service.ProfileMenuProviderService
>>>>>>>>
>>>>>>>> Anything service with  net.topekapublicschools is from our
>>>>>>>> applications.
>>>>>>>>
>>>>>>>> -- Chad
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mar 24, 2009, at 9:42 AM, Guillaume Sauthier wrote:
>>>>>>>>
>>>>>>>>> Hi
>>>>>>>>>
>>>>>>>>> Could you show us the result of a 'scr info 14' ?
>>>>>>>>> I want to know why the carol-component-factory is active
>>>>>>>>> (should provides the missing CarolComponent required by the
>>>>>>>>> core for example) but core still have unsatisfied dependencies...
>>>>>>>>>
>>>>>>>>> Can you also show me the list of services on your instance  
>>>>>>>>> (command: 'services') ?
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>> --Guillaume
>>>>>>>>>
>>>>>>>>> Skinner Chad a écrit :
>>>>>>>>>> I am new to both OSGi and the EasyBeans implementation and
>>>>>>>>>> have been considering moving a few of our applications from
>>>>>>>>>> that are currently running EJB and JPA on Glassfish v2 to an
>>>>>>>>>> OSGi.
>>>>>>>>>>
>>>>>>>>>> I have apache felix running and have easybeans deployed and
>>>>>>>>>> when I list the services All of the EasyBeans Bundles are
>>>>>>>>>> Active. However, I am unable to resolve any of the beans that
>>>>>>>>>> I am trying to deploy. This is most likely do to my now
>>>>>>>>>> knowing how to configure this properly. I tried downloading
>>>>>>>>>> the example from
>>>>>>>>>> http://blog.luminis.nl/roller/luminis/entry/enterprise_javabeans_3_in_osgi1,
>>>>>>>>>> but when I deploy these bundles and run the example I get the
>>>>>>>>>> following errors:
>>>>>>>>>>
>>>>>>>>>> -> ezb list
>>>>>>>>>> Unable to execute command: java.lang.NullPointerException:
>>>>>>>>>> Specified service reference cannot be null.
>>>>>>>>>> javalang.NullPointerException: Specified service reference
>>>>>>>>>> cannot be null.
>>>>>>>>>> at
>>>>>>>>>> org.apache.felix.framework.BundleContextImplgetService(BundleContextImpl.java:320)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> net.luminis.ezb.example2.cmd.EzbCommandexecute(EzbCommand.java:46)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
>>>>>>>>>>
>>>>>>>>>> at
>>>>>>>>>> org.apache.felix.shell.tui.Activator$ShellTuiRunnablerun(Activatorjava:167)
>>>>>>>>>>
>>>>>>>>>> at java.lang.Thread.run(Thread.java:613)
>>>>>>>>>>
>>>>>>>>>> This error is very similar to the error I get when I try to
>>>>>>>>>> lookup my beans.
>>>>>>>>>>
>>>>>>>>>> One thing I have notices is that when I attempt to list the
>>>>>>>>>> Declarative Services I get the following:
>>>>>>>>>>
>>>>>>>>>> -> scr list
>>>>>>>>>> Id   State          Name
>>>>>>>>>> [  17] [active       ] hsqldb-component-factory
>>>>>>>>>> [  15] [unsatisifed  ] jotm-component-factory
>>>>>>>>>> [  19] [unsatisifed  ] joram-component-factory
>>>>>>>>>> [  16] [unsatisifed  ] quartz-component-factory
>>>>>>>>>> [  18] [unsatisifed  ] core-component
>>>>>>>>>> [  20] [unsatisifed  ] jdbcpool-component-factory
>>>>>>>>>> [  14] [active       ] carol-component-factory
>>>>>>>>>>
>>>>>>>>>> If I get information on the core-component it lists the
>>>>>>>>>> following:
>>>>>>>>>>
>>>>>>>>>> -> scr info 18
>>>>>>>>>> ID: 18
>>>>>>>>>> Name: core-component
>>>>>>>>>> Bundle: org.ow2.easybeans.core (10)
>>>>>>>>>> State: unsatisifed
>>>>>>>>>> Default State: enabled
>>>>>>>>>> Activation: immediate
>>>>>>>>>> Services: org.ow2.easybeans.osgi.core.EZBCoreService
>>>>>>>>>> Service Type: service
>>>>>>>>>> Reference: carolComponent
>>>>>>>>>> Satisfied: unsatisfied
>>>>>>>>>> Service Name: org.ow2.easybeans.component.carol.CarolComponent
>>>>>>>>>> Multiple: single
>>>>>>>>>> Optional: mandatory
>>>>>>>>>> Policy: static
>>>>>>>>>> Reference: ezbComponents
>>>>>>>>>> Satisfied: satisfied
>>>>>>>>>> Service Name: org.ow2.easybeanscomponent.api.EZBComponent
>>>>>>>>>> Multiple: multiple
>>>>>>>>>> Optional: optional
>>>>>>>>>> Policy: dynamic
>>>>>>>>>> Reference: ezbContainers
>>>>>>>>>> Satisfied: satisfied
>>>>>>>>>> Service Name: org.ow2.easybeans.api.EZBContainer
>>>>>>>>>> Multiple: multiple
>>>>>>>>>> Optional: optional
>>>>>>>>>> Policy: dynamic
>>>>>>>>>> Properties:
>>>>>>>>>> component.id = 18
>>>>>>>>>> component.name = core-component
>>>>>>>>>> service.pid = org.ow2.easybeans.core
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501
>>>>>>>>>> IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS
>>>>>>>>>> EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE
>>>>>>>>>> IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501
>>>>>>>>>> IN TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS
>>>>>>>>>> EMAIL HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE
>>>>>>>>>> IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>>>>>>>>
>>>>>>>>> <Guillaume_Sauthiervcf>
>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------
>>>>>>>>
>>>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER
>>>>>>>> NOTIFYING US OF THE ERROR BY REPLY EMAIL OR BY CALLING
>>>>>>>> 785-295-3000. UNAUTHORIZED FORWARDING, PRINTING, COPYING,
>>>>>>>> DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL MESSAGE IS
>>>>>>>> STRICTLY PROHIBITED AND MAY BE UNLAWFUL
>>>>>>>
>>>>>>> <Guillaume_Sauthier.vcf>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL
>>>>>> HAS MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING
>>>>>> US OF THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000.
>>>>>> UNAUTHORIZED FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING
>>>>>> THE INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND
>>>>>> MAY BE UNLAWFUL.
>>>>>
>>>>> <Guillaume_Sauthier.vcf>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE
>>>> INFORMATION IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE
>>>> UNLAWFUL.
>>>
>>> ------------------------------------------------------------------------
>>>
>>> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN
>>> TOPEKA, KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE. THE
>>> INFORMATION CONTAINED HEREIN MAY BE CONFIDENTIAL. IF THIS EMAIL HAS
>>> MISTAKENLY BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF
>>> THE ERROR BY REPLY EMAIL OR BY CALLING 785-295-3000. UNAUTHORIZED
>>> FORWARDING, PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION
>>> IN THIS EMAIL MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>>
>> <Guillaume_Sauthier.vcf>
>
> THIS EMAIL MESSAGE IS FROM THE TOPEKA PUBLIC SCHOOLS USD501 IN TOPEKA,
> KANSAS AND IS INTENDED ONLY FOR THE ADDRESSEE.  THE INFORMATION
> CONTAINED HEREIN MAY BE CONFIDENTIAL.  IF THIS EMAIL HAS MISTAKENLY
> BEEN SENT TO YOU, PLEASE DELETE IT AFTER NOTIFYING US OF THE ERROR BY
> REPLY EMAIL OR BY CALLING 785-295-3000.  UNAUTHORIZED FORWARDING,
> PRINTING, COPYING, DISTRIBUTING OR USING THE INFORMATION IN THIS EMAIL
> MESSAGE IS STRICTLY PROHIBITED AND MAY BE UNLAWFUL.
>
>

[Guillaume_Sauthier.vcf]

begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:guillaume.sauthier@...
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
x-mozilla-html:TRUE
url:http://jonas.ow2.org
version:2.1
end:vcard