« Return to Thread: tutorial-osgi-camel-part1

Re: tutorial-osgi-camel-part1

by cmoulliard :: Rate this Message:

Reply to Author | View in Thread

Check also the log file to be sure that no errors are reported during launch
of the bundles mentioned.

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com


On Fri, Jul 3, 2009 at 4:21 AM, Willem Jiang <willem.jiang@...> wrote:

> Hi,
>
> [  52] [Active     ] [       ] [   60] demo.service-bundle [demo.service]
> (0.1)
> [  53] [Active     ] [       ] [   60] demo.camel-bundle [demo.camel] (0.1)
>
> These two bundles have the spring configuration files, and we need to make
> sure the Spring DM start these application context.
>
> You may need to use
> osgi/start 52
> osgi/start 53
> to start these two bundle.
>
> Willem
>
>
> Kevin.Zhang wrote:
>
>> Thanks, Willem.
>>
>> I got another problem. In the tutorial, it says that I can expect log msg
>> below but I don't see it.
>>
>>  call >> MyTransform set body:  Mon Dec 01 11:02:28 CET 2008
>>>>
>>>
>> I tried log/d, it gives me
>>
>>
>> 17:38:31,790 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl  104 | Executing (osgi/list): []
>> 17:38:37,212 | INFO  | Timer-0          | FileMonitor
>>  |
>> x.kernel.filemonitor.FileMonitor  374 | Deploying:
>> C:\temp\apache-servicemix-kernel
>> -1.1.0\deploy\demo.service-bundle-0.1.jar
>> 17:38:37,259 | INFO  | Timer-0          | FileMonitor
>>  |
>> x.kernel.filemonitor.FileMonitor  550 | Started: demo.service-bundle [52]
>> 17:38:40,196 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl   64 | Executing (String): osgi/list
>> 17:38:40,196 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl  104 | Executing (osgi/list): []
>> 17:38:51,712 | INFO  | Timer-0          | FileMonitor
>>  |
>> x.kernel.filemonitor.FileMonitor  374 | Deploying:
>> C:\temp\apache-servicemix-kernel
>> -1.1.0\deploy\demo.camel-bundle-0.1.jar
>> 17:38:51,775 | INFO  | Timer-0          | FileMonitor
>>  |
>> x.kernel.filemonitor.FileMonitor  550 | Started: demo.camel-bundle [53]
>> 17:38:54,368 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl   64 | Executing (String): osgi/list
>> 17:38:54,368 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl  104 | Executing (osgi/list): []
>> 17:38:57,525 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl   64 | Executing (String): log/d
>> 17:38:57,525 | INFO  | localShell       | CommandLineExecutorImpl
>>  |
>> om.shell.CommandLineExecutorImpl  104 | Executing (log/d): []
>>
>>
>> Osgi/list command shows,
>>
>> START LEVEL 100
>>   ID   State         Spring     Level  Name
>> [   0] [Active     ] [       ] [    0] System Bundle (1.5.0.r752991)
>> [   1] [Active     ] [       ] [   10] Apache Felix Prefrences Service
>> (1.0.2)
>> [   2] [Active     ] [       ] [   10] Apache ServiceMix Bundles:
>> jaxp-ri-1.4.2 (1.4.2.2)
>> [   3] [Active     ] [       ] [   10] geronimo-annotation_1.0_spec
>> (1.1.1)
>> [   4] [Active     ] [       ] [   10] Apache ServiceMix Specs :: JAXP API
>> 1.4 (1.3.0)
>> [   5] [Active     ] [       ] [   10] OSGi R4 Compendium Bundle (4.1.0)
>> [   6] [Active     ] [       ] [   10] Apache Felix Configuration Admin
>> Service (1.0.4)
>> [   7] [Active     ] [       ] [   10] geronimo-servlet_2.5_spec (1.1.2)
>> [   8] [Active     ] [Started] [   40] Apache ServiceMix Kernel :: GShell
>> Core (1.1.0)
>> [   9] [Active     ] [       ] [    8] OPS4J Pax Logging - API (1.3.0)
>> [  10] [Active     ] [       ] [    8] OPS4J Pax Logging - Service (1.3.0)
>> [  11] [Active     ] [       ] [    5] OPS4J Pax Url - wrap: (0.3.3)
>> [  12] [Active     ] [       ] [    5] OPS4J Pax Url - mvn: (0.3.3)
>> [  13] [Active     ] [       ] [   30] spring-osgi-io (1.2.0.m2)
>> [  14] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: Spring
>> Deployer (1.1.0)
>> [  15] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> mina-1.1.7
>> (1.1.7.1)
>> [  16] [Active     ] [       ] [   30] Spring Context (2.5.6)
>> [  17] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: JAAS
>> Modules (1.1.0)
>> [  18] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> commons-jexl-1.1 (1.1.0.1)
>> [  19] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: GShell
>> Features (1.1.0)
>> [  20] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> commons-httpclient-3.1 (3.1.0.1)
>> [  21] [Active     ] [       ] [   30] Spring Core (2.5.6)
>> [  22] [Active     ] [       ] [   30] jmx-impl (1.0.0.r6125-patched)
>> [  23] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: GShell
>> ConfigAdmin Commands (1.1.0)
>> [  24] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: JAAS
>> Config (1.1.0)
>> [  25] [Active     ] [       ] [   30] jmx (1.0.0.r6125-patched)
>> [  26] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> commons-vfs-1.0 (1.0.0.1)
>> [  27] [Active     ] [       ] [   30] Spring Beans (2.5.6)
>> [  28] [Active     ] [       ] [   30] Unnamed -
>> com.google.code.sshd:sshd:bundle:0.1 (0.1)
>> [  29] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> commons-codec-1.2 (1.2.0.1)
>> [  30] [Active     ] [       ] [   30] spring-osgi-extender (1.2.0.m2)
>> [  31] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> cglib-2.1_3 (2.1.0.3_1)
>> [  32] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> jline-0.9.94 (0.9.94.1)
>> [  33] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> aopalliance-1.0 (1.0.0.1)
>> [  34] [Active     ] [       ] [   30] Spring AOP (2.5.6)
>> [  35] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: GShell
>> PackageAdmin Commands (1.1.0)
>> [  36] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
>> oro-2.0.8
>> (2.0.8.1)
>> [  37] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: GShell
>> Log Commands (1.1.0)
>> [  38] [Active     ] [       ] [   30] spring-osgi-core (1.2.0.m2)
>> [  39] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
>> OSGi Commands (1.1.0)
>> [  40] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
>> Admin (1.1.0)
>> [  41] [Active     ] [Started] [   30] Apache ServiceMix Kernel ::
>> Management (1.1.0)
>> [  42] [Active     ] [       ] [   15] Apache ServiceMix Kernel :: File
>> Monitor (1.1.0)
>> [  43] [Active     ] [       ] [   60] Apache ServiceMix Specs ::
>> ACTIVATION
>> API 1.4 (1.2.0)
>> [  44] [Active     ] [       ] [   60] Apache ServiceMix Specs :: JAXB API
>> 2.1 (1.2.0)
>> [  45] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
>> jaxb-impl-2.1.6 (2.1.6.1)
>> [  46] [Active     ] [       ] [   60] Spring Transaction (2.5.6)
>> [  47] [Active     ] [       ] [   60] camel-core (1.6.0)
>> [  48] [Active     ] [       ] [   60] camel-spring (1.6.0)
>> [  49] [Active     ] [       ] [   60] camel-osgi (1.6.0)
>> [  52] [Active     ] [       ] [   60] demo.service-bundle [demo.service]
>> (0.1)
>> [  53] [Active     ] [       ] [   60] demo.camel-bundle [demo.camel]
>> (0.1)
>>
>> Everything looks fine except that I cannot see the expected msg.
>>
>> Any idea?
>>
>> Thanks again.
>>
>> -Kevin
>>
>> willem.jiang wrote:
>>
>>> Hi,
>>>
>>> In new version of serviceMix 4.x, it changed the command syntax
>>> from osgi install
>>> to osgi/install .
>>>
>>> And you find out it yourself ;)
>>>
>>> Willem
>>>
>>>
>>>
>>
>
Charles Moulliard
SOA Architect

My Blog : http://cmoulliard.blogspot.com/ 

 « Return to Thread: tutorial-osgi-camel-part1