camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <cmoulli...@gmail.com>
Subject Re: tutorial-osgi-camel-part2 -- deployment problem
Date Thu, 26 Nov 2009 16:08:32 GMT
Do you have maven issue to connect to resources on the web because I
see this error in the log that you provide me :

mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features] could not be
resolved

?

It seems also that they are carriage return in your etc/feature file config

Regards,

Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com
twitter : http://twitter.com/cmoulliard
Linkedlin : http://www.linkedin.com/in/charlesmoulliard

Apache Camel Group :
http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm



On Thu, Nov 26, 2009 at 5:02 PM, Kevin.Zhang <zhangyongjiang@yahoo.com> wrote:
>
> Hello Charles,
>
> This time I got deployment problem. After I started karaf, I cannot see the
> reportinsident bundles with osgi:list command.
>
> karaf@root osgi:list
> START LEVEL 100
>   ID   State         Blueprint      Level  Name
> [   0] [Active     ] [            ] [    0] System Bundle (2.0.0)
> [   1] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell
> Various Commands (1.0.0)
> [   2] [Active     ] [            ] [   30] Apache MINA Core (2.0.0.M6)
> [   3] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell
> PackageAdmin Commands (1.0.0)
> [   4] [Active     ] [Created     ] [   30] Apache Felix Karaf :: JAAS
> Modules (1.0.0)
> [   5] [Active     ] [Created     ] [   30] Apache Felix Karaf :: JAAS
> Config (1.0.0)
> [   6] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Blueprint
> Deployer (1.0.0)
> [   7] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell
> Admin (1.0.0)
> [   8] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell Log
> Commands (1.0.0)
> [   9] [Active     ] [GracePeriod ] [   30] Apache Felix Karaf :: Features
> Command (1.0.0)
> [  10] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell SSH
> (1.0.0)
> [  11] [Active     ] [            ] [   30] Apache Mina SSHD :: Core (0.2.0)
> [  12] [Active     ] [            ] [   30] Apache Felix Gogo Shell Runtime
> (0.2.0)
> [  13] [Active     ] [Failure     ] [   30] Apache Felix Karaf :: Features
> Core (1.0.0)
> [  14] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Management
> (1.0.0)
> [  15] [Active     ] [            ] [   30] org.osgi.impl.bundle.jmx
> (4.2.0.200907080519)
> [  16] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell
> Console (1.0.0)
> [  17] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell OSGi
> Commands (1.0.0)
> [  18] [Active     ] [GracePeriod ] [   30] Apache Felix Karaf :: Features
> Management (1.0.0)
> [  19] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Spring
> Deployer (1.0.0)
> [  20] [Active     ] [GracePeriod ] [   30] Apache Felix Karaf :: Features
> Deployer (1.0.0)
> [  21] [Active     ] [Created     ] [   30] Apache Felix Karaf :: Shell
> ConfigAdmin Commands (1.0.0)
> [  22] [Active     ] [            ] [   10] Apache Felix File Install
> (2.0.0)
> [  23] [Active     ] [            ] [   10] Apache Felix Prefrences Service
> (1.0.2)
> [  24] [Active     ] [            ] [   10] Apache Felix Configuration Admin
> Service (1.2.4)
> [  25] [Active     ] [            ] [    8] OPS4J Pax Logging - API (1.4)
> [  26] [Active     ] [            ] [    8] OPS4J Pax Logging - Service
> (1.4)
> [  27] [Active     ] [            ] [    5] OPS4J Pax Url - mvn: (1.0.0)
> [  28] [Active     ] [            ] [    5] OPS4J Pax Url - wrap: (1.0.0)
> [  29] [Active     ] [Created     ] [   20] Apache Geronimo Blueprint Bundle
> (1.0.0)
>
> karaf@root> features:list
> java.lang.IllegalArgumentException: Command not found:  features:list
>        at
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:208)
>        at
> org.apache.felix.gogo.runtime.shell.Closure.executeStatement(Closure.java:146)
>        at org.apache.felix.gogo.runtime.shell.Pipe.run(Pipe.java:91)
>        at
> org.apache.felix.gogo.runtime.shell.Closure.execute(Closure.java:75)
>        at
> org.apache.felix.gogo.runtime.shell.CommandSessionImpl.execute(CommandSessionImpl.java:71)
>        at
> org.apache.felix.karaf.shell.console.jline.Console.run(Console.java:115)
>        at java.lang.Thread.run(Thread.java:619)
>
> The karaf.log says:
>
> C:\temp\apache-felix-karaf-1.0.0\apache-felix-karaf-1.0.0>type
> data\log\karaf.log
> Nov 26, 2009 7:42:04 AM org.apache.felix.karaf.main.SimpleFileLock lock
> INFO: locking
> 07:42:05,953 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.apache.feli
> x.karaf.shell.cfg
> 07:42:05,953 | INFO  | Thread-1         | fileinstall                  
   |
> ?                                   ? | Updating configuration from
> org.ops4j.pax.u
> rl.mvn.cfg
> 07:42:06,093 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.apache.felix.karaf.shell.cfg
> 07:42:06,125 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.ops4j.pax.l
> ogging.cfg
> 07:42:06,156 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.ops4j.pax.logging.cfg
> 07:42:06,203 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.apache.feli
> x.karaf.log.cfg
> 07:42:06,203 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.apache.felix.karaf.log.cfg
> 07:42:06,234 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.apache.feli
> x.karaf.management.cfg
> 07:42:06,250 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.apache.felix.karaf.management.cfg
> 07:42:06,265 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.apache.came
> l.example.reportincident.datasource.cfg
> 07:42:06,281 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.apache.camel.example.reportincident.datasource.cfg
> 07:42:06,312 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.apache.feli
> x.karaf.features.cfg
> 07:42:06,328 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.apache.felix.karaf.features.cfg
> 07:42:06,359 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Updating configuration from
> org.apache.feli
> x.fileinstall-deploy.cfg
> 07:42:06,375 | INFO  | karaf-1.0.0/etc} | fileinstall                    
 |
> ?                                   ? | Installed
> C:\temp\apache-felix-karaf-1.0.0\
> apache-felix-karaf-1.0.0\etc\org.apache.felix.fileinstall-deploy.cfg
> 07:42:06,375 | INFO  | nerated-bundles} | fileinstall                    
 |
> ?                                   ? | {felix.fileinstall.poll (ms)
= 1000,
> felix.
> fileinstall.dir =
> C:\temp\apache-felix-karaf-1.0.0\apache-felix-karaf-1.0.0\deploy,
> felix.fileinstall.debug = -1, felix.fileinstall.bundles.new.start = true, fe
> lix.fileinstall.tmpdir =
> C:\temp\apache-felix-karaf-1.0.0\apache-felix-karaf-1.0.0\data\generated-bundles,
> felix.fileinstall.filter = null}
> 07:42:08,968 | ERROR | pool-2-thread-2  | BlueprintContainerImpl           |
> container.BlueprintContainerImpl  337 | Unable to start blueprint container
> for bun
> dle org.apache.felix.karaf.features.core
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
> intialize bean featuresService
>        at
> org.apache.geronimo.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:519)
>        at
> org.apache.geronimo.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)
>        at
> org.apache.geronimo.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:212)
>        at
> org.apache.geronimo.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:140)
>        at
> org.apache.geronimo.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:603)
>        at
> org.apache.geronimo.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:310)
>        at
> org.apache.geronimo.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:211)
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.RuntimeException: URL
> [mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features] could not be
> resolved.
>        at
> org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:195)
>        at
> org.apache.felix.karaf.features.internal.RepositoryImpl.load(RepositoryImpl.java:89)
>        at
> org.apache.felix.karaf.features.internal.FeaturesServiceImpl.internalAddRepository(FeaturesServiceImpl.java:153)
>        at
> org.apache.felix.karaf.features.internal.FeaturesServiceImpl.start(FeaturesServiceImpl.java:409)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.apache.geronimo.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:206)
>        at
> org.apache.geronimo.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:639)
>        at
> org.apache.geronimo.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:517)
>        ... 14 more
> 07:42:09,125 | INFO  | pool-2-thread-2  | SecurityUtils                  
 |
> e.sshd.common.util.SecurityUtils   80 | BouncyCastle not registered, using
> the defa
> ult JCE provider
> 07:47:09,015 | ERROR | pool-2-thread-3  | BlueprintContainerImpl           |
> ntainer.BlueprintContainerImpl$1  274 | Unable to start blueprint container
> for bun
> dle org.apache.felix.karaf.deployer.features
> java.util.concurrent.TimeoutException
>        at
> org.apache.geronimo.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:269)
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> 07:47:10,125 | ERROR | pool-2-thread-1  | BlueprintContainerImpl           |
> ntainer.BlueprintContainerImpl$1  274 | Unable to start blueprint container
> for bun
> dle org.apache.felix.karaf.features.command
> java.util.concurrent.TimeoutException
>        at
> org.apache.geronimo.blueprint.container.BlueprintContainerImpl$1.run(BlueprintContainerImpl.java:269)
>        at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>        at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
>        at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> Nov 26, 2009 7:51:24 AM org.apache.felix.karaf.main.SimpleFileLock release
> INFO: releasing
>
>
> My settings in system.properties
>
> Added "servicemix.base=root" to system.properties
>
> org.apache.felix.karaf.features.cfg
> featuresRepositories=mvn:org.apache.felix.karaf/apache-felix-karaf/1.0.0/xml/features,mvn:org.apache.camel.karaf/features/2.1-SNAPSHOT/xml/features,jar:mvn:org.
> apache.camel.example/reportincident.features/1.0-SNAPSHOT!/reportincident.features-1.0-SNAPSHOT-features.xml
>
> featuresBoot=spring,spring-dm,camel,camel-bindy,camel-jms,activemq,activemq-camel,http-reportingincident,spring-web,camel-cxf,hibernate,jdbc-driver,wicket,repor
> tincident
>
>
>
>
> Thanks,
> Kevin
> --
> View this message in context: http://old.nabble.com/tutorial-osgi-camel-part2----deployment-problem-tp26531488p26531488.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message